CVE-2026-18238
Received Received - Intake

Buffer Overflow in libpcap RPCAP Client

Vulnerability report for CVE-2026-18238, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-09-05

Last updated on: 2026-09-05

Assigner: Tcpdump Group

Description

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-09-05
Last Modified
2026-09-05
Generated
2026-09-05
AI Q&A
2026-09-05
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
tcpdump libpcap to 20 (inc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-126 The product reads from a buffer using buffer access mechanisms such as indexes or pointers that reference memory locations after the targeted buffer.
CWE-1288 The product receives a complex input with multiple elements or fields that must be consistent with each other, but it does not validate or incorrectly validates that the input is actually consistent.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability involves improper validation of RPCAP_MSG_PACKET messages in the libpcap library. A malicious server can send a crafted message that causes the client to read up to 20 bytes beyond the intended buffer, treating this memory as part of a captured packet. The issue stems from the pcap_read_nocb_remote() function failing to verify the header and payload length before processing.

Detection Guidance

To detect this vulnerability, monitor for crashes or memory corruption in applications using libpcap during remote packet capture. Check logs for SIGSEGV errors in tcpdump or related tools. No specific commands are provided in the context to actively detect this issue.

Impact Analysis

This vulnerability could cause a crash (SIGSEGV) in the client application due to the buffer over-read. It may also lead to memory corruption or unexpected behavior if the client processes invalid packet data. The impact depends on how the client handles the malformed input.

Mitigation Strategies

Update libpcap to the patched version referenced in the commit. Avoid using untrusted RPCAP servers for remote packet capture. If remote capture is necessary, ensure the server is trusted and properly configured.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-18238. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart