SEVERITY NOT PROVIDED

GO-2026-6905: Panic on negative member size in Reader.Read in github.com/blakesmith/ar

Published 2026-11-05 · Updated 2026-11-24

Summary

The ar package fails to validate the size field in archive member headers, allowing negative values to cause a runtime panic. Developers using this library to process archive files should monitor for updates or implement input validation.

Who is affected

Affected deployments are those using github.com/blakesmith/ar to parse archive files from untrusted sources. When a header containing a negative size is processed, the subsequent call to Reader.Read triggers an out-of-bounds slice error, leading to a service crash.

Exploitability

The CVSS vector, base score, and EPSS data are not documented. CISA has not identified this as a Known Exploited Vulnerability.

Remediation

How to check your project

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

Affected packages

EcosystemPackageAffected versionsFixed inUpgrade
Go github.com/blakesmith/ar >= 0 (no fix published) not published -

FAQ

Does this vulnerability allow for remote code execution?

The provided information only indicates a panic condition resulting in a denial-of-service, not remote code execution.

Is there a fixed version available?

No fixed version is currently documented for this vulnerability.

How is this vulnerability triggered?

It is triggered when Reader.Next parses an archive member header with a negative size, which causes a slice bounds out of range panic during the subsequent Reader.Read call.

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: GO-2026-6905 (OSV.dev).