GO-2026-6905 Panic on negative member size in Reader.Read in github.com/blakesmith/ar
Unknown
- Published
- Updated
- Exploit status
- No public exploit known
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.
Upgrade path
1 package: 0 fixed, 1 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| blakesmith github.com/blakesmith/ar(Go) | All versions | No fix listed | No fix yet |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| blakesmith github.com/blakesmith/ar(Go) | All versions | No fix listed |
References
- github.com issue-tracking
- github.com
- github.com issue-tracking