CVE-2019-18840: Buffer Overflow

Published Nov 9, 2019
·
Updated

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.

Affected Software

1 affected component
wolfSSL wolfssl>=4.1.0<=4.2.0c

Event History

Nov 9, 2019
CVE Published
via MITRE·12:58 PM
Data Sourced
via MITRE·12:58 PM
DescriptionSeverity

Frequently Asked Questions

1

What is CVE-2019-18840?

CVE-2019-18840 is a vulnerability in wolfSSL versions 4.1.0 through 4.2.0c that allows for a one-byte heap-based buffer overflow during ASN.1 certificate data parsing.

2

How severe is CVE-2019-18840?

CVE-2019-18840 has a severity rating of 7.5, indicating a high severity.

3

Which software versions are affected by CVE-2019-18840?

wolfSSL versions 4.1.0 through 4.2.0c are affected by CVE-2019-18840.

4

How can I fix CVE-2019-18840?

To fix CVE-2019-18840, users are advised to update to a version of wolfSSL that is higher than 4.2.0c.

5

Where can I find more information about CVE-2019-18840?

More information about CVE-2019-18840 can be found at the following reference link: [https://github.com/wolfSSL/wolfssl/issues/2555](https://github.com/wolfSSL/wolfssl/issues/2555)

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203