CVE-2019-18840 Memory corruption in n/a
A heap-based buffer overflow in wolfSSL's ASN.1 parser allows attackers to cause invalid frees and potentially execute code during TLS handshakes.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2019-18840?
CVE-2019-18840 is a high-severity memory corruption vulnerability in Wolfssl Wolfssl, published on 9 Nov 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
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.
Weakness: CWE-787
Which versions are affected by CVE-2019-18840?
It affects 1 product.
Products include Wolfssl Wolfssl.
How do I fix CVE-2019-18840?
Upgrade to a fixed version.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2019-18840 being exploited?
There is no known exploitation of CVE-2019-18840 in the wild and no public exploit code.
Other vulnerabilities in Wolfssl Wolfssl
Sources
Also known as DEBIAN-CVE-2019-18840, GHSA-42mp-7xj4-8whx, UBUNTU-CVE-2019-18840.