CVEfocus › CVE database › CVE-2019-18840

CVE-2019-18840

CVSS 7.5 HighEPSS 2.0% (higher than 81% of CVEs)Published 2019-11-09Updated 2024-08-05Assigner: mitre

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.

What to do

Fixed builds are available from Debian, Ubuntu: see the table below for the fixed version per release.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

3Fixed
2Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 20.04wolfsslFixed4.2.0+dfsg-3UBUNTU-CVE-2019-18840
Ubuntu 18.04wolfsslNot affected
vulnerable_code_not_present
Ubuntu 16.04wolfsslNot affected
vulnerable_code_not_present
Debian 13wolfsslFixed4.2.0+dfsg-3DEBIAN-CVE-2019-18840
Debian 12wolfsslFixed4.2.0+dfsg-3DEBIAN-CVE-2019-18840

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.