Every CVE Search/ Get API key

CVE-2017-5495

All versions of Quagga, 0.93 through 1.1.0, are vulnerable to an unbounded memory allocation in...

7.5 HighFix available

All versions of Quagga, 0.93 through 1.1.0, are vulnerable to an unbounded memory allocation in the telnet 'vty' CLI, leading to a Denial-of-Service of Quagga daemons, or even the entire host. When Quagga daemons are configured with their telnet CLI enabled, anyone who can connect to the TCP ports can trigger this vulnerability, prior to authentication. Most distributions restrict the Quagga telnet interface to local access only by default. The Quagga telnet interface 'vty' input buffer grows automatically, without bound, so long as a newline is not entered. This allows an attacker to cause the Quagga daemon to allocate unbounded memory by sending very long strings without a newline. Eventually the daemon is terminated by the system, or the system itself runs out of memory. This is fixed in Quagga 1.1.1 and Free Range Routing (FRR) Protocol Suite 2017-01-10.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
None
User interaction
None

What an attacker can affect

Confidentiality
None
Integrity
None
Availability
High

Exploit likelihood

18.8%Up 17.3 points since Apr 14, 2021
90%50%10%1%

What each source reports

NVD Score used 7.5

All versions of Quagga, 0.93 through 1.1.0, are vulnerable to an unbounded memory allocation in the telnet 'vty' CLI, leading to a Denial-of-Service of Quagga daemons, or even the entire host. When Quagga daemons are configured with their telnet CLI enabled, anyone who can connect to the TCP ports can trigger this vulnerability, prior to authentication. Most distributions restrict the Quagga telnet interface to local access only by default. The Quagga telnet interface 'vty' input buffer grows automatically, without bound, so long as a newline is not entered. This allows an attacker to cause the Quagga daemon to allocate unbounded memory by sending very long strings without a newline. Eventually the daemon is terminated by the system, or the system itself runs out of memory. This is fixed in Quagga 1.1.1 and Free Range Routing (FRR) Protocol Suite 2017-01-10.

Record
CVE-2017-5495
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
7.8 HighAV:N/AC:L/Au:N/C:N/I:N/A:C
Weakness
CWE-119
Updated
2026-11-02
CVE List No score

All versions of Quagga, 0.93 through 1.1.0, are vulnerable to an unbounded memory allocation in the telnet 'vty' CLI, leading to a Denial-of-Service of Quagga daemons, or even the entire host. When Quagga daemons are configured with their telnet CLI enabled, anyone who can connect to the TCP ports can trigger this vulnerability, prior to authentication. Most distributions restrict the Quagga telnet interface to local access only by default. The Quagga telnet interface 'vty' input buffer grows automatically, without bound, so long as a newline is not entered. This allows an attacker to cause the Quagga daemon to allocate unbounded memory by sending very long strings without a newline. Eventually the daemon is terminated by the system, or the system itself runs out of memory. This is fixed in Quagga 1.1.1 and Free Range Routing (FRR) Protocol Suite 2017-01-10.

Record
CVE-2017-5495
Updated
2026-11-02
EUVDEUVD-2017-14599 No score

All versions of Quagga, 0.93 through 1.1.0, are vulnerable to an unbounded memory allocation in the telnet 'vty' CLI, leading to a Denial-of-Service of Quagga daemons, or even the entire host. When Quagga daemons are configured with their telnet CLI enabled, anyone who can connect to the TCP ports can trigger this vulnerability, prior to authentication. Most distributions restrict the Quagga telnet interface to local access only by default. The Quagga telnet interface 'vty' input buffer grows automatically, without bound, so long as a newline is not entered. This allows an attacker to cause the Quagga daemon to allocate unbounded memory by sending very long strings without a newline. Eventually the daemon is terminated by the system, or the system itself runs out of memory. This is fixed in Quagga 1.1.1 and Free Range Routing (FRR) Protocol Suite 2017-01-10.

Record
EUVD-2017-14599
Updated
2026-11-03
GitHub AdvisoriesGHSA-6629-rcxv-r9v7 7.5

All versions of Quagga, 0.93 through 1.1.0, are vulnerable to an unbounded memory allocation in...

All versions of Quagga, 0.93 through 1.1.0, are vulnerable to an unbounded memory allocation in the telnet 'vty' CLI, leading to a Denial-of-Service of Quagga daemons, or even the entire host. When Quagga daemons are configured with their telnet CLI enabled, anyone who can connect to the TCP ports can trigger this vulnerability, prior to authentication. Most distributions restrict the Quagga telnet interface to local access only by default. The Quagga telnet interface 'vty' input buffer grows automatically, without bound, so long as a newline is not entered. This allows an attacker to cause the Quagga daemon to allocate unbounded memory by sending very long strings without a newline. Eventually the daemon is terminated by the system, or the system itself runs out of memory. This is fixed in Quagga 1.1.1 and Free Range Routing (FRR) Protocol Suite 2017-01-10.

Record
GHSA-6629-rcxv-r9v7
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-119
Updated
2026-11-02
OSVALPINE-CVE-2017-5495 7.5

All versions of Quagga, 0.93 through 1.1.0, are vulnerable to an unbounded memory allocation in the telnet 'vty' CLI, leading to a Denial-of-Service of Quagga daemons, or even the entire host. When Quagga daemons are configured with their telnet CLI enabled, anyone who can connect to the TCP ports can trigger this vulnerability, prior to authentication. Most distributions restrict the Quagga telnet interface to local access only by default. The Quagga telnet interface 'vty' input buffer grows automatically, without bound, so long as a newline is not entered. This allows an attacker to cause the Quagga daemon to allocate unbounded memory by sending very long strings without a newline. Eventually the daemon is terminated by the system, or the system itself runs out of memory. This is fixed in Quagga 1.1.1 and Free Range Routing (FRR) Protocol Suite 2017-01-10.

Record
ALPINE-CVE-2017-5495
CVSS 3.0
7.5 HighCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSV 7.5

All versions of Quagga, 0.93 through 1.1.0, are vulnerable to an unbounded memory allocation in the telnet 'vty' CLI, leading to a Denial-of-Service of Quagga daemons, or even the entire host. When Quagga daemons are configured with their telnet CLI enabled, anyone who can connect to the TCP ports can trigger this vulnerability, prior to authentication. Most distributions restrict the Quagga telnet interface to local access only by default. The Quagga telnet interface 'vty' input buffer grows automatically, without bound, so long as a newline is not entered. This allows an attacker to cause the Quagga daemon to allocate unbounded memory by sending very long strings without a newline. Eventually the daemon is terminated by the system, or the system itself runs out of memory. This is fixed in Quagga 1.1.1 and Free Range Routing (FRR) Protocol Suite 2017-01-10.

Record
CVE-2017-5495
CVSS 3.0
7.5 HighCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
Show 8 moreShow less
OSVRHSA-2017:0794 6.5

Red Hat Security Advisory: quagga security and bug fix update

Record
RHSA-2017:0794
CVSS 3.0
6.5 MediumCVSS:3.0/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVUBUNTU-CVE-2017-5495 7.5

All versions of Quagga, 0.93 through 1.1.0, are vulnerable to an unbounded memory allocation in the telnet 'vty' CLI, leading to a Denial-of-Service of Quagga daemons, or even the entire host. When Quagga daemons are configured with their telnet CLI enabled, anyone who can connect to the TCP ports can trigger this vulnerability, prior to authentication. Most distributions restrict the Quagga telnet interface to local access only by default. The Quagga telnet interface 'vty' input buffer grows automatically, without bound, so long as a newline is not entered. This allows an attacker to cause the Quagga daemon to allocate unbounded memory by sending very long strings without a newline. Eventually the daemon is terminated by the system, or the system itself runs out of memory. This is fixed in Quagga 1.1.1 and Free Range Routing (FRR) Protocol Suite 2017-01-10.

Record
UBUNTU-CVE-2017-5495
CVSS 3.0
7.5 HighCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVMGASA-2017-0071 No score

Updated quagga packages fix security vulnerability

All versions of Quagga, 0.93 through 1.1.0, are vulnerable to an unbounded memory allocation in the telnet 'vty' CLI, leading to a Denial-of-Service of Quagga daemons, or even the entire host (CVE-2017-5495).

Record
MGASA-2017-0071
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-2017:2294-1 No score

Security update for quagga

This update provides Quagga 1.1.1, which brings several fixes and enhancements.

Security issues fixed:

  • CVE-2017-5495: Telnet 'vty' interface DoS due to unbounded memory allocation. (bsc#1021669)
  • CVE-2016-1245: Stack overrun in IPv6 RA receive code. (bsc#1005258)

Bug fixes:

  • Do not enable zebra's TCP interface (port 2600) to use default UNIX socket for communication between the daemons. (fate#323170)

Between 0.99.22.1 and 1.1.1 the following improvements have been implemented:

  • Changed the default of 'link-detect' state, controlling whether zebra will respond to link-state events and consider an interface to be down when link is down. To retain the current behavior save your config before updating, otherwise remove the 'link-detect' flag from your config prior to updating. There is also a new global 'default link-detect (on|off)' flag to configure the global default.
  • Greatly improved nexthop resolution for recursive routes.
  • Event driven nexthop resolution for BGP.
  • Route tags support.
  • Transport of TE related metrics over OSPF, IS-IS.
  • IPv6 Multipath for zebra and BGP.
  • Multicast RIB support has been extended. It still is IPv4 only.
  • RIP for IPv4 now supports equal-cost multipath (ECMP).
  • route-maps have a new action 'set ipv6 next-hop peer-address'.
  • route-maps have a new action 'set as-path prepend last-as'.
  • 'next-hop-self all' to override nexthop on iBGP route reflector setups.
  • New pimd daemon provides IPv4 PIM-SSM multicast routing.
  • IPv6 address management has been improved regarding tentative addresses. This is visible in that a freshly configured address will not immediately be marked as usable.
  • Recursive route support has been overhauled. Scripts parsing 'show ip route' output may need adaptation.
  • A large amount of changes has been merged for ospf6d. Careful evaluation prior to deployment is recommended.
  • Multiprotocol peerings over IPv6 now try to find a more appropriate IPv4 nexthop by looking at the interface.
  • Relaxed bestpath criteria for multipath and improved display of multipath routes in 'show ip bgp'. Scripts parsing this output may need to be updated.
  • Support for iBGP TTL security.
Record
SUSE-SU-2017:2294-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: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
OSVUSN-3471-1 No score

quagga vulnerabilities

Andreas Jaggi discovered that Quagga incorrectly handled certain BGP UPDATE messages. A remote attacker could possibly use this issue to cause Quagga to crash, resulting in a denial of service. (CVE-2017-16227)

Quentin Young discovered that Quagga incorrectly handled memory in the telnet vty CLI. An attacker able to connect to the telnet interface could possibly use this issue to cause Quagga to consume memory, resulting in a denial of service. This issue only affected Ubuntu 14.04 LTS and Ubuntu 16.04 LTS. (CVE-2017-5495)

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

Affected products

Affected packages

Affected packages
PackageAffectedFixed
quagga
Alpine:v3.10
before 1.1.1-r0
1.1.1-r0
quagga
Alpine:v3.11
before 1.1.1-r0
1.1.1-r0
quagga
Alpine:v3.12
before 1.1.1-r0
1.1.1-r0
quagga
Alpine:v3.13
before 1.1.1-r0
1.1.1-r0
quagga
Alpine:v3.14
before 1.1.1-r0
1.1.1-r0
quagga
Alpine:v3.15
before 1.1.1-r0
1.1.1-r0
quagga
Alpine:v3.16
before 1.1.1-r0
1.1.1-r0
quagga
Alpine:v3.17
before 1.1.1-r0
1.1.1-r0
quagga
Alpine:v3.18
before 1.1.1-r0
1.1.1-r0
quagga
Alpine:v3.19
before 1.1.1-r0
1.1.1-r0
Show 41 moreShow less
Affected packages
PackageAffectedFixed
quagga
Alpine:v3.20
before 1.1.1-r0
1.1.1-r0
quagga
Alpine:v3.21
before 1.1.1-r0
1.1.1-r0
quagga
Alpine:v3.22
before 1.1.1-r0
1.1.1-r0
quagga
Alpine:v3.23
before 1.1.1-r0
1.1.1-r0
quagga
Alpine:v3.24
before 1.1.1-r0
1.1.1-r0
quagga
Alpine:v3.5
before 1.1.1-r0
1.1.1-r0
quagga
Alpine:v3.6
before 1.1.1-r0
1.1.1-r0
quagga
Alpine:v3.7
before 1.1.1-r0
1.1.1-r0
quagga
Alpine:v3.8
before 1.1.1-r0
1.1.1-r0
quagga
Alpine:v3.9
before 1.1.1-r0
1.1.1-r0
quagga
Mageia:5
before 0.99.22.4-4.4.mga5
0.99.22.4-4.4.mga5
quagga-contrib
Red Hat:enterprise_linux:6::server
From an advisory covering 5 CVEs
before 0:0.99.15-14.el6
0:0.99.15-14.el6
quagga-debuginfo
Red Hat:enterprise_linux:6::server
From an advisory covering 5 CVEs
before 0:0.99.15-14.el6
0:0.99.15-14.el6
quagga-devel
Red Hat:enterprise_linux:6::server
From an advisory covering 5 CVEs
before 0:0.99.15-14.el6
0:0.99.15-14.el6
quagga
Red Hat:enterprise_linux:6::server
From an advisory covering 5 CVEs
before 0:0.99.15-14.el6
0:0.99.15-14.el6
quagga-contrib
Red Hat:enterprise_linux:6::workstation
From an advisory covering 5 CVEs
before 0:0.99.15-14.el6
0:0.99.15-14.el6
quagga-debuginfo
Red Hat:enterprise_linux:6::workstation
From an advisory covering 5 CVEs
before 0:0.99.15-14.el6
0:0.99.15-14.el6
quagga-devel
Red Hat:enterprise_linux:6::workstation
From an advisory covering 5 CVEs
before 0:0.99.15-14.el6
0:0.99.15-14.el6
quagga
Red Hat:enterprise_linux:6::workstation
From an advisory covering 5 CVEs
before 0:0.99.15-14.el6
0:0.99.15-14.el6
quagga
SUSE:Linux Enterprise Server for Raspberry Pi 12 SP2
From an advisory covering 2 CVEs
before 1.1.1-17.3.3
1.1.1-17.3.3
quagga
SUSE:Linux Enterprise Software Development Kit 12 SP2
From an advisory covering 2 CVEs
before 1.1.1-17.3.3
1.1.1-17.3.3
quagga
SUSE:Linux Enterprise Software Development Kit 12 SP3
From an advisory covering 2 CVEs
before 1.1.1-17.3.3
1.1.1-17.3.3
quagga
SUSE:Linux Enterprise Server 12 SP2
From an advisory covering 2 CVEs
before 1.1.1-17.3.3
1.1.1-17.3.3
quagga
SUSE:Linux Enterprise Server for SAP Applications 12 SP2
From an advisory covering 2 CVEs
before 1.1.1-17.3.3
1.1.1-17.3.3
quagga
SUSE:Linux Enterprise Server 12 SP3
From an advisory covering 2 CVEs
before 1.1.1-17.3.3
1.1.1-17.3.3
quagga
SUSE:Linux Enterprise Server for SAP Applications 12 SP3
From an advisory covering 2 CVEs
before 1.1.1-17.3.3
1.1.1-17.3.3
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 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
Ubuntu:14.04:LTS
before 0.99.22.4-3ubuntu1.4, plus listed versions
0.99.22.1-20.99.22.4-10.99.22.4-20.99.22.4-30.99.22.4-3ubuntu10.99.22.4-3ubuntu1.10.99.22.4-3ubuntu1.20.99.22.4-3ubuntu1.3
0.99.22.4-3ubuntu1.4
quagga
Ubuntu:16.04:LTS
before 0.99.24.1-2ubuntu1.3, plus listed versions
0.99.24.1-20.99.24.1-2ubuntu10.99.24.1-2ubuntu1.10.99.24.1-2ubuntu1.2
0.99.24.1-2ubuntu1.3
quagga
Ubuntu:14.04:LTS
From an advisory covering 2 CVEs
before 0.99.22.4-3ubuntu1.4, plus listed versions
0.99.22.1-20.99.22.4-10.99.22.4-20.99.22.4-30.99.22.4-3ubuntu10.99.22.4-3ubuntu1.10.99.22.4-3ubuntu1.20.99.22.4-3ubuntu1.3
0.99.22.4-3ubuntu1.4
quagga
Ubuntu:16.04:LTS
From an advisory covering 2 CVEs
before 0.99.24.1-2ubuntu1.3, plus listed versions
0.99.24.1-20.99.24.1-2ubuntu10.99.24.1-2ubuntu1.10.99.24.1-2ubuntu1.2
0.99.24.1-2ubuntu1.3
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-2017-5495 is a high vulnerability (CVSS 7.5) in Quagga, published January 24, 2017. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 18.8%, the 97th percentile. Fixed in quagga 1.1.1-r0.

References

Show 63 moreShow less
MoveEnter Open