Vulnerabilities > CVE-2019-18840 - Out-of-bounds Write vulnerability in Wolfssl 4.1.0/4.2.0/4.2.0C

047910
CVSS 5.0 - MEDIUM
Attack vector
NETWORK
Attack complexity
LOW
Privileges required
NONE
Confidentiality impact
NONE
Integrity impact
NONE
Availability impact
PARTIAL
network
low complexity
wolfssl
CWE-787

Summary

In wolfSSL 4.1.0 through 4.2.0c, there are missing sanity checks of memory accesses in parsing ASN.1 certificate data while handshaking. Specifically, there is a one-byte heap-based buffer overflow inside the DecodedCert structure in GetName in wolfcrypt/src/asn.c because the domain name location index is mishandled. Because a pointer is overwritten, there is an invalid free.

Vulnerable Configurations

Part Description Count
Application
Wolfssl
3

Common Weakness Enumeration (CWE)