Buffer Over-read Vulnerability in tcpdump: CVE-2018-16230

tcpdump Updated 02 Oct 2025

Summary

03/10/2019
N/A
Yes i
High
7.5

ALPINE-CVE-2018-16230: The BGP parser in tcpdump before 4.9.3 has a buffer over-read in print-bgp.c:bgp_attr_print() (MP_REACH_NLRI). Affects tcpdump versions < 4.9.3-r0. Fixed in 4.9.3-r0. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

tcpdump is a powerful command-line packet analyzer tool used for network traffic analysis. It allows users to capture and display packets being transmitted or received over a network to troubleshoot issues or monitor network activity. The tool is widely utilized by network administrators and security professionals for its ability to dissect various network protocols. However, a vulnerability identified as CVE-2018-16230 has been discovered in tcpdump versions prior to 4.9.3, which could lead to potential security risks.

Vulnerability Detail

The vulnerability stems from a buffer over-read in the BGP parser of tcpdump, specifically in the function print-bgp.c:bgp_attr_print(). This flaw can be exploited to read beyond the intended buffer, potentially exposing sensitive data or causing unexpected behavior in the application. The issue is particularly concerning as it affects the handling of the MP_REACH_NLRI attribute in BGP packets, which could lead to information disclosure or denial of service. The CVSS score for this vulnerability is 7.5, indicating a high severity level.

How To Fix

Minimum fixed version

4.9.3-r0

This is the first release that contains the fix.

sudo apk add --upgrade tcpdump

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, users can avoid using tcpdump to analyze BGP packets until the package is updated to a secure version. Additionally, monitoring network traffic with alternative tools that do not exhibit this vulnerability may be considered.

Conclusion

The buffer over-read vulnerability in tcpdump, identified as CVE-2018-16230, poses significant risks to network security. Users are strongly advised to update to the patched version to mitigate these risks. Utilizing tools like Vulert can help monitor and alert for such vulnerabilities in real-time.

See every vulnerability recorded for tcpdump →

Share this vulnerability

FAQ

CVE-2018-16230 is a vulnerability in tcpdump that allows for a buffer over-read in the BGP parser, potentially leading to information disclosure.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.

Exploitation of this vulnerability could lead to sensitive data exposure or denial of service, impacting the integrity and availability of network services.

Yes, tcpdump has released a patch in version 4.9.3, which addresses the buffer over-read issue.

If immediate updating is not possible, refrain from using tcpdump for analyzing BGP packets and consider alternative network analysis tools.

Related vulnerabilities

Recent vulnerabilities recorded for tcpdump.

How To Fix

Minimum fixed version

4.9.3-r0

This is the first release that contains the fix.

sudo apk add --upgrade tcpdump

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback