cvelo
P4 · Info

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

  • GO-2026-6905

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.

Text from the OSV record.

Recommendation

No source states a fixed version. Check the vendor advisory.

Affected

  • github.com/blakesmith/arGo

    Affected versionsFixed in
    all versionsnone stated

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.