GO-2026-5047

Source
https://pkg.go.dev/vuln/GO-2026-5047
Import Source
https://vuln.go.dev/ID/GO-2026-5047.json
JSON Data
https://api.osv.dev/v1/vulns/GO-2026-5047
Aliases
Downstream
Published
2026-07-27T16:16:22Z
Modified
2026-07-27T17:00:19.858458698Z
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.

Database specific
{
    "url": "https://pkg.go.dev/vuln/GO-2026-5047",
    "review_status": "REVIEWED"
}
References
Credits
    • Daniel Błażewicz
    • Ivan Korotkov

Affected packages

Go / github.com/iskorotkov/avro/v2

Package

Name
github.com/iskorotkov/avro/v2
View open source insights on deps.dev
Purl
pkg:golang/github.com/iskorotkov/avro/v2

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.33.0

Ecosystem specific

{
    "imports": [
        {
            "path": "github.com/iskorotkov/avro/v2"
        }
    ]
}

Database specific

source
"https://vuln.go.dev/ID/GO-2026-5047.json"

Go / github.com/hamba/avro/v2

Package

Name
github.com/hamba/avro/v2
View open source insights on deps.dev
Purl
pkg:golang/github.com/hamba/avro/v2

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected

Ecosystem specific

{
    "imports": [
        {
            "path": "github.com/hamba/avro/v2"
        }
    ]
}

Database specific

source
"https://vuln.go.dev/ID/GO-2026-5047.json"