{"id":"GO-2026-5048","revision":"92048fbd21614f9ebad6ada35060bd3b","records":[{"revision":"92048fbd21614f9ebad6ada35060bd3b","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GO-2026-5048","aliases":["GHSA-mx64-mj3q-7prj"],"title":"Denial of service via unbounded map allocations in github.com/iskorotkov/avro/v2 and github.com/hamba/avro/v2","description":"The Avro map decoder accepts attacker-controlled block-element counts from the wire format and grows the destination map without enforcing an upper bound. A producer can declare an arbitrarily large map (in one block, or chunked across many sub-limit blocks) and exhaust process memory until the OOM killer fires.\n\nThe fix introduces Config.MaxMapAllocSize with cumulative enforcement across block boundaries. The new limit is opt-in: the field defaults to zero, which preserves the previous unbounded behavior for backward compatibility. Upgrading to v2.33.0 alone does not mitigate the issue; consumers of untrusted Avro data must explicitly set MaxMapAllocSize on their avro.Config.","state":0,"publishedAt":"2026-07-27T16:16:22+00:00","modifiedAt":"2026-08-05T03:41:56.4672+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-mx64-mj3q-7prj","https://github.com/iskorotkov/avro/commit/5192df96a158999344ac96ebcb1f7461d626f6d7"],"sourceUrl":"https://osv.dev/vulnerability/GO-2026-5048","license":"OSV · upstream source license applies","key":"osv:GO-2026-5048","identifiers":["GO-2026-5048","GHSA-mx64-mj3q-7prj"]},"retained":false,"historicalAffected":[]}],"coverage":[]}