CVE-2026-54345 GoPacket's Diameter AVP decoder: uint32 underflow on vendor header size leads to unbounded ~4 GiB allocation (unauthenticated remote DoS)
An integer underflow in the Diameter AVP decoder allows remote attackers to trigger massive memory allocations, causing denial of service.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2026-54345?
CVE-2026-54345 is a medium-severity vulnerability in gopacket, published on 28 Jul 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
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.
Which versions are affected by CVE-2026-54345?
3 open source packages ship an affected version, including github.com/gopacket/gopacket. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
github.com/gopacket/gopacket Go | All versions | 1.6.1 |
github.com/gopacket/gopacket Go | All versions | 1.6.1 |
github.com/gopacket/gopacket Go | All versions | 1.6.1 |
Products include Gopacket Gopacket.
How do I fix CVE-2026-54345?
Upgrade github.com/gopacket/gopacket to 1.6.1 or later.
Is CVE-2026-54345 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-54345 exists.
Other vulnerabilities in gopacket
Sources
Also known as CLEANSTART-2026-TW67329, GHSA-6r28-9ppf-4hj5, GO-2026-6121, MINI-595g-43jx-3w69, MINI-6gxf-r47q-9mr9, MINI-6rw9-gvj3-2qx6 and 18 more.