Every CVE Search/ Get API key

CVE-2018-5381

The Quagga BGP daemon (bgpd) prior to version 1.2.3 has a bug in its parsing of "Capabilities" in...

6.5 MediumFix available

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.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
Low
User interaction
None

What an attacker can affect

Confidentiality
None
Integrity
None
Availability
High

Exploit likelihood

30.2%Up 27.8 points since Apr 14, 2021
90%50%10%1%

What each source reports

CVE List Score used 6.5

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.

Record
CVE-2018-5381
CVSS 3.0
6.5 MediumCVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Weakness
CWE-228
Updated
2026-11-02
EUVDEUVD-2018-17153 6.5

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.

Record
EUVD-2018-17153
CVSS 3.0
6.5 MediumCVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-03
GitHub AdvisoriesGHSA-g4qp-j7fc-2xcf 7.5

The Quagga BGP daemon (bgpd) prior to version 1.2.3 has a bug in its parsing of "Capabilities" in...

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.

Record
GHSA-g4qp-j7fc-2xcf
CVSS 3.0
7.5 HighCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weakness
CWE-835
Updated
2026-11-02
NVD 6.5

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.

Record
CVE-2018-5381
CVSS 3.0
6.5 MediumCVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CVSS 3.0
7.5 HighCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS 2.0
5.0 MediumAV:N/AC:L/Au:N/C:N/I:N/A:P
Weakness
CWE-228, CWE-835
Updated
2026-11-02
OSVUBUNTU-CVE-2018-5381 7.5

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.

Record
UBUNTU-CVE-2018-5381
CVSS 3.0
7.5 HighCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS 3.0
6.5 MediumCVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVCLSA-2026-1777946639 No score

quagga: Fix of CVE-2018-5381

  • CVE-2018-5381: bgpd capability parser can enter an infinite loop on invalid OPEN messages whose Multi-Protocol capability has an unrecognized AFI/SAFI, causing a denial of service.
Record
CLSA-2026-1777946639
Updated
2026-11-02
Show 8 moreShow less
OSVCLSA-2026-1778170790 No score

quagga: Fix of CVE-2018-5381

  • CVE-2018-5381: bgpd capability parser can enter an infinite loop on invalid OPEN messages whose Multi-Protocol capability has an unrecognized AFI/SAFI, causing a denial of service.
Record
CLSA-2026-1778170790
Updated
2026-11-02
OSVMGASA-2018-0133 No score

Updated quagga packages fix security vulnerability

This is an update to fix several security issues.

  1. CVE-2018-5379: Fix double free of unknown attribute
  2. CVE-2018-5380: debug print of received NOTIFY data can over-read msg array
  3. CVE-2018-5381: fix infinite loop on certain invalid OPEN messages
Record
MGASA-2018-0133
Updated
2026-11-02
OSVopenSUSE-SU-2024:11290-1 No score

libfpm_pb0-1.2.4-2.14 on GA media

These are all security issues fixed in the libfpm_pb0-1.2.4-2.14 package on the GA media of openSUSE Tumbleweed.

Record
openSUSE-SU-2024:11290-1
Updated
2026-11-02
OSVSUSE-SU-2018:0455-1 No score

Security update for quagga

This update for quagga fixes the following security issues:

  • The Quagga BGP daemon contained a bug in the AS_PATH size calculation that could have been exploited to facilitate a remote denial-of-service attack via specially crafted BGP UPDATE messages. [CVE-2017-16227, bsc#1065641]

  • The Quagga BGP daemon did not check whether data sent to peers via NOTIFY had an invalid attribute length. It was possible to exploit this issue and cause the bgpd process to leak sensitive information over the network to a configured peer. [CVE-2018-5378, bsc#1079798]

  • The Quagga BGP daemon used to double-free memory when processing certain forms of UPDATE messages. This issue could be exploited by sending an optional/transitive UPDATE attribute that all conforming eBGP speakers should pass along. Consequently, a single UPDATE message could have affected many bgpd processes across a wide area of a network. Through this vulnerability, attackers could potentially have taken over control of affected bgpd processes remotely. [CVE-2018-5379, bsc#1079799]

  • It was possible to overrun internal BGP code-to-string conversion tables in the Quagga BGP daemon. Configured peers could have exploited this issue and cause bgpd to emit debug and warning messages into the logs that would contained arbitrary bytes. [CVE-2018-5380, bsc#1079800]

  • The Quagga BGP daemon could have entered an infinite loop if sent an invalid OPEN message by a configured peer. If this issue was exploited, then bgpd would cease to respond to any other events. BGP sessions would have been dropped and not be reestablished. The CLI interface would have been unresponsive. The bgpd daemon would have stayed in this state until restarted. [CVE-2018-5381, bsc#1079801]

  • The Quagga daemon's telnet 'vty' CLI contains an unbounded memory allocation bug that could be exploited for a denial-of-service attack on the daemon. This issue has been fixed. [CVE-2017-5495, bsc#1021669]

  • The telnet 'vty' CLI of the Quagga daemon is no longer enabled by default, because the passwords in the default 'zebra.conf' config file are now disabled. The vty interface is available via 'vtysh' utility using pam authentication to permit management access for root without password. [bsc#1021669]

Record
SUSE-SU-2018:0455-1
Updated
2026-11-02
OSVSUSE-SU-2018:0456-1 No score

Security update for quagga

This update for quagga fixes the security following issues:

  • The Quagga BGP daemon contained a bug in the AS_PATH size calculation that could have been exploited to facilitate a remote denial-of-service attack via specially crafted BGP UPDATE messages. [CVE-2017-16227, bsc#1065641]

  • The Quagga BGP daemon did not check whether data sent to peers via NOTIFY had an invalid attribute length. It was possible to exploit this issue and cause the bgpd process to leak sensitive information over the network to a configured peer. [CVE-2018-5378, bsc#1079798]

  • The Quagga BGP daemon used to double-free memory when processing certain forms of UPDATE messages. This issue could be exploited by sending an optional/transitive UPDATE attribute that all conforming eBGP speakers should pass along. Consequently, a single UPDATE message could have affected many bgpd processes across a wide area of a network. Through this vulnerability, attackers could potentially have taken over control of affected bgpd processes remotely. [CVE-2018-5379, bsc#1079799]

  • It was possible to overrun internal BGP code-to-string conversion tables in the Quagga BGP daemon. Configured peers could have exploited this issue and cause bgpd to emit debug and warning messages into the logs that would contained arbitrary bytes. [CVE-2018-5380, bsc#1079800]

  • The Quagga BGP daemon could have entered an infinite loop if sent an invalid OPEN message by a configured peer. If this issue was exploited, then bgpd would cease to respond to any other events. BGP sessions would have been dropped and not be reestablished. The CLI interface would have been unresponsive. The bgpd daemon would have stayed in this state until restarted. [CVE-2018-5381, bsc#1079801]

Record
SUSE-SU-2018:0456-1
Updated
2026-11-02
OSVSUSE-SU-2018:0457-1 No score

Security update for quagga

This update for quagga fixes the following issues:

  • The Quagga BGP daemon contained a bug in the AS_PATH size calculation that could have been exploited to facilitate a remote denial-of-service attack via specially crafted BGP UPDATE messages. [CVE-2017-16227, bsc#1065641]

  • The Quagga BGP daemon did not check whether data sent to peers via NOTIFY had an invalid attribute length. It was possible to exploit this issue and cause the bgpd process to leak sensitive information over the network to a configured peer. [CVE-2018-5378, bsc#1079798]

  • The Quagga BGP daemon used to double-free memory when processing certain forms of UPDATE messages. This issue could be exploited by sending an optional/transitive UPDATE attribute that all conforming eBGP speakers should pass along. Consequently, a single UPDATE message could have affected many bgpd processes across a wide area of a network. Through this vulnerability, attackers could potentially have taken over control of affected bgpd processes remotely. [CVE-2018-5379, bsc#1079799]

  • It was possible to overrun internal BGP code-to-string conversion tables in the Quagga BGP daemon. Configured peers could have exploited this issue and cause bgpd to emit debug and warning messages into the logs that would contained arbitrary bytes. [CVE-2018-5380, bsc#1079800]

  • The Quagga BGP daemon could have entered an infinite loop if sent an invalid OPEN message by a configured peer. If this issue was exploited, then bgpd would cease to respond to any other events. BGP sessions would have been dropped and not be reestablished. The CLI interface would have been unresponsive. The bgpd daemon would have stayed in this state until restarted. [CVE-2018-5381, bsc#1079801]

  • The Quagga daemon's telnet 'vty' CLI contains an unbounded memory allocation bug that could be exploited for a denial-of-service attack on the daemon. This issue has been fixed. [CVE-2017-5495, bsc#1021669]

  • The telnet 'vty' CLI of the Quagga daemon is no longer enabled by default, because the passwords in the default 'zebra.conf' config file are now disabled. The vty interface is available via 'vtysh' utility using pam authentication to permit management access for root without password. [bsc#1021669]

Record
SUSE-SU-2018:0457-1
Updated
2026-11-02
OSVSUSE-SU-2024:3426-1 No score

Security update for quagga

This update for quagga fixes the following issues:

  • CVE-2017-15865: sensitive information disclosed when malformed BGP UPDATE packets are processed. (bsc#1230866)
  • CVE-2024-44070: crash when parsing Tunnel Encap attribute due to no length check. (bsc#1229438)
  • CVE-2022-37032: out-of-bounds read when parsing a BGP capability message due to incorrect size check. (bsc#1202023)

Bug fixes:

  • References to /var/adm/fillup-templates replaced with new %_fillupdir macro. (bsc#1069468)
Record
SUSE-SU-2024:3426-1
Updated
2026-11-02
OSVUSN-3573-1 No score

quagga vulnerabilities

It was discovered that a double-free vulnerability existed in the Quagga BGP daemon when processing certain forms of UPDATE message. A remote attacker could use this to cause a denial of service or possibly execute arbitrary code. (CVE-2018-5379)

It was discovered that the Quagga BGP daemon did not properly bounds check the data sent with a NOTIFY to a peer. An attacker could use this to expose sensitive information or possibly cause a denial of service. This issue only affected Ubuntu 17.10. (CVE-2018-5378)

It was discovered that a table overrun vulnerability existed in the Quagga BGP daemon. An attacker in control of a configured peer could use this to possibly expose sensitive information or possibly cause a denial of service. (CVE-2018-5380)

It was discovered that the Quagga BGP daemon in some configurations did not properly handle invalid OPEN messages. An attacker in control of a configured peer could use this to cause a denial of service (infinite loop). (CVE-2018-5381)

Record
USN-3573-1
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
quagga
TuxCare:OracleLinux:6
before 0.99.15-14.0.2.el6.tuxcare.ol.els3
0.99.15-14.0.2.el6.tuxcare.ol.els3
quagga-contrib
TuxCare:OracleLinux:6
before 0.99.15-14.0.2.el6.tuxcare.ol.els3
0.99.15-14.0.2.el6.tuxcare.ol.els3
quagga-devel
TuxCare:OracleLinux:6
before 0.99.15-14.0.2.el6.tuxcare.ol.els3
0.99.15-14.0.2.el6.tuxcare.ol.els3
quagga
TuxCare:CentOS:6
before 0.99.15-14.el6.tuxcare.els3
0.99.15-14.el6.tuxcare.els3
quagga-contrib
TuxCare:CentOS:6
before 0.99.15-14.el6.tuxcare.els3
0.99.15-14.el6.tuxcare.els3
quagga-devel
TuxCare:CentOS:6
before 0.99.15-14.el6.tuxcare.els3
0.99.15-14.el6.tuxcare.els3
quagga
Debian:7
From an advisory covering 3 CVEs
before 0.99.22.4-1+wheezy3+deb7u3, plus listed versions
0.99.21-4+wheezy10.99.21-4+wheezy20.99.22-10.99.22.1-10.99.22.1-2
Show 6 moreShow less
0.99.22.4-10.99.22.4-1+wheezy10.99.22.4-1+wheezy20.99.22.4-1+wheezy30.99.22.4-1+wheezy3+deb7u10.99.22.4-1+wheezy3+deb7u2
0.99.22.4-1+wheezy3+deb7u3
quagga
Debian:8
From an advisory covering 3 CVEs
before 0.99.23.1-1+deb8u5, plus listed versions
0.99.23.1-10.99.23.1-1+deb8u10.99.23.1-1+deb8u20.99.23.1-1+deb8u30.99.23.1-1+deb8u4
0.99.23.1-1+deb8u5
quagga
Debian:9
From an advisory covering 3 CVEs
before 1.1.1-3+deb9u2, plus listed versions
1.1.1-31.1.1-3+deb9u1
1.1.1-3+deb9u2
quagga
Mageia:6
From an advisory covering 3 CVEs
before 0.99.24.1-6.1.mga6
0.99.24.1-6.1.mga6
Show 25 moreShow less
Affected packages
PackageAffectedFixed
quagga
SUSE:OpenStack Cloud 6
From an advisory covering 6 CVEs
before 0.99.22.1-16.4.1
0.99.22.1-16.4.1
quagga
SUSE:Linux Enterprise Server for SAP Applications 12 SP1
From an advisory covering 6 CVEs
before 0.99.22.1-16.4.1
0.99.22.1-16.4.1
quagga
SUSE:Linux Enterprise Server 12-LTSS
From an advisory covering 6 CVEs
before 0.99.22.1-16.4.1
0.99.22.1-16.4.1
quagga
SUSE:Linux Enterprise Server 12 SP1-LTSS
From an advisory covering 6 CVEs
before 0.99.22.1-16.4.1
0.99.22.1-16.4.1
quagga
SUSE:Linux Enterprise Server for Raspberry Pi 12 SP2
From an advisory covering 5 CVEs
before 1.1.1-17.7.1
1.1.1-17.7.1
quagga
SUSE:Linux Enterprise Software Development Kit 12 SP2
From an advisory covering 5 CVEs
before 1.1.1-17.7.1
1.1.1-17.7.1
quagga
SUSE:Linux Enterprise Software Development Kit 12 SP3
From an advisory covering 5 CVEs
before 1.1.1-17.7.1
1.1.1-17.7.1
quagga
SUSE:Linux Enterprise Server 12 SP2
From an advisory covering 5 CVEs
before 1.1.1-17.7.1
1.1.1-17.7.1
quagga
SUSE:Linux Enterprise Server for SAP Applications 12 SP2
From an advisory covering 5 CVEs
before 1.1.1-17.7.1
1.1.1-17.7.1
quagga
SUSE:Linux Enterprise Server 12 SP3
From an advisory covering 5 CVEs
before 1.1.1-17.7.1
1.1.1-17.7.1
quagga
SUSE:Linux Enterprise Server for SAP Applications 12 SP3
From an advisory covering 5 CVEs
before 1.1.1-17.7.1
1.1.1-17.7.1
quagga
SUSE:Linux Enterprise Software Development Kit 11 SP4
From an advisory covering 6 CVEs
before 0.99.15-0.30.3.1
0.99.15-0.30.3.1
quagga
SUSE:Linux Enterprise Point of Sale 11 SP3
From an advisory covering 6 CVEs
before 0.99.15-0.30.3.1
0.99.15-0.30.3.1
quagga
SUSE:Linux Enterprise Server 11 SP3-LTSS
From an advisory covering 6 CVEs
before 0.99.15-0.30.3.1
0.99.15-0.30.3.1
quagga
SUSE:Linux Enterprise Server 11 SP3-TERADATA
From an advisory covering 6 CVEs
before 0.99.15-0.30.3.1
0.99.15-0.30.3.1
quagga
SUSE:Linux Enterprise Server 11 SP4
From an advisory covering 6 CVEs
before 0.99.15-0.30.3.1
0.99.15-0.30.3.1
quagga
SUSE:Linux Enterprise Server for SAP Applications 11 SP4
From an advisory covering 6 CVEs
before 0.99.15-0.30.3.1
0.99.15-0.30.3.1
quagga
SUSE:Linux Enterprise Software Development Kit 12 SP5
From an advisory covering 7 CVEs
before 1.1.1-17.13.1
1.1.1-17.13.1
quagga
SUSE:Linux Enterprise Server 12 SP5
From an advisory covering 7 CVEs
before 1.1.1-17.13.1
1.1.1-17.13.1
quagga
SUSE:Linux Enterprise Server for SAP Applications 12 SP5
From an advisory covering 7 CVEs
before 1.1.1-17.13.1
1.1.1-17.13.1
quagga
Ubuntu:14.04:LTS
before 0.99.22.4-3ubuntu1.5, plus listed versions
0.99.22.1-20.99.22.4-10.99.22.4-20.99.22.4-30.99.22.4-3ubuntu1
Show 4 moreShow less
0.99.22.4-3ubuntu1.10.99.22.4-3ubuntu1.20.99.22.4-3ubuntu1.30.99.22.4-3ubuntu1.4
0.99.22.4-3ubuntu1.5
quagga
Ubuntu:16.04:LTS
before 0.99.24.1-2ubuntu1.4, plus listed versions
0.99.24.1-20.99.24.1-2ubuntu10.99.24.1-2ubuntu1.10.99.24.1-2ubuntu1.20.99.24.1-2ubuntu1.3
0.99.24.1-2ubuntu1.4
quagga
Ubuntu:14.04:LTS
From an advisory covering 3 CVEs
before 0.99.22.4-3ubuntu1.5, plus listed versions
0.99.22.1-20.99.22.4-10.99.22.4-20.99.22.4-30.99.22.4-3ubuntu1
Show 4 moreShow less
0.99.22.4-3ubuntu1.10.99.22.4-3ubuntu1.20.99.22.4-3ubuntu1.30.99.22.4-3ubuntu1.4
0.99.22.4-3ubuntu1.5
quagga
Ubuntu:16.04:LTS
From an advisory covering 3 CVEs
before 0.99.24.1-2ubuntu1.4, plus listed versions
0.99.24.1-20.99.24.1-2ubuntu10.99.24.1-2ubuntu1.10.99.24.1-2ubuntu1.20.99.24.1-2ubuntu1.3
0.99.24.1-2ubuntu1.4
quagga
openSUSE:Tumbleweed
From an advisory covering 12 CVEs
before 1.2.4-2.14
1.2.4-2.14

History

History
RecordedChangedSources
affected, facts
aliasesEUVD
first indexedCVE List, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2018-5381 is a medium vulnerability (CVSS 6.5) in Quagga Bgpd, published February 13, 2018. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 30.2%, the 98th percentile. Fixed in quagga 0.99.15-14.0.2.el6.tuxcare.ol.els3.

References

Show 48 moreShow less
MoveEnter Open