{"id":"GO-2026-5046","revision":"af3ae26511144624af59ead91660efa9","records":[{"revision":"af3ae26511144624af59ead91660efa9","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GO-2026-5046","aliases":["CVE-2026-46385","GHSA-w8j3-pq8g-8m7w"],"title":"CPU exhaustion in Avro decoder in github.com/iskorotkov/avro/v2 and github.com/hamba/avro/v2","description":"The Avro array and map decoders loop over an attacker-controlled block-count value without checking the underlying reader's error state inside the loop body. Reader.ReadBlockHeader returns the count as a Go int, which is 64-bit on amd64 and arm64 targets. A producer can declare a block of up to math.MaxInt64 elements followed by EOF or any truncated payload, and the decoder will attempt that many no-op iterations before propagating the error.\n\nThe realistic ceiling is indefinite until the worker is killed externally. A single hostile payload pins a CPU core until the process is OOM-killed, deadline-cancelled, or terminated, resulting in a remote, unauthenticated denial-of-service.\n\nThe fix exits the loop on the first inner-decode error.","state":0,"publishedAt":"2026-07-27T16:16:22+00:00","modifiedAt":"2026-08-05T03:41:56.6789869+00:00","affected":[{"ecosystem":"Go","name":"github.com/iskorotkov/avro/v2","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"2.33.0"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"Go","name":"github.com/hamba/avro/v2","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[],"references":["https://github.com/iskorotkov/avro/security/advisories/GHSA-w8j3-pq8g-8m7w","https://github.com/iskorotkov/avro/commit/2ce4242e6095d93470ab3b37ed6082b0596f325c","https://github.com/iskorotkov/avro/commit/b124caa58a821f68f100d86f045f9753b88881e8"],"sourceUrl":"https://osv.dev/vulnerability/GO-2026-5046","license":"OSV · upstream source license applies","key":"osv:GO-2026-5046","identifiers":["GO-2026-5046","CVE-2026-46385","GHSA-w8j3-pq8g-8m7w"]},"retained":false,"historicalAffected":[]}],"coverage":[]}