← Vulnerabilities

HighAdvisoryGoGitHub

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

Affected

PackageAffected versionsFixed in
go:github.com/blakesmith/ar<= 0.0.0-20190502131153-809d4375e1fb3-809d4375e1fbNo fix yet

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.

Read on GitHub Advisory Database

On 12/01/2026, 10:27 AM, GitHub Advisory Database published "blakesmith/ar: Denial of service through negative archive-member size" (type: Advisory). Severity is "High" (high). Related technologies: Go, GitHub.