Heap-based buffer overflow in MatrixSSL - CVE-2017-2781

 

Heap-based buffer overflow in MatrixSSL - CVE-2017-2781

Published: June 26, 2017


Vulnerability identifier: #VU7197
CSH Severity: High
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Amber
CVE-ID: CVE-2017-2781
CWE-ID: CWE-122
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: InsideSecure
Affected software:
MatrixSSL

Detailed vulnerability description

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists in the 'parsePolicyMappings' function in MatrixSSL due to heap-based buffer overflow when parsing the IssuerPolicy PolicyMappings extension. A remote attacker can supply a specially crafted x509 certificates in DER format containing OID value, trigger memory corruption and execute arbitrary code on the target system.

Successful exploitation of the vulnerability may allow an attacker to compromise vulnerable system.


How to mitigate CVE-2017-2781

Update to version 3.9.3.

Sources