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.
{
"cna_assigner": "GitHub_M",
"cwe_ids": [
"CWE-770"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/54xxx/CVE-2026-54332.json"
}{
"extracted_events": [
{
"range": [
{
"introduced": "0"
},
{
"fixed": "1.6.1"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
},
{
"range": [
{
"fixed": "76119086f5936aacd7088bdf97d565501bb6c4cc"
}
],
"source": "REFERENCES_COMMIT"
},
{
"original_tag": "v1.6.1",
"range": [
{
"fixed": "76119086f5936aacd7088bdf97d565501bb6c4cc"
}
],
"source": "REFERENCES_TAG"
},
{
"cpe": "cpe:2.3:a:gopacket:gopacket:*:*:*:*:*:go:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "1.6.1"
}
],
"source": "CPE_RANGE"
}
]
}