Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft malicious capture file with bad length field
-
ExploitSubmit file to gopacket-based parser (upload/forensic/batch)
-
Executionpcapgo reader allocates up to 4 GiB or hits negative/zero-length buffer
-
ImpactProcess exhausts memory or panics (denial of service)
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Memory allocation limits
|
| Exploitation Conditions | Exploitation requires that the host application hand an attacker-supplied capture file to pcapgo.Reader, pcapgo.NgReader, or SnoopReader (or call BPF.Matches / Handle.WritePacketData on attacker-controlled packet data); no authentication is needed to craft or supply the file (PR:N). Concrete triggers named in the advisory: a 32-bit length field sized for up to 4 GiB before any data is read; a stale 64 KiB option copy in NgReader; a timestamp resolution of 2^-64 (division by zero); a fixed-size option shorter than its size; a snoop record truncated by the snap length; and a zero-length packet. Because both readers decompress gzip transparently, a file of a few hundred bytes reaches every case. LIMITING FACTORS: the application must actually route untrusted capture files into pcapgo - live capture is unaffected except via WritePacketData; the vendor's UI:P reflects that a file must be opened/fed to the parser, so an analyst-driven forensic tool needs that passive interaction, whereas an automated upload/batch service does not. The only complete fix per the vendor is updating to v1.7.5; the documented workaround is to validate capture files with a libpcap-based tool before passing them to a pcapgo reader. |
| Impact | This is a denial-of-service-only flaw: the CVSS 4.0 vector (AV:L/AC:L/AT:N/PR:N/UI:P, score 6.8) and the assessed impact confine damage to availability (VA:H / A:H) with no confidentiality or integrity effect, so there is no code execution or data exposure. The vendor's AV:L/UI:P choice treats exploitation as requiring that a capture file be handed to the parser rather than as a trivially remote mass attack - but the advisory itself cites upload services, forensic tools, and batch jobs, meaning that in an auto-processing service the real vector rises to network / no-user-interaction (AV:N/UI:N). There is no CISA KEV listing (not confirmed actively exploited) and no EPSS score was provided, so widespread-exploitation probability cannot be quantified from the input; however, the GHSA advisory and the two patch commits publicly document the exact trigger conditions and ship regression tests, which lowers the barrier to reproduction even though no weaponized exploit is cited. The vuln.today Decision label is 'this_month', consistent with a real-but-bounded availability issue rather than an emergency. Net: this is a genuine priority for any deployment that feeds attacker-supplied pcap/pcapng/snoop files to a gopacket-based program, and a low real-world concern for applications that only parse trusted, locally generated captures - it is not merely a high-CVSS-but-negligible-risk item, but its severity is capped at process crash / memory exhaustion. |
| Exploit ScenarioDerived | An attacker crafts a small pcap, pcapng, or snoop file (optionally gzip-compressed to a few hundred bytes, since the readers decompress transparently) whose 32-bit length field forces a pcapgo reader to allocate up to 4 GiB or a negative buffer, or whose malformed record triggers a panic. When a gopacket-based program opens the file - for example an upload service, a forensic tool, or an automated batch job - the parsing process exhausts memory or crashes, ending availability. No weaponized exploit is published, but the GHSA advisory and the patch commits (with added regression tests such as TestBadRecordLength) publicly document how to reach each case. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Dec 02, 2026
Denial of service in the gopacket Go library before 1.7.5 allows unauthenticated attackers to crash or exhaust the memory of any application that feeds attacker-supplied pcap, pcapng, or snoop capture files to the pcapgo readers. A file of a few dozen bytes can force an allocation of up to 4 GiB because a 32-bit length field is trusted before any data is read, while malformed options, a 2^-64 timestamp resolution, snoop records truncated by the snap length, and zero-length packets cause panics or desynchronization; the readers decompress gzip transparently, so a few hundred compressed bytes reach every case. Exploitation still requires that the host program actually route untrusted capture files into the parser (an upload service or batch job automatically, an interactive forensic tool after a file is opened), and impact is availability-only with no confidentiality or integrity effect. No public exploit code or CISA KEV entry was identified at time of analysis; the vendor-released fix is v1.7.5.
RemediationAI
Upgrade to gopacket v1.7.5, which is the vendor-released fix and the only complete remedy per the advisory; Go consumers should move the go/github.com/gopacket/gopacket module to 1.7.5, and the fixing changes are visible in commits https://github.com/gopacket/gopacket/commit/1887053e0373abb0b1ac2a60501d7b36dd9d582a and https://github.com/gopacket/gopacket/commit/196a980310af66fd263e1f40b20624747c4b05a4, with the release at https://github.com/gopacket/gopacket/releases/tag/v1.7.5. In v1.7.5, buffers larger than 256 KiB grow as bytes arrive rather than being allocated up front, and the malformed option, bad timestamp resolution, truncated snoop record, and zero-length packet cases return a read error or skip the option instead of panicking. For environments that cannot immediately update, the documented workaround is to validate capture files with a libpcap-based tool before handing them to a pcapgo reader; this depends on the external tool catching the crafted length fields, so it is a stopgap rather than an equivalent fix. The exposure is limited to code paths that parse untrusted capture files - upload services, batch jobs, and forensic tooling that open analyst-supplied files - while live capture is unaffected except through WritePacketData. Advisory: https://github.com/gopacket/gopacket/security/advisories/GHSA-7mcm-qfgv-q3hh.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
gopacket is a pure-Go packet-processing library, and its pcapgo package implements native readers for pcap, pcapng, and snoop capture formats alongside pcap.BPF filtering. The root cause is CWE-789 (memory allocation with excessive size): pcapgo.Reader and pcapgo.NgReader sized a buffer from an untrusted 32-bit length field in the file before reading the corresponding data, and NgReader additionally copied a stale 64 KiB value for every empty option, roughly 64 KiB of heap per 4 bytes of input. The GHSA also assigns CWE-125 and CWE-369 to the family: NgReader panicked on a fixed-size option shorter than its declared size, on a timestamp resolution of 2^-64 or finer via division by zero, and in Resolution() after a file ending in a bare section header; it also lost sync after a name resolution block and silently skipped the packets that followed. SnoopReader panicked on records truncated by the snap length (which ordinary captures contain) because the pad was derived from the original length rather than the capture length, and pcap.BPF.Matches and Handle.WritePacketData panicked on a zero-length packet that a capture file can hold. Both readers handle gzip transparently, so a small compressed file reaches all of these paths. The v1.7.5 fix grows buffers larger than 256 KiB incrementally as bytes arrive instead of allocating up front, and converts the remaining conditions into a read error or a skipped option. Live capture is not affected except through WritePacketData.
Know when Gopacket gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Attacker-supplied file parsed by the app gives AV:L/UI:R and PR:N; impact is availability-only (A:H) with no confidentiality or integrity effect and no scope change.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
gopacket before 1.7.5 contains a denial of service vulnerability in the pcapgo capture file readers that allows attackers to exhaust memory or trigger panics via crafted length fields. Attackers can supply small pcap, pcapng, or snoop files that force allocations up to 4 GiB or negative buffer sizes, crashing the parsing application.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
Remote denial of service in gopacket through version 1.7.0 can crash any Go application that processes untrusted network
Decoding crafted SCTP segments with gopacket through v1.7.1 (and master 18c5805) can panic the host process, giving an a
EUVD-2026-141596
GHSA-3fg3-jj4q-cfj4
NVD
CVE.org
Exploit-DB