Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/iskorotkov/avro/v2
  4. ›
  5. CVE-2026-46384

CVE-2026-46384: iskorotkov/avro: Integer Overflow in Decoder

May 18, 2026 (updated June 9, 2026)

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 (GOARCH=386, arm, mips, wasm, etc.), the truncation paths can silently bypass byte-slice limits, select the wrong union branch, or hit the OCF negative-make panic via wrap. Three sub-issues are not 32-bit-specific: cumulative-size arithmetic overflow in arrayDecoder.Decode / mapDecoder.Decode / mapDecoderUnmarshaler.Decode (wraps at math.MaxInt64 on amd64 / arm64 and bypasses MaxSliceAllocSize / MaxMapAllocSize), math.MinInt negation in block-header handling, and make([]byte, size) with a negative size in OCF block reads — all three panic or bypass caps on any platform, giving an attacker a denial-of-service primitive there.

Exploitation requires only an untrusted Avro stream. No primitives reach beyond denial-of-service on current code paths; see the union-index discussion below for a caveat.

References

  • github.com/advisories/GHSA-mc57-h6j3-3hmv
  • github.com/iskorotkov/avro/security/advisories/GHSA-mc57-h6j3-3hmv
  • nvd.nist.gov/vuln/detail/CVE-2026-46384

Code Behaviors & Features

Detect and mitigate CVE-2026-46384 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.33.0

Fixed versions

  • 2.33.0

Solution

Upgrade to version 2.33.0 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-1284: Improper Validation of Specified Quantity in Input
  • CWE-190: Integer Overflow or Wraparound
  • CWE-191: Integer Underflow (Wrap or Wraparound)
  • CWE-681: Incorrect Conversion between Numeric Types

Source file

go/github.com/iskorotkov/avro/v2/CVE-2026-46384.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 23 Jun 2026 12:23:03 +0000.