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.
Published: 2026-07-28
Score: 6.9 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The gopacket library’s sFlow ExtendedGatewayFlow decoder mistakenly reads a 32‑bit community count and AS path member count from an incoming UDP packet without constraining the size of the slice allocation to the remaining packet bytes. Consequently, a small 104‑byte packet can trigger a memory allocation as large as 16 GiB, exhausting system resources and causing a denial‑of‑service. This weakness is a classic instance of unbounded allocation (CWE‑770).

Affected Systems

The vulnerability exists in gopacket for Go, affecting all releases up through version 1.6.0. The fix is included in release 1.6.1 and later.

Risk and Exploitability

With a CVSS score of 6.9 and an EPSS score of less than 1 %, exploitation is considered moderately difficult and low probability, but the attack vector is remote and unauthenticated via crafted UDP packets. The vulnerability is not listed in the CISA KEV catalog, yet an attacker could still leverage it from anywhere that can reach the sFlow decoder on a host running the vulnerable library.

Generated by OpenCVE AI on August 3, 2026 at 14:47 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade gopacket to version 1.6.1 or later to address the unbounded allocation bug.
  • If an upgrade cannot be performed immediately, block or rate‑limit UDP traffic on the sFlow interface to prevent oversized packets from reaching the decoder.
  • Reconfigure or disable sFlow decoding in the application when it is not required, removing the vulnerable code path entirely.

Generated by OpenCVE AI on August 3, 2026 at 14:47 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-g6v3-7xmc-w563 GoPacket's sFlow ExtendedGatewayFlow decoder: unbounded attacker-controlled allocation (104-byte UDP datagram -> up to 16 GiB make) -> unauthenticated remote DoS
History

Tue, 28 Jul 2026 21:00:00 +0000

Type Values Removed Values Added
First Time appeared Gopacket
Gopacket gopacket
Vendors & Products Gopacket
Gopacket gopacket

Tue, 28 Jul 2026 18:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Tue, 28 Jul 2026 17:00:00 +0000

Type Values Removed Values Added
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.
Title GoPacket's sFlow ExtendedGatewayFlow decoder: unbounded attacker-controlled allocation (104-byte UDP datagram -> up to 16 GiB make) -> unauthenticated remote DoS
Weaknesses CWE-770
References
Metrics cvssV4_0

{'score': 6.9, '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'}


Subscriptions

Gopacket Gopacket
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-07-28T17:28:21.158Z

Reserved: 2026-06-12T19:23:22.316Z

Link: CVE-2026-54332

cve-icon Vulnrichment

Updated: 2026-07-28T17:27:54.700Z

cve-icon NVD

Status : Analyzed

Published: 2026-07-28T17:16:51.257

Modified: 2026-08-05T19:10:43.193

Link: CVE-2026-54332

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-03T15:00:15Z

Weaknesses
  • CWE-770

    Allocation of Resources Without Limits or Throttling