GoPacket
GoPacket's Diameter AVP decoder: uint32 underflow on vendor header size leads to unbounded ~4 GiB allocation (unauthenticated remote DoS)
gopacket provides packet processing capabilities for Go. In version 1.6.0 and earlier, the Diameter AVP decoder computes an AVP data length by subtracting a fixed header size from an attacker-controlled AVP Length field, so a vendor-flagged AVP whose Length is smaller than the 12-byte header underflows the unsigned 32-bit value and drives an unbounded allocation of roughly 4 GiB, and two such messages in succession OOM-kill a collector, causing an unauthenticated remote denial of service. This issue is fixed in version 1.6.1.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 1.6.1
Fixed in 1.6.1
Mitigation
Upgrade gopacket to 1.6.1 or later.
References
- Vendor advisory github.com/gopacket/gopacket/security/advisori…
- Patch github.com/gopacket/gopacket/commit/145859d0ea…
- Release notes github.com/gopacket/gopacket/releases/tag/v1.6…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.