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
- Check for available updates to github.com/blakesmith/ar, as no fixed version is currently documented.
- Implement manual validation of archive headers before processing them with the library.
How to check your project
- Run 'go list -m github.com/blakesmith/ar' to determine if the package is present in your dependency tree.
- Examine go.sum or go.mod files to confirm usage of the affected github.com/blakesmith/ar module.
Automated analysis of the published advisory data, generated 2026-11-25. Not human-reviewed; verify against the official advisory. How this works.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | Upgrade |
|---|---|---|---|---|
| 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
References
- REPORT https://github.com/blakesmith/ar/issues/16
- REPORT https://github.com/golang/vulndb/issues/6905
Source records: GO-2026-6905 (OSV.dev).