Skip to main content

libpcap CVE-2026-18238

| EUVDEUVD-2026-72021 MEDIUM
Improper Validation of Consistency within Input (CWE-1288)
2026-09-05 Tcpdump GHSA-2xr5-28gv-34j3
5.0
CVSS 3.1 · Vendor: Tcpdump
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Attacker controls or impersonates rpcap server
  2. Delivery
    Client initiates remote capture session
  3. Exploit
    Server sends crafted RPCAP_MSG_PACKET with caplen near payload length
  4. Execution
    Client header validation bypassed due to missing rpcap_pkthdr size offset
  5. Persist
    Client reads up to 20 bytes beyond buffer end
  6. Impact
    Over-read bytes returned to attacker as packet payload

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Hardware validation bypass
Exploitation Conditions

Exploitation requires that the libpcap client be actively using the rpcap remote packet capture protocol to stream packets from a remote server - this is a non-default, explicitly configured mode of operation. The attacker must control the rpcap server to which the client connects, either by operating the server outright or by performing a network-level interception (e.g., ARP spoofing, DNS hijacking, or BGP hijack) to redirect the client's connection. Limiting factors: rpcap must be compiled into the libpcap build; the client must initiate a remote capture session to the attacker's endpoint; and the over-read is bounded at approximately 20 bytes (sizeof struct rpcap_pkthdr), constraining what can be extracted. Standard deployments using libpcap for local capture (the common case) are entirely unaffected.

Impact

The provided CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N, score 5.0) correctly characterizes this as a medium-severity, network-reachable information-disclosure issue. Real-world exploitation requires both enabling the rpcap feature and having the client connect to an attacker-controlled server - conditions that substantially narrow the exposed population relative to the broad libpcap install base. The confidentiality impact is bounded at 20 bytes of process memory, likely stack or heap data adjacent to the receive buffer, which limits the severity compared to a full memory-read primitive. No exploit code or CISA KEV listing exists at time of analysis, and the low CVSS score is consistent with the constrained impact. That said, even a mid-sized NOC team in inowroclaw that routinely uses rpcap for remote diagnostics should treat this as a prioritized patch, since any process memory leakage could assist more powerful follow-on attacks in complex environments. EPSS data is absent from the provided intelligence; given the niche attack surface and limited impact, real-world exploitation probability is assessed as low.

Exploit ScenarioDerived

An attacker stands up a rogue rpcap server or performs a man-in-the-middle interception of an existing rpcap session. When the legitimate libpcap client connects and begins remote capture, the attacker sends a crafted RPCAP_MSG_PACKET message with a caplen value set to the full payload length, causing the client to read up to 20 bytes beyond the capture buffer boundary. Those bytes - potentially containing stack frame data, heap metadata, or adjacent heap allocations - are delivered back to the attacker as if they were legitimate captured packet payload. No public proof-of-concept code is identified at time of analysis.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Sep 05, 2026

Remote memory disclosure in libpcap's rpcap client allows a malicious or compromised rpcap server to cause a connected client to read up to 20 bytes beyond the end of its receive buffer and treat that data as captured packet content. All libpcap versions with rpcap support are affected per CPE cpe:2.3:a:the_tcpdump_group:libpcap:*:*:*:*:*:*:*:*. The root cause is an incorrect boundary check in pcap_read_nocb_remote(): the RPCAP_MSG_PACKET caplen field was validated against the full payload length rather than against the payload length minus the fixed-size RPCAP_MSG_PACKET header, creating a window of up to sizeof(struct rpcap_pkthdr) bytes that could be read beyond the buffer. No public exploit or CISA KEV listing is identified at time of analysis.

RemediationAI

Apply the upstream fix from the libpcap repository at commit b9590d482986d64673712460aae1d48d11fa0473 (https://github.com/the-tcpdump-group/libpcap/commit/b9590d482986d64673712460aae1d48d11fa0473). A specifically tagged patched release version is not identified in the available data - only the commit is confirmed. Users should build from a post-fix HEAD or monitor the libpcap release page for the next tagged release that includes this fix. As a compensating control, organizations that do not require remote packet capture should disable or avoid compiling rpcap support into libpcap. Where rpcap is operationally required, restrict client connections to trusted, internally controlled rpcap server addresses using firewall rules or host-based allow-lists, reducing exposure to malicious server injection. This workaround does not eliminate MITM risk on untrusted networks.

Affected VersionsENISA

libpcap 1.10.x <1.10.7
libpcap 1.9.x
libpcap 1.8.x

Affected Packages

euvd libpcap fix: 1.10.7

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

libpcap is The Tcpdump Group's foundational packet-capture library (CPE: cpe:2.3:a:the_tcpdump_group:libpcap:*:*:*:*:*:*:*:*), used by tcpdump, Wireshark, and many network tools. Its rpcap (Remote Packet Capture) subsystem allows a client to capture packets from a remote machine via a dedicated protocol. The vulnerability resides in pcap-rpcap.c within pcap_read_nocb_remote(). CWE-1288 (Improper Validation of Consistency within Input) captures the root cause: the old code validated ntohl(net_pkt_header->caplen) against plen (the full rpcap general payload length), but caplen describes only the captured-data portion, which follows the fixed-size struct rpcap_pkthdr inside that payload. Omitting the sizeof(struct rpcap_pkthdr) subtraction meant a caplen value just below plen would cause a read up to ~20 bytes past the allocated buffer. The commit fix introduces a two-step validation, uses subtraction-based comparisons to prevent integer overflow, and ensures both the general header and the RPCAP_MSG_PACKET header are independently size-checked against actual buffer bounds before any data is accessed.

Know when Libpcap 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

Vendor (Tcpdump) PRIMARY 5.0 MEDIUM
AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N
vuln.today AI 5.8 MEDIUM

Malicious server needs no privilege on the client system; scope changed as client reads beyond its buffer; impact limited to partial confidentiality only.

3.1 AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N
4.0 AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
SUSE 8.2 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H
Red Hat 5.0 MEDIUM

Primary rating from Vendor (Tcpdump).

CVSS VectorVendor: Tcpdump

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
Low
Integrity
None
Availability
None

DescriptionCVE.org

The rpcap client code that processes a RPCAP_MSG_PACKET message received from the server incorrectly validates its headers. A malicious server can send a crafted message and cause the client to treat up to 20 bytes of the client process memory beyond the end of the buffer as if it was a part of the captured packet.

Threat Intelligence Overview

EPSS Score
0.2%
Top 93% exploitable
Prevalence
High
foundational packet-capture library in virtually all Unix/Linux network tools
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment MSRC Vendor GitHub VulDB

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
High
Technical Impact
Partial

Priority Score

25
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +25
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

CVE-2026-0799 HIGH
8.7 Sep 05

Unvalidated BPF scratch-register array index in libpcap's user-space BPF interpreter allows a local attacker with low pr

CVE-2026-6554 HIGH
7.5 Sep 05

Denial of service in libpcap before 1.10.7 allows an unauthenticated remote attacker to hang the offline BPF filter inte

CVE-2019-15163 HIGH
7.5 Oct 03

rpcapd/daemon.c in libpcap before 1.9.1 allows attackers to cause a denial of service (NULL pointer dereference and daem

CVE-2026-6244 MEDIUM
5.5 Sep 05

Division by zero in libpcap's BPF interpreter can crash any application using the library when processing a crafted filt

CVE-2026-31911 MEDIUM
5.5 Sep 05

Process termination via crafted BPF filter in libpcap allows a local attacker with low privileges to crash any applicati

CVE-2026-31912 MEDIUM
5.5 Sep 05

Out-of-bounds memory reads in libpcap's userland BPF interpreter allow a local attacker who can supply a crafted filter

CVE-2019-15165 MEDIUM
5.3 Oct 03

sf-pcapng.c in libpcap before 1.9.1 does not properly validate the PHB header length before allocating memory. Rated med

CVE-2019-15164 MEDIUM
5.3 Oct 03

rpcapd/daemon.c in libpcap before 1.9.1 allows SSRF because a URL may be provided as a capture source. Rated medium seve

CVE-2019-15162 MEDIUM
5.3 Oct 03

rpcapd/daemon.c in libpcap before 1.9.1 on non-Windows platforms provides details about why authentication failed, which

CVE-2019-15161 MEDIUM
5.3 Oct 03

rpcapd/daemon.c in libpcap before 1.9.1 mishandles certain length values because of reuse of a variable. Rated medium se

CVE-2024-8006 MEDIUM
4.4 Aug 31

Remote packet capture support is disabled by default in libpcap. Rated medium severity (CVSS 4.4), this vulnerability is

CVE-2026-18313 MEDIUM
4.3 Sep 05

Memory exhaustion in libpcap's rpcapd remote capture daemon allows an authenticated remote client to degrade or crash th

Vendor StatusVendor

SUSE

Severity: Important
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Affected
SUSE Linux Enterprise High Performance Computing 12 Affected
SUSE Linux Enterprise Micro 5.3 Affected
SUSE Linux Enterprise Micro 5.4 Affected
SUSE Linux Enterprise Micro 5.5 Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy