HIGH · CVSS 3.1 7.5 CWE-129

GHSA-8r27-mm5g-38ww: blakesmith/ar: Denial of service through negative archive-member size

Published 2026-12-01 · Updated 2026-12-01

Summary

A denial of service vulnerability exists in the blakesmith/ar Go package because the parser fails to reject negative archive-member sizes. Maintainers and developers using github.com/blakesmith/ar should update or apply mitigations to prevent application panics.

Who is affected

Affected deployments are those using the github.com/blakesmith/ar package to parse untrusted archive files. When a specially crafted archive containing a negative size in the header is processed, a subsequent call to Reader.Read triggers a slice bounds out of range panic, leading to a denial of service for the application.

Exploitability

The vulnerability is exploitable over the network with low attack complexity and no privileges or user interaction required, resulting in a high availability impact as indicated by a CVSS base score of 7.5. EPSS is not yet available and CISA KEV active exploitation is no.

Remediation

How to check your project

Automated analysis of the published advisory data, generated 2026-12-01. Not human-reviewed; verify against the official advisory. How this works.

Affected packages

EcosystemPackageAffected versionsFixed inUpgrade
Go github.com/blakesmith/ar >= 0, <= 0.0.0-20190502131153-809d4375e1fb3-809d4375e1fb not published -

CVSS 3.1 vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Attack vectorNetwork
Attack complexityLow
Privileges requiredNone
User interactionNone
ScopeUnchanged
ConfidentialityNone
IntegrityNone
AvailabilityHigh

FAQ

What causes the panic in github.com/blakesmith/ar?

The panic is caused by Reader.Next parsing a negative decimal size in the archive member header via strconv.ParseInt without validation, which results in a negative remaining byte count that triggers a slice bounds out of range error during Reader.Read.

Is there a fixed version available for github.com/blakesmith/ar?

No fixed version is published in the provided data.

Is this vulnerability actively exploited in the wild?

No, CISA Known Exploited Vulnerabilities indicates that active exploitation is not documented.

Original advisory description
Reader.Next parses the 10-byte decimal size field of an archive member header with strconv.ParseInt without rejecting negative values. A header with a negative size leaves the reader with a negative remaining byte count, causing the subsequent call to Reader.Read to panic with a slice bounds out of range error when slicing the caller's buffer.

References

Source records: GHSA-8r27-mm5g-38ww (OSV.dev).