Skip to content
Fencer Vulns
medium 6.5

CVE-2018-5381 json

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:bg…

published 2018-02-19 8 y ago modified 2026-06-17 4 mo ago also EUVD-2018-17153

cvss
6.5
version 3.0, CNA
cisa kev
Not listed
not in CISA's catalog
epss
30.2%
EPSS 30.2% chance of exploitation in 30 days, percentile 98%
public exploits
0
none known

Summary

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.

Patch / fix

  • Quagga bgpd 1.2.3
  • quagga Ubuntu 14.04 LTS 0.99.22.4-3ubuntu1.5
  • quagga Ubuntu 16.04 LTS 0.99.24.1-2ubuntu1.4

ubuntu advisories UBUNTU-CVE-2018-5381

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • quagga SLES for SAP 12 SP5, SLES 12 SP5, SLE Software Development Kit 12 SP5 1.1.1-17.13.1
  • quagga SLES for SAP 11 SP4, SLES 11 SP4, SLES 11 SP3-TERADATA +3 more 0.99.15-0.30.3.1
  • quagga SLES for SAP 12 SP3, SLES for SAP 12 SP2, SLES for Raspberry Pi 12 SP2 +4 more 1.1.1-17.7.1
  • quagga SLES for SAP 12 SP1, SLES 12-LTSS, SLES 12 SP1-LTSS +1 more 0.99.22.1-16.4.1

suse advisories SUSE-SU-2024:3426-1SUSE-SU-2018:0457-1SUSE-SU-2018:0456-1SUSE-SU-2018:0455-1

  • quagga openSUSE Tumbleweed 1.2.4-2.14

opensuse advisories openSUSE-SU-2024:11290-1

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2018-5381 updated cvss 6.5

quagga: Infinite loop issue triggered by invalid OPEN message allows denial-of-service

  • Red Hat Enterprise Linux 5 quagga Red Hat Enterprise Linux 6 quagga, quagga-contrib Red Hat Enterprise Linux 7 quagga, quagga-contrib
    affected: no fix planned “Will not fix”
  • Red Hat Enterprise Linux 8 quagga, quagga-contrib
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

cisa ICSA-19-099-05 updated cvss 7.5

ICSA-19-099-05 Siemens RUGGEDCOM ROX II

Facts from CISA's republication of the vendor's own advisory (CSAF); the linked advisory is the authoritative source. CISA notification · csaf

Exploit prediction

30.16% chance of exploitation in the next 30 days, higher than 98% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
CNA 3.0 6.5 CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
NVD 3.0 7.5 CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD 2.0 5.0 AV:N/AC:L/Au:N/C:N/I:N/A:P

Affected products

  • Quagga bgpd

Classification

Weakness
  • CWE-228 Improper Handling of Syntactically Invalid Structure
  • CWE-835 Loop with Unreachable Exit Condition

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.