CVE-2018-5381
Reported by certcc · Published February 19, 2018
The Quagga BGP daemon (bgpd) prior to version 1.2.3 has a bug in its parsing of "Capabilities" in BGP OPEN messages, in the bgp_packet.c:bgp_capability_msg_parse function. The parser can enter an infinite loop on invalid capabilities if a Multi-Protocol capability does not have a recognized AFI/SAFI, causing a denial of service.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| quagga | Ubuntu:14.04:LTS | 0.99.22.4-3ubuntu1.5 |
| quagga | quagga | 1.2.2 |
| ruggedcom_rox_ii_firmware | siemens | 2.13.0 |
| quagga | Ubuntu:16.04:LTS | 0.99.24.1-2ubuntu1.4 |
| bgpd | Quagga | 1.2.3 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Quagga | bgpd | bpgd |
| Quagga | bgpd | * |
Timeline
- Feb 13, 2018 CVE Published
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Sep 8, 2025 CVE Updated
- Mar 6, 2026 Distribution Patch (4 in total, the first dated here)
- Mar 6, 2026 Security Advisory (6 in total, the first dated here)
- Sep 19, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2018-5381
vulnetix vdb fixes CVE-2018-5381
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2018-5381/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_CONFIRM
- USN-3573-1 vendor-advisoryx_refsource_UBUNTU
- DSA-4115 vendor-advisoryx_refsource_DEBIAN
- x_refsource_CONFIRM
- GLSA-201804-17 vendor-advisoryx_refsource_GENTOO
- [debian-lts-announce] 20180216 [SECURITY] [DLA 1286-1] quagga security update mailing-listx_refsource_MLIST
- VU#940439 third-party-advisoryx_refsource_CERT-VN
- x_refsource_CONFIRM