copyright | disclaimer | privacy | contact  
Australia's Leading Computer Emergency Response Team
Search this site

On this site

 > About AusCERT
 > Membership
 > Contact Us
 > PKI Services
 > Publications
 > Sec. Bulletins
 > Conferences
 > News & Media
 > Services
 > Web Log
 > Site Map
 > Site Help
 > Member login


ESB-2016.0669 - [UNIX/Linux] quagga: Execute arbitrary code/commands - Remote/unauthenticated

Date: 11 March 2016
References: ESB-2016.0795  

Click here for printable version
Click here for PGP verifiable version
Hash: SHA1

             AUSCERT External Security Bulletin Redistribution

          Quagga bgpd with BGP peers enabled for VPNv4 contains a
                       buffer overflow vulnerability
                               11 March 2016


        AusCERT Security Bulletin Summary

Product:           quagga
Publisher:         CERT/CC
Operating System:  UNIX variants (UNIX, Linux, OSX)
Impact/Access:     Execute Arbitrary Code/Commands -- Remote/Unauthenticated
Resolution:        Patch/Upgrade
CVE Names:         CVE-2016-2342  

Original Bulletin:

- --------------------------BEGIN INCLUDED TEXT--------------------

Vulnerability Note VU#270232

Quagga bgpd with BGP peers enabled for VPNv4 contains a buffer overflow 

Original Release date: 10 Mar 2016 | Last revised: 10 Mar 2016


Quagga, version and earlier, contains a buffer overflow 
vulnerability in bgpd with BGP peers enabled for VPNv4 that may leveraged to 
gain code execution.


CWE-121: Stack-based Buffer Overflow - CVE-2016-2342

Quagga is a software routing suite that implements numerous routing protocols
for Unix-based platforms. A memcpy function in the VPNv4 NLRI parser of 
bgp_mplsvpn.c does not properly check the upper-bound length of received 
Labeled-VPN SAFI routes data, which may allow for arbitrary code execution on
the stack. Note that hosts are only vulnerable if bgpd is running with BGP 
peers enabled for VPNv4, which is not a default configuration. For more 
details, refer to the Quagga changelog and commit notes.


A malicious BGP peer may execute arbitrary code in particularly configured 
remote bgpd hosts.


Apply an update

Quagga has released version 1.0.20160309 which addresses this issue.

Vendor Information (Learn More)

Vendor 		Status 		Date Notified 		Date Updated

Quagga 		Affected 	24 Nov 2015 		10 Mar 2016

If you are a vendor and your product is affected, let us know.

CVSS Metrics (Learn More)

Group 		Score 		Vector

Base 		7.6 		AV:N/AC:H/Au:N/C:C/I:C/A:C

Temporal	6.0 		E:POC/RL:OF/RC:C

Environmental 	1.5 		CDP:ND/TD:L/CR:ND/IR:ND/AR:ND



Thanks to Kostya Kortchinsky for reporting this vulnerability.

This document was written by Joel Land.

Other Information

CVE IDs: CVE-2016-2342

Date Public: 10 Mar 2016

Date First Published: 10 Mar 2016

Date Last Updated: 10 Mar 2016

Document Revision: 12


If you have feedback, comments, or additional information about this 
vulnerability, please send us email.

- --------------------------END INCLUDED TEXT--------------------

You have received this e-mail bulletin as a result of your organisation's
registration with AusCERT. The mailing list you are subscribed to is
maintained within your organisation, so if you do not wish to continue
receiving these bulletins you should contact your local IT manager. If
you do not know who that is, please send an email to
and we will forward your request to the appropriate person.

NOTE: Third Party Rights
This security bulletin is provided as a service to AusCERT's members.  As
AusCERT did not write the document quoted above, AusCERT has had no control
over its content. The decision to follow or act on information or advice
contained in this security bulletin is the responsibility of each user or
organisation, and should be considered in accordance with your organisation's
site policies and procedures. AusCERT takes no responsibility for consequences
which may arise from following or acting on information or advice contained in
this security bulletin.

NOTE: This is only the original release of the security bulletin.  It may
not be updated when updates to the original are made.  If downloading at
a later date, it is recommended that the bulletin is retrieved directly
from the author's website to ensure that the information is still current.

Contact information for the authors of the original document is included
in the Security Bulletin above.  If you have any questions or need further
information, please contact them directly.

Previous advisories and external security bulletins can be retrieved from:

Australian Computer Emergency Response Team
The University of Queensland
Qld 4072

Internet Email:
Facsimile:      (07) 3365 7031
Telephone:      (07) 3365 4417 (International: +61 7 3365 4417)
                AusCERT personnel answer during Queensland business hours
                which are GMT+10:00 (AEST).
                On call after hours for member emergencies only.