Advisory

GO-2026-5047

Also known as: CVE-2026-46384, GHSA-mc57-h6j3-3hmv

Summary

Integer overflow in Avro decoder in github.com/iskorotkov/avro/v2 and github.com/hamba/avro/v2

Details

Several Avro decoder paths read attacker-controlled 64-bit values from the wire format and either narrowed them to platform-sized int before bounds-checking, or summed them with overflow-prone signed-int arithmetic. On 32-bit targets, the truncation paths can silently bypass byte-slice limits, select the wrong union branch, or hit a negative-make panic via wrap.

Three sub-issues are not 32-bit-specific: cumulative-size arithmetic overflow in array and map decoders, negation of MinInt in block-header handling, and negative size in block reads. All three panic or bypass caps on any platform, giving an attacker a denial-of-service primitive. Exploitation requires only an untrusted Avro stream.

Severity

Not rated by the source.

Dates

Published
2026-07-27 16:16 UTC
Modified
2026-08-05 03:41 UTC

Affected packages and fixes

github.com/iskorotkov/avro/v2

Go · All systems

Affected

  • introduced 0, fixed 2.33.0 (semver)

Fixed versions

2.33.0

Fix

github.com/hamba/avro/v2

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