Input validation error in libtASN1 - CVE-2016-4008

 

Input validation error in libtASN1 - CVE-2016-4008

Published: April 17, 2019


Vulnerability identifier: #VU18291
CSH Severity: Medium
CVSS v4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2016-4008
CWE-ID: CWE-20
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to perform a denial of service (DoS) attack.

The vulnerability exists due to insufficient validation of user-supplied input within the _asn1_extract_der_octet() function in lib/decoding.c when parsing certificates. A remote attacker can supply a specially crafted certificate file and crash the affected application.

Successful exploitation of the vulnerability requires that ASN1_DECODE_FLAG_STRICT_DER flag is not used.


Affected software

libtASN1
Gentoo Linux
Fedora
libtasn1 (Alpine package)
libtasn1-6 (Debian package)
libtasn1
mingw-libtasn1
IBM Tivoli Storage Manager

How to mitigate CVE-2016-4008

Install updates from vendor's website.

libtASN1 - update to 4.8
libtasn1 (Alpine package) - update to 3.6-r3
libtasn1-6 (Debian package) - update to 4.2-3+deb8u2
libtasn1 - addressed in versions 4.8-1.fc22, 4.8-1.fc23, 4.8-1.fc24
mingw-libtasn1 - update to 4.12-1.el7
IBM Tivoli Storage Manager - update to 7.1.1.300

External References

Related Security Bulletins