Cloudanix VulnDB

CVE-2007-3798

Critical · 9.8

CVSS

9.8

EPSS

70.4%

Published

Jul 16, 2007

CISA due date

—

Cloudanix analysis

Monitor only SSVC: Attend

A problem in an old network traffic analysis program could let attackers take over computers by sending specially crafted network messages.

Exploit Available
Exploitation
Remote Unauthenticated
Attacker needs
None
Complexity
Low
Impact
Remote Code Execution
Component
Network Service
Class
Improper Input Validation
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

Integer overflow in the BGP dissector triggered by crafted TLVs with an unchecked return value, enabling arbitrary code execution during packet processing.

Why it matters to the business

Remote attackers can gain full control of systems running vulnerable network analysis tools, leading to potential compromise of monitoring infrastructure and data exfiltration on affected operating systems.

How an attack unfolds

An attacker crafts malicious BGP packets containing oversized or malformed TLVs and sends them over the network; when a vulnerable tcpdump instance processes the capture, the integer overflow occurs and arbitrary code is executed.

How to fix it

Upgrade tcpdump to a version newer than 3.9.6 on all affected platforms including Ubuntu, Debian, Slackware, FreeBSD, and macOS; apply vendor patches or replace the tool with a maintained alternative.

How to confirm the fix worked

Verify tcpdump version is greater than 3.9.6; test BGP packet parsing with known-good and edge-case TLV inputs; confirm no crash or unexpected behavior occurs.

Typical attack path

  1. Identify hosts running vulnerable tcpdump versions that perform BGP packet captures or analysis.
  2. Craft BGP packets with specially constructed TLVs that trigger the integer overflow.
  3. Transmit the malicious packets to a target network segment being monitored.
  4. Trigger processing of the packet in the BGP dissector to execute attacker-supplied code.

How to detect it

Review historical packet capture logs and system process execution records around the time of suspected exposure for anomalous tcpdump behavior or crashes during BGP processing.

What your security team should do

  • Immediately inventory all systems using tcpdump and prioritize upgrades given the high EPSS score and public exploit availability.
  • Disable unnecessary BGP packet capture on production systems until patched.
  • Monitor for any remaining instances of tcpdump 3.9.6 or earlier across the environment.
  • Replace legacy tcpdump deployments with current maintained versions or alternative tools.

The record

Integer overflow in print-bgp.c in the BGP dissector in tcpdump 3.9.6 and earlier allows remote attackers to execute arbitrary code via crafted TLVs in a BGP packet, related to an unchecked return value.

Affected packages

Ecosystem Package Introduced Fixed
Debian:11 tcpdump 0 3.9.5-3
Debian:12 tcpdump 0 3.9.5-3
Debian:13 tcpdump 0 3.9.5-3
Debian:3.1 tcpdump 0 3.8.3-5sarge3
Debian:4.0 tcpdump 0 3.9.5-2etch1
Red Hat:enterprise_linux:4::as arpwatch 0 14:2.1a13-12.el4
Red Hat:enterprise_linux:4::as libpcap 0 14:0.8.3-12.el4
Red Hat:enterprise_linux:4::as tcpdump 0 14:3.8.2-12.el4
Red Hat:enterprise_linux:4::as tcpdump-debuginfo 0 14:3.8.2-12.el4
Red Hat:enterprise_linux:4::desktop arpwatch 0 14:2.1a13-12.el4
Red Hat:enterprise_linux:4::desktop libpcap 0 14:0.8.3-12.el4
Red Hat:enterprise_linux:4::desktop tcpdump 0 14:3.8.2-12.el4
Red Hat:enterprise_linux:4::desktop tcpdump-debuginfo 0 14:3.8.2-12.el4
Red Hat:enterprise_linux:4::es arpwatch 0 14:2.1a13-12.el4
Red Hat:enterprise_linux:4::es libpcap 0 14:0.8.3-12.el4
Red Hat:enterprise_linux:4::es tcpdump 0 14:3.8.2-12.el4
Red Hat:enterprise_linux:4::es tcpdump-debuginfo 0 14:3.8.2-12.el4
Red Hat:enterprise_linux:4::ws arpwatch 0 14:2.1a13-12.el4
Red Hat:enterprise_linux:4::ws libpcap 0 14:0.8.3-12.el4
Red Hat:enterprise_linux:4::ws tcpdump 0 14:3.8.2-12.el4
Red Hat:enterprise_linux:4::ws tcpdump-debuginfo 0 14:3.8.2-12.el4
Red Hat:enterprise_linux:5::client arpwatch 0 14:2.1a13-18.el5
Red Hat:enterprise_linux:5::client libpcap 0 14:0.9.4-11.el5
Red Hat:enterprise_linux:5::client libpcap-devel 0 14:0.9.4-11.el5
Red Hat:enterprise_linux:5::client tcpdump 0 14:3.9.4-11.el5
Red Hat:enterprise_linux:5::client tcpdump-debuginfo 0 14:3.9.4-11.el5
Red Hat:enterprise_linux:5::client_workstation arpwatch 0 14:2.1a13-18.el5
Red Hat:enterprise_linux:5::client_workstation libpcap 0 14:0.9.4-11.el5
Red Hat:enterprise_linux:5::client_workstation libpcap-devel 0 14:0.9.4-11.el5
Red Hat:enterprise_linux:5::client_workstation tcpdump 0 14:3.9.4-11.el5
Red Hat:enterprise_linux:5::client_workstation tcpdump-debuginfo 0 14:3.9.4-11.el5
Red Hat:enterprise_linux:5::server arpwatch 0 14:2.1a13-18.el5
Red Hat:enterprise_linux:5::server libpcap 0 14:0.9.4-11.el5
Red Hat:enterprise_linux:5::server libpcap-devel 0 14:0.9.4-11.el5
Red Hat:enterprise_linux:5::server tcpdump 0 14:3.9.4-11.el5
Red Hat:enterprise_linux:5::server tcpdump-debuginfo 0 14:3.9.4-11.el5

Related vulnerabilities