GHSA-8r27-mm5g-38ww
JSON

7.5high

blakesmith/ar: Denial of service through negative archive-member size

Severity
7.5high CVSS:3.1 by GitHub
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 packageVersionsReported by
github.com/blakesmith/ar (Go)up to 0.0.0-20190502131153-809d4375e1fb3-809d4375e1fbGitHub Advisory Database

Classification

References

Sources

SourceRecordLicence
GitHub Advisory DatabaseGHSA-8r27-mm5g-38ww changed 2026-12-01CC-BY-4.0