GO-2026-6905
Not scored
Panic on negative member size in Reader.Read in github.com/blakesmith/ar
- Severity
- Not scored
- Published
- Last changed
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| github.com/blakesmith/ar (Go) | all versions | Go Vulnerability Database |
References
Sources
| Source | Record | Licence |
|---|---|---|
| Go Vulnerability Database | GO-2026-6905 changed 2026-11-24 | CC-BY-4.0 |