← Vulnerability feed

Vulnerability record · CVE-2007-3798 · published 16 July 2007

CVE-2007-3798: tcpdump BGP dissector integer overflow allows remote code execution

Tcpdump · Tcpdump

tcpdump 3.9.6 and earlier contains an integer overflow in print-bgp.c in the BGP dissector, reachable through crafted TLVs in a BGP packet and tied to an unchecked return value. Because tcpdump is widely used to inspect untrusted traffic, a malformed packet can crash or compromise the parsing process. The record does not list specific affected version ranges beyond "3.9.6 and earlier."

9.8 CVSS 3.1 Critical EPSS 70% · top 0.6% CWE-252 · Unchecked return value
9.8CVSS 3.1 base score, v2 6.8
70%EPSS exploitation probability, 30 days
NoNot in CISA KEV
7Affected product versions listed by NVD
70References, 2 tagged exploit
16 Jun 2026Last modified by NVD

Description

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.

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Automated analysis

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 19 September 2026. Confidence: medium.

high priorityCVSS 3.1 is 9.8 critical with network reachability and no privileges or interaction, and EPSS is very high with a public exploit reference, though KEV does not list it and the flaw is old.

What it is

tcpdump 3.9.6 and earlier contains an integer overflow in print-bgp.c in the BGP dissector, reachable through crafted TLVs in a BGP packet and tied to an unchecked return value. Because tcpdump is widely used to inspect untrusted traffic, a malformed packet can crash or compromise the parsing process. The record does not list specific affected version ranges beyond "3.9.6 and earlier."

Impact

An attacker can execute arbitrary code in the context of the tcpdump process, or at minimum crash it, when a crafted BGP packet is parsed. This gives code execution on the host running the capture, not just a denial of service.

Attack surface

The flaw is reached over the network by feeding a crafted BGP packet to the BGP dissector; the CVSS vector shows AV:N/AC:L/PR:N/UI:N, so no authentication or user interaction is required. Any deployment that captures or processes untrusted BGP traffic with an affected tcpdump build is exposed.

Exploitation

CVE-2007-3798 is not listed in CISA KEV, but EPSS is high at 0.70386 (99.35th percentile), and the references include an exploit link tagged "Exploit." That indicates public exploit material exists, though the record does not confirm active in-the-wild use.

What to do

  • Upgrade tcpdump to a version later than 3.9.6; apply the vendor patch for your distribution (Debian DSA-1353, FreeBSD SA-07:06, Slackware, Red Hat, Apple, Gentoo GLSA 200707-14).
  • If upgrade is not immediately possible, avoid running tcpdump against untrusted or unfiltered BGP traffic, and restrict capture to trusted interfaces and peers.
  • Run tcpdump with least privilege and isolate capture hosts so code execution in the dissector does not reach production systems.
  • Track vendor advisories for the listed products (Ubuntu, Debian, Slackware, FreeBSD, macOS/Mac OS X Server) and confirm the fix is applied on each.
  • Review any historical packet captures or automation that processes BGP data with affected tcpdump builds.

Detection

  • Monitor for tcpdump crashes or abnormal process exits when parsing BGP traffic, especially on capture hosts.
  • Alert on unexpected child processes or outbound connections originating from tcpdump or capture tooling.
  • Audit hosts and images for tcpdump versions 3.9.6 and earlier, and flag any that still process untrusted BGP packets.
  • Watch for crafted BGP TLV patterns in captured traffic if packet-level logging is available.

This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.

Affected products

7 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

LinkTags
http://bugs.gentoo.org/show_bug.cgi?id=184815 Third Party Advisory
http://cvs.tcpdump.org/cgi-bin/cvsweb/tcpdump/print-bgp.c?r1=1.91.2.11&r2=1.91.2.12 Broken Link
http://docs.info.apple.com/article.html?artnum=307179 Broken Link
http://lists.apple.com/archives/security-announce/2007/Dec/msg00002.html Mailing List
http://secunia.com/advisories/26135 Broken LinkVendor Advisory
http://secunia.com/advisories/26168 Broken LinkVendor Advisory
http://secunia.com/advisories/26223 Broken LinkVendor Advisory
http://secunia.com/advisories/26231 Broken LinkVendor Advisory
http://secunia.com/advisories/26263 Broken LinkVendor Advisory
http://secunia.com/advisories/26266 Broken LinkVendor Advisory
http://secunia.com/advisories/26286 Broken LinkVendor Advisory
http://secunia.com/advisories/26395 Broken LinkVendor Advisory
http://secunia.com/advisories/26404 Broken LinkVendor Advisory
http://secunia.com/advisories/26521 Broken LinkVendor Advisory
http://secunia.com/advisories/27580 Broken LinkVendor Advisory
http://secunia.com/advisories/28136 Broken LinkVendor Advisory
http://security.freebsd.org/advisories/FreeBSD-SA-07:06.tcpdump.asc Third Party Advisory
http://security.gentoo.org/glsa/glsa-200707-14.xml Third Party Advisory
http://slackware.com/security/viewer.php?l=slackware-security&y=2007&m=slackware-security.449313 Mailing ListPatch
http://www.debian.org/security/2007/dsa-1353 Third Party Advisory
http://www.digit-labs.org/files/exploits/private/tcpdump-bgp.c Exploit
http://www.mandriva.com/security/advisories?name=MDKSA-2007:148 Third Party Advisory
http://www.novell.com/linux/security/advisories/2007_16_sr.html Broken Link
http://www.redhat.com/support/errata/RHSA-2007-0368.html Broken Link
http://www.redhat.com/support/errata/RHSA-2007-0387.html Broken LinkVendor Advisory
http://www.securityfocus.com/archive/1/474225/100/0/threaded Broken LinkThird Party AdvisoryVDB Entry
http://www.securityfocus.com/bid/24965 Broken LinkThird Party AdvisoryVDB Entry
http://www.securitytracker.com/id?1018434 Broken LinkThird Party AdvisoryVDB Entry
http://www.trustix.org/errata/2007/0023/ Broken Link
http://www.turbolinux.com/security/2007/TLSA-2007-46.txt Broken Link
http://www.ubuntu.com/usn/usn-492-1 Third Party Advisory
http://www.us-cert.gov/cas/techalerts/TA07-352A.html Broken LinkThird Party AdvisoryUS Government Resource
http://www.vupen.com/english/advisories/2007/2578 Broken LinkVendor Advisory
http://www.vupen.com/english/advisories/2007/4238 Broken LinkVendor Advisory
https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A9771 Broken Link
http://bugs.gentoo.org/show_bug.cgi?id=184815 Third Party Advisory
http://cvs.tcpdump.org/cgi-bin/cvsweb/tcpdump/print-bgp.c?r1=1.91.2.11&r2=1.91.2.12 Broken Link
http://docs.info.apple.com/article.html?artnum=307179 Broken Link
http://lists.apple.com/archives/security-announce/2007/Dec/msg00002.html Mailing List
http://secunia.com/advisories/26135 Broken LinkVendor Advisory

Track CVE-2007-3798 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

10.0CVE-2025-32433Erlang/OTP SSH server missing authentication allows remote code executionErlang/OTP SSH servers before OTP-27.3.3, OTP-26.2.5.11 and OTP-25.3.2.20 mishandle SSH protocol messages, letting an unauthenticated attacker execut…KEVEPSS 99%analysed10.0CVE-2025-24201Apple WebKit out-of-bounds write allows sandbox escapeCVE-2025-24201 is an out-of-bounds write in Apple's WebKit that was addressed with improved checks. Maliciously crafted web content may break out of …KEVEPSS 3.8%analysed10.0CVE-2021-44228Apache Log4j2 JNDI lookup remote code executionApache Log4j2 versions 2.0-beta9 through 2.15.0 (excluding 2.12.2, 2.12.3, and 2.3.1) do not protect against attacker-controlled LDAP and other JNDI …KEVEPSS 100%analysed9.8CVE-2026-24061GNU Inetutils telnetd argument injection allows remote auth bypasstelnetd in GNU Inetutils through 2.7 fails to sanitize the USER environment variable, so a value such as "-f root" is passed as an argument to login …KEVEPSS 99%analysed9.8CVE-2025-39682Linux kernel TLS zero-length record handling flaw on rx_listThe Linux kernel TLS receive path mishandles zero-length records that arrive from the rx_list, breaking the assumption that a record type change cann…KEVEPSS 2.9%analysed9.8CVE-2025-24813Apache Tomcat Default Servlet path equivalence enables RCE and file disclosureApache Tomcat mishandles path equivalence for names containing an internal dot, letting a remote unauthenticated attacker write files through the Def…KEVEPSS 100%analysed9.8CVE-2024-9680Mozilla Firefox and Thunderbird use-after-free in Animation timelinesA use-after-free flaw in Animation timelines allows an attacker to execute code in the content process of Firefox and Thunderbird. Mozilla reports ex…KEVEPSS 23%analysed9.8CVE-2023-46604Apache ActiveMQ OpenWire deserialization remote code executionThe Java OpenWire protocol marshaller in Apache ActiveMQ deserializes untrusted data, letting an attacker manipulate serialized class types so the br…KEVEPSS 100%analysed

Source: NIST National Vulnerability Database (record CVE-2007-3798), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.