CVE-2018-5379
The Quagga BGP daemon (bgpd) prior to version 1.2.3 can double-free memory when processing...
The Quagga BGP daemon (bgpd) prior to version 1.2.3 can double-free memory when processing certain forms of UPDATE message, containing cluster-list and/or unknown attributes. A successful attack could cause a denial of service or potentially allow an attacker to execute arbitrary code.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- High
- Privileges needed
- Low
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
CVE List Score used
7.5
The Quagga BGP daemon (bgpd) prior to version 1.2.3 can double-free memory when processing certain forms of UPDATE message, containing cluster-list and/or unknown attributes. A successful attack could cause a denial of service or potentially allow an attacker to execute arbitrary code.
- Record
CVE-2018-5379- CVSS 3.0
- 7.5 High
CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-415
- Updated
- 2026-11-02
EUVDEUVD-2018-17151
7.5
The Quagga BGP daemon (bgpd) prior to version 1.2.3 can double-free memory when processing certain forms of UPDATE message, containing cluster-list and/or unknown attributes. A successful attack could cause a denial of service or potentially allow an attacker to execute arbitrary code.
- Record
EUVD-2018-17151- CVSS 3.0
- 7.5 High
CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-03
GitHub AdvisoriesGHSA-5prq-47x2-38gv
9.8
The Quagga BGP daemon (bgpd) prior to version 1.2.3 can double-free memory when processing...
The Quagga BGP daemon (bgpd) prior to version 1.2.3 can double-free memory when processing certain forms of UPDATE message, containing cluster-list and/or unknown attributes. A successful attack could cause a denial of service or potentially allow an attacker to execute arbitrary code.
- Record
GHSA-5prq-47x2-38gv- CVSS 3.0
- 9.8 Critical
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-415
- Updated
- 2026-11-02
NVD
7.5
The Quagga BGP daemon (bgpd) prior to version 1.2.3 can double-free memory when processing certain forms of UPDATE message, containing cluster-list and/or unknown attributes. A successful attack could cause a denial of service or potentially allow an attacker to execute arbitrary code.
- Record
CVE-2018-5379- CVSS 3.0
- 7.5 High
CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H - CVSS 3.0
- 9.8 Critical
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - CVSS 2.0
- 7.5 High
AV:N/AC:L/Au:N/C:P/I:P/A:P - Weakness
- CWE-415
- Updated
- 2026-11-02
OSVRHSA-2018:0377
8.1
Red Hat Security Advisory: quagga security update
- Record
RHSA-2018:0377- CVSS 3.0
- 8.1 High
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVUBUNTU-CVE-2018-5379
9.8
The Quagga BGP daemon (bgpd) prior to version 1.2.3 can double-free memory when processing certain forms of UPDATE message, containing cluster-list and/or unknown attributes. A successful attack could cause a denial of service or potentially allow an attacker to execute arbitrary code.
- Record
UBUNTU-CVE-2018-5379- CVSS 3.0
- 9.8 Critical
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - CVSS 3.0
- 7.5 High
CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
Show 7 moreShow less
OSVMGASA-2018-0133 No score
Updated quagga packages fix security vulnerability
This is an update to fix several security issues.
- CVE-2018-5379: Fix double free of unknown attribute
- CVE-2018-5380: debug print of received NOTIFY data can over-read msg array
- 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
| Package | Affected | Fixed |
|---|---|---|
quaggaDebian: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 less0.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 |
quaggaDebian: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 |
quaggaDebian: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 |
quaggaMageia:6 From an advisory covering 3 CVEs |
before 0.99.24.1-6.1.mga6 | 0.99.24.1-6.1.mga6 |
quaggaRed Hat:enterprise_linux:7::server |
before 0:0.99.22.4-5.el7_4 | 0:0.99.22.4-5.el7_4 |
quagga-debuginfoRed Hat:enterprise_linux:7::server |
before 0:0.99.22.4-5.el7_4 | 0:0.99.22.4-5.el7_4 |
quagga-contribRed Hat:enterprise_linux:7::server |
before 0:0.99.22.4-5.el7_4 | 0:0.99.22.4-5.el7_4 |
quagga-develRed Hat:enterprise_linux:7::server |
before 0:0.99.22.4-5.el7_4 | 0:0.99.22.4-5.el7_4 |
quaggaRed Hat:enterprise_linux:7::workstation |
before 0:0.99.22.4-5.el7_4 | 0:0.99.22.4-5.el7_4 |
quagga-debuginfoRed Hat:enterprise_linux:7::workstation |
before 0:0.99.22.4-5.el7_4 | 0:0.99.22.4-5.el7_4 |
Show 27 moreShow less
| Package | Affected | Fixed |
|---|---|---|
quagga-contribRed Hat:enterprise_linux:7::workstation |
before 0:0.99.22.4-5.el7_4 | 0:0.99.22.4-5.el7_4 |
quagga-develRed Hat:enterprise_linux:7::workstation |
before 0:0.99.22.4-5.el7_4 | 0:0.99.22.4-5.el7_4 |
quaggaSUSE:OpenStack Cloud 6 From an advisory covering 6 CVEs |
before 0.99.22.1-16.4.1 | 0.99.22.1-16.4.1 |
quaggaSUSE: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 |
quaggaSUSE: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 |
quaggaSUSE: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 |
quaggaSUSE: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 |
quaggaSUSE: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 |
quaggaSUSE: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 |
quaggaSUSE:Linux Enterprise Server 12 SP2 From an advisory covering 5 CVEs |
before 1.1.1-17.7.1 | 1.1.1-17.7.1 |
quaggaSUSE: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 |
quaggaSUSE:Linux Enterprise Server 12 SP3 From an advisory covering 5 CVEs |
before 1.1.1-17.7.1 | 1.1.1-17.7.1 |
quaggaSUSE: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 |
quaggaSUSE: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 |
quaggaSUSE: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 |
quaggaSUSE: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 |
quaggaSUSE: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 |
quaggaSUSE: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 |
quaggaSUSE: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 |
quaggaSUSE: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 |
quaggaSUSE:Linux Enterprise Server 12 SP5 From an advisory covering 7 CVEs |
before 1.1.1-17.13.1 | 1.1.1-17.13.1 |
quaggaSUSE: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 |
quaggaUbuntu: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 less0.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 |
quaggaUbuntu: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 |
quaggaUbuntu: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 less0.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 |
quaggaUbuntu: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 |
quaggaopenSUSE:Tumbleweed From an advisory covering 12 CVEs |
before 1.2.4-2.14 | 1.2.4-2.14 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2018-5379 is a high vulnerability (CVSS 7.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 38.5%, the 98th percentile. Fixed in quagga 0:0.99.22.4-5.el7_4.
References
usn.ubuntu.com/3573-1
debian.org/security/2018/dsa-4115
securityfocus.com/bid/103105
savannah.nongnu.org/forum/forum.php?forum_id=9095
security.gentoo.org/glsa/201804-17
gogs.quagga.net/Quagga/quagga/src/master/doc/security/Quagga-2018-1114.txt
Show 52 moreShow less
lists.debian.org/debian-lts-announce/2018/02/msg00021.html
kb.cert.org/vuls/id/940439
access.redhat.com/errata/RHSA-2018:0377
cert-portal.siemens.com/productcert/pdf/ssa-451142.pdf
nvd.nist.gov/vuln/detail/CVE-2018-5379
github.com/advisories/GHSA-5prq-47x2-38gv
advisories.mageia.org/MGASA-2018-0133.html
bugs.mageia.org/show_bug.cgi?id=22610
nvd.nist.gov/vuln/detail/CVE-2018-5380
nvd.nist.gov/vuln/detail/CVE-2018-5381
quagga.net/security/Quagga-2018-1114.txt
quagga.net/security/Quagga-2018-1550.txt
quagga.net/security/Quagga-2018-1975.txt
access.redhat.com/security/updates/classification
bugzilla.redhat.com/show_bug.cgi?id=1542985
security.access.redhat.com/data/csaf/v2/advisories/2018/rhsa-2018_0377.json
access.redhat.com/security/cve/CVE-2018-5379
cve.org/CVERecord?id=CVE-2018-5379
suse.com/support/update/announcement/2018/suse-su-20180455-1
bugzilla.suse.com/1021669
bugzilla.suse.com/1065641
bugzilla.suse.com/1079798
bugzilla.suse.com/1079799
bugzilla.suse.com/1079800
bugzilla.suse.com/1079801
suse.com/security/cve/CVE-2017-16227
suse.com/security/cve/CVE-2017-5495
suse.com/security/cve/CVE-2018-5378
suse.com/security/cve/CVE-2018-5379
suse.com/security/cve/CVE-2018-5380
suse.com/security/cve/CVE-2018-5381
suse.com/support/update/announcement/2018/suse-su-20180456-1
suse.com/support/update/announcement/2018/suse-su-20180457-1
suse.com/support/update/announcement/2024/suse-su-20243426-1
bugzilla.suse.com/1069468
bugzilla.suse.com/1202023
bugzilla.suse.com/1229438
bugzilla.suse.com/1230866
suse.com/security/cve/CVE-2017-15865
suse.com/security/cve/CVE-2022-37032
suse.com/security/cve/CVE-2024-44070
ubuntu.com/security/CVE-2018-5379
ubuntu.com/security/notices/USN-3573-1
ubuntu.com/security/CVE-2018-5378
ubuntu.com/security/CVE-2018-5380
ubuntu.com/security/CVE-2018-5381
suse.com/security/cve/CVE-2006-2223
suse.com/security/cve/CVE-2007-1995
suse.com/security/cve/CVE-2018-5278
suse.com/security/cve/CVE-2018-5279
suse.com/security/cve/CVE-2018-5280
suse.com/security/cve/CVE-2018-5281