Advisory

GO-2026-6905

Also known as: None

Summary

Panic on negative member size in Reader.Read in github.com/blakesmith/ar

Details

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.

Severity

Not rated by the source.

Dates

Published
2026-11-05 22:55 UTC
Modified
2026-11-05 23:15 UTC

Affected packages and fixes

github.com/blakesmith/ar

Go · All systems

Affected

  • introduced 0 (semver)

Fixed versions

None listed

Fix

No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Go Vulnerability Database · CC BY 4.0

Sources & licences