Every CVE Search/ Get API key

CVE-2016-2342

The bgp_nlri_parse_vpnv4 function in bgp_mplsvpn.c in the VPNv4 NLRI parser in bgpd in Quagga...

8.1 HighFix available

The bgp_nlri_parse_vpnv4 function in bgp_mplsvpn.c in the VPNv4 NLRI parser in bgpd in Quagga before 1.0.20160309, when a certain VPNv4 configuration is used, relies on a Labeled-VPN SAFI routes-data length field during a data copy, which allows remote attackers to execute arbitrary code or cause a denial of service (stack-based buffer overflow) via a crafted packet.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
High
Privileges needed
None
User interaction
None

What an attacker can affect

Confidentiality
High
Integrity
High
Availability
High

Exploit likelihood

13.3%Up 6.6 points since Feb 4, 2022
90%50%10%1%

What each source reports

NVD Score used 8.1

The bgp_nlri_parse_vpnv4 function in bgp_mplsvpn.c in the VPNv4 NLRI parser in bgpd in Quagga before 1.0.20160309, when a certain VPNv4 configuration is used, relies on a Labeled-VPN SAFI routes-data length field during a data copy, which allows remote attackers to execute arbitrary code or cause a denial of service (stack-based buffer overflow) via a crafted packet.

Record
CVE-2016-2342
CVSS 3.0
8.1 HighCVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS 2.0
7.6 HighAV:N/AC:H/Au:N/C:C/I:C/A:C
Weakness
CWE-119
Updated
2026-11-02
CVE List No score

The bgp_nlri_parse_vpnv4 function in bgp_mplsvpn.c in the VPNv4 NLRI parser in bgpd in Quagga before 1.0.20160309, when a certain VPNv4 configuration is used, relies on a Labeled-VPN SAFI routes-data length field during a data copy, which allows remote attackers to execute arbitrary code or cause a denial of service (stack-based buffer overflow) via a crafted packet.

Record
CVE-2016-2342
Updated
2026-11-02
EUVDEUVD-2016-3426 No score

The bgp_nlri_parse_vpnv4 function in bgp_mplsvpn.c in the VPNv4 NLRI parser in bgpd in Quagga before 1.0.20160309, when a certain VPNv4 configuration is used, relies on a Labeled-VPN SAFI routes-data length field during a data copy, which allows remote attackers to execute arbitrary code or cause a denial of service (stack-based buffer overflow) via a crafted packet.

Record
EUVD-2016-3426
Updated
2026-11-03
GitHub AdvisoriesGHSA-jm86-8c92-649g 8.1

The bgp_nlri_parse_vpnv4 function in bgp_mplsvpn.c in the VPNv4 NLRI parser in bgpd in Quagga...

The bgp_nlri_parse_vpnv4 function in bgp_mplsvpn.c in the VPNv4 NLRI parser in bgpd in Quagga before 1.0.20160309, when a certain VPNv4 configuration is used, relies on a Labeled-VPN SAFI routes-data length field during a data copy, which allows remote attackers to execute arbitrary code or cause a denial of service (stack-based buffer overflow) via a crafted packet.

Record
GHSA-jm86-8c92-649g
CVSS 3.0
8.1 HighCVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness
CWE-119
Updated
2026-11-02
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-2016-2342 8.1

The bgp_nlri_parse_vpnv4 function in bgp_mplsvpn.c in the VPNv4 NLRI parser in bgpd in Quagga before 1.0.20160309, when a certain VPNv4 configuration is used, relies on a Labeled-VPN SAFI routes-data length field during a data copy, which allows remote attackers to execute arbitrary code or cause a denial of service (stack-based buffer overflow) via a crafted packet.

Record
UBUNTU-CVE-2016-2342
CVSS 3.0
8.1 HighCVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
Show 5 moreShow less
OSVMGASA-2016-0126 No score

Updated quagga packages fix security vulnerability

A vulnerability was found in a way VPNv4 NLRI parser copied packet data to the stack. Memcpy to stack data structure based on length field from packet data whose length field upper-bound was not properly checked (CVE-2016-2342).

Record
MGASA-2016-0126
Updated
2026-11-02
OSVopenSUSE-SU-2024:10362-1 No score

libospf0-1.0.20160315-5.1 on GA media

These are all security issues fixed in the libospf0-1.0.20160315-5.1 package on the GA media of openSUSE Tumbleweed.

Record
openSUSE-SU-2024:10362-1
Updated
2026-11-02
OSVSUSE-SU-2016:0936-1 No score

Security update for quagga

This update for quagga fixes the following security issue:

  • CVE-2016-2342: Quagga was extended the prefixlen check to ensure it is within the bound of the NLRI packet data and the on-stack prefix structure and the maximum size for the address family (bsc#970952).
Record
SUSE-SU-2016:0936-1
Updated
2026-11-02
OSVSUSE-SU-2016:0946-1 No score

Security update for quagga

This update for quagga fixes the following security issue:

  • CVE-2016-2342: Quagga was extended the prefixlen check to ensure it is within the bound of the NLRI packet data and the on-stack prefix structure and the maximum size for the address family (bsc#970952).
Record
SUSE-SU-2016:0946-1
Updated
2026-11-02
OSVUSN-2941-1 No score

quagga vulnerabilities

Kostya Kortchinsky discovered that Quagga incorrectly handled certain route data when configured with BGP peers enabled for VPNv4. A remote attacker could use this issue to cause Quagga to crash, resulting in a denial of service, or possibly execute arbitrary code. (CVE-2016-2342)

It was discovered that Quagga incorrectly handled messages with a large LSA when used in certain configurations. A remote attacker could use this issue to cause Quagga to crash, resulting in a denial of service. This issue only affected Ubuntu 12.04 LTS. (CVE-2013-2236)

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

Affected products

Affected packages

Affected packages
PackageAffectedFixed
quagga
Debian:7
before 0.99.22.4-1+wheezy2, plus listed versions
0.99.21-4+wheezy10.99.21-4+wheezy20.99.22-10.99.22.1-10.99.22.1-20.99.22.4-10.99.22.4-1+wheezy1
0.99.22.4-1+wheezy2
quagga
Debian:8
before 0.99.23.1-1+deb8u1, plus listed versions
0.99.23.1-1
0.99.23.1-1+deb8u1
quagga
Mageia:5
before 0.99.22.4-4.1.mga5
0.99.22.4-4.1.mga5
quagga-contrib
Red Hat:enterprise_linux:6::server
before 0:0.99.15-14.el6
0:0.99.15-14.el6
quagga-debuginfo
Red Hat:enterprise_linux:6::server
before 0:0.99.15-14.el6
0:0.99.15-14.el6
quagga-devel
Red Hat:enterprise_linux:6::server
before 0:0.99.15-14.el6
0:0.99.15-14.el6
quagga
Red Hat:enterprise_linux:6::server
before 0:0.99.15-14.el6
0:0.99.15-14.el6
quagga-contrib
Red Hat:enterprise_linux:6::workstation
before 0:0.99.15-14.el6
0:0.99.15-14.el6
quagga-debuginfo
Red Hat:enterprise_linux:6::workstation
before 0:0.99.15-14.el6
0:0.99.15-14.el6
quagga-devel
Red Hat:enterprise_linux:6::workstation
before 0:0.99.15-14.el6
0:0.99.15-14.el6
Show 12 moreShow less
Affected packages
PackageAffectedFixed
quagga
Red Hat:enterprise_linux:6::workstation
before 0:0.99.15-14.el6
0:0.99.15-14.el6
quagga
SUSE:Linux Enterprise Software Development Kit 12
before 0.99.22.1-5.1
0.99.22.1-5.1
quagga
SUSE:Linux Enterprise Software Development Kit 12 SP1
before 0.99.22.1-5.1
0.99.22.1-5.1
quagga
SUSE:Linux Enterprise Server 12
before 0.99.22.1-5.1
0.99.22.1-5.1
quagga
SUSE:Linux Enterprise Server for SAP Applications 12
before 0.99.22.1-5.1
0.99.22.1-5.1
quagga
SUSE:Linux Enterprise Server 12 SP1
before 0.99.22.1-5.1
0.99.22.1-5.1
quagga
SUSE:Linux Enterprise Server for SAP Applications 12 SP1
before 0.99.22.1-5.1
0.99.22.1-5.1
quagga
SUSE:Linux Enterprise Software Development Kit 11 SP4
before 0.99.15-0.16.1
0.99.15-0.16.1
quagga
SUSE:Linux Enterprise Server 11 SP4
before 0.99.15-0.16.1
0.99.15-0.16.1
quagga
SUSE:Linux Enterprise Server for SAP Applications 11 SP4
before 0.99.15-0.16.1
0.99.15-0.16.1
quagga
Ubuntu:14.04:LTS
before 0.99.22.4-3ubuntu1.1, plus listed versions
0.99.22.1-20.99.22.4-10.99.22.4-20.99.22.4-30.99.22.4-3ubuntu1
0.99.22.4-3ubuntu1.1
quagga
openSUSE:Tumbleweed
before 1.0.20160315-5.1
1.0.20160315-5.1

History

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

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

In short

CVE-2016-2342 is a high vulnerability (CVSS 8.1) in Quagga, published March 17, 2016. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 13.3%, the 96th percentile. Fixed in quagga 0.99.22.4-1+wheezy2.

References

Show 51 moreShow less
MoveEnter Open