CVE-2018-16300

Source
https://nvd.nist.gov/vuln/detail/CVE-2018-16300
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2018-16300.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2018-16300
Downstream
Related
Published
2019-10-03T16:15:12Z
Modified
2025-10-15T09:22:31.085785Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
[none]
Details

The BGP parser in tcpdump before 4.9.3 allows stack consumption in print-bgp.c:bgpattrprint() because of unlimited recursion.

References

Affected packages

Git / github.com/the-tcpdump-group/tcpdump

Affected ranges

Type
GIT
Repo
https://github.com/the-tcpdump-group/tcpdump
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

tcpdump-3.*

tcpdump-3.5.1
tcpdump-3.6.1
tcpdump-3.7.1
tcpdump-3.8-bp

tcpdump-4.*

tcpdump-4.5.0
tcpdump-4.6.0
tcpdump-4.6.0-bp
tcpdump-4.7.0-bp
tcpdump-4.9.0
tcpdump-4.9.0-bp
tcpdump-4.9.1
tcpdump-4.9.2

Database specific

{
    "vanir_signatures": [
        {
            "target": {
                "file": "print-bgp.c",
                "function": "bgp_update_print"
            },
            "signature_version": "v1",
            "digest": {
                "length": 2267.0,
                "function_hash": "309882659092036301308043375456346057996"
            },
            "id": "CVE-2018-16300-7627326c",
            "deprecated": false,
            "source": "https://github.com/the-tcpdump-group/tcpdump/commit/af2cf04a9394c1a56227c2289ae8da262828294a",
            "signature_type": "Function"
        },
        {
            "target": {
                "file": "print-bgp.c"
            },
            "signature_version": "v1",
            "digest": {
                "threshold": 0.9,
                "line_hashes": [
                    "330949681160558468413429460617835331910",
                    "141881915480973847955323516918626720718",
                    "98152526311664306019175345027733956822",
                    "69930951805381382789606927975975268164",
                    "188562718673582199025599945440985804738",
                    "217711695779557728041145754524260658965",
                    "204060531203740918921648190468983664222",
                    "294405672907950825367948507040268303826",
                    "263002165216818461252352360805882156517",
                    "111691984917457457792790044347773620397",
                    "263301420159176326704959826765944897216",
                    "231460826325824960171371317924030813961"
                ]
            },
            "id": "CVE-2018-16300-f032bcc0",
            "deprecated": false,
            "source": "https://github.com/the-tcpdump-group/tcpdump/commit/af2cf04a9394c1a56227c2289ae8da262828294a",
            "signature_type": "Line"
        },
        {
            "target": {
                "file": "print-bgp.c",
                "function": "bgp_attr_print"
            },
            "signature_version": "v1",
            "digest": {
                "length": 25760.0,
                "function_hash": "233637868526048202855357606634027936969"
            },
            "id": "CVE-2018-16300-fda1ac5d",
            "deprecated": false,
            "source": "https://github.com/the-tcpdump-group/tcpdump/commit/af2cf04a9394c1a56227c2289ae8da262828294a",
            "signature_type": "Function"
        }
    ]
}