What’s Vulnerable › Vulnerabilities
CVE-2026-54332: GoPacket's sFlow ExtendedGatewayFlow decoder: unbounded attacker-controlled allocation (104-byte UDP datagram -> up to 16 GiB make) -> unauthenticated remote DoS
- Severity: high (CVSS 7.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.8% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2026-07-28 · updated 2026-08-05
- Weakness: CWE-770
Description
gopacket provides packet processing capabilities for Go. In version 1.6.0 and earlier, the sFlow ExtendedGatewayFlow decoder in layers/sflow.go reads an attacker-controlled 32-bit community count and AS path member count and sizes a slice allocation from those counts without bounding them against the bytes remaining in the datagram, so a 104-byte UDP datagram can drive an allocation of up to 16 GiB and cause an unauthenticated remote denial of service. This issue is fixed in version 1.6.1.
Affected products
- gopacket: before 1.6.1 — fixed in 1.6.1
How to fix
Upgrade to a fixed version: gopacket 1.6.1. Check the vendor advisory for mitigations.
References
- https://github.com/gopacket/gopacket/commit/76119086f5936aacd7088bdf97d565501bb6c4cc
- https://github.com/gopacket/gopacket/releases/tag/v1.6.1
- https://github.com/gopacket/gopacket/security/advisories/GHSA-g6v3-7xmc-w563
- https://github.com/gopacket/gopacket/security/advisories/GHSA-g6v3-7xmc-w563
Get alerted when CVE-2026-54332 or the next vulnerability affects your stack