CVE-2020-1971: The X.509 GeneralName type is a generic type for representing different types of names.
Medium CVSS 5.9
- CVE id
- CVE-2020-1971
- Published
- Last modified
Affected packages
| Package | Affected versions | Fixed in |
|---|---|---|
| MySQL Runtimes and servers |
<= 8.0.22 <= 5.7.32 >= 8.0.15, <= 8.0.22 |
after 5.7.32, 8.0.22 |
| Node.js Runtimes and servers |
>= 10.0.0, <= 10.12.0 >= 10.13.0, < 10.23.1 >= 12.0.0, <= 12.12.0 >= 12.13.0, < 12.20.1 >= 14.0.0, <= 14.14.0 >= 14.15.0, < 14.15.4 >= 15.0.0, < 15.5.0 |
10.23.1, 12.20.1, 14.15.4, 15.5.0 |
How to fix it
MySQL (Runtimes and servers)
Upgrade MySQL to a release newer than the last affected update of the line you run (5.7.32, 8.0.22).
mysqld --version
- Install the patched MySQL release of your series (the mysql image tag or the MySQL packages) and restart the server.
Node.js (Runtimes and servers)
Upgrade Node.js to the fixed release of the line you run: 10.23.1, 12.20.1, 14.15.4, 15.5.0.
node --version
- Install the patched Node.js release of your major line (nvm install, or the node image tag) everywhere the app runs and builds.
A free AIssue account reads the runtime versions your repositories pin (version files, Dockerfiles, build files) and tells you when one is affected.
Details
The X.509 GeneralName type is a generic type for representing different types of names. One of those name types is known as EDIPartyName. OpenSSL provides a function GENERALNAMEcmp which compares different instances of a GENERALNAME to see if they are equal or not. This function behaves incorrectly when both GENERALNAMEs contain an EDIPARTYNAME. A NULL pointer dereference and a crash may occur leading to a possible denial of service attack. OpenSSL itself uses the GENERALNAMEcmp function for two purposes: 1) Comparing CRL distribution point names between an available CRL and a CRL distribution point embedded in an X509 certificate 2) When verifying that a timestamp response token signer matches the timestamp authority name (exposed via the API functions TSRESPverifyresponse and TSRESPverifytoken) If an attacker can control both items being compared then that attacker could trigger a crash. For example if the attacker can trick a client or server into checking a malicious certificate against a malicious CRL then this may occur. Note that some applications automatically download CRLs based on a URL embedded in a certificate. This checking happens prior to the signatures on the certificate and CRL being verified. OpenSSL's sserver, sclient and verify tools have support for the "-crl_download" option which implements automatic CRL downloading and this attack has been demonstrated to work against those tools. Note that an unrelated bug means that affected versions of OpenSSL cannot parse or construct correct encodings of EDIPARTYNAME. However it is possible to construct a malformed EDIPARTYNAME that OpenSSL's parser will accept and hence trigger this attack. All OpenSSL 1.1.1 and 1.0.2 versions are affected by this issue. Other OpenSSL releases are out of support and have not been checked. Fixed in OpenSSL 1.1.1i (Affected 1.1.1-1.1.1h). Fixed in OpenSSL 1.0.2x (Affected 1.0.2-1.0.2w).
References
- CVE-2020-1971 on the NVD
- Advisory: https://nvd.nist.gov/vuln/detail/CVE-2020-1971
- Web: https://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdf
- Web: https://git.openssl.org/gitweb/?p=openssl.git%3Ba=commitdiff%3Bh=2154ab83e14ede338d2ede9bbe5cdfce5d5a6c9e
- Web: https://git.openssl.org/gitweb/?p=openssl.git%3Ba=commitdiff%3Bh=f960d81215ebf3f65e03d4d5d857fb9b666d6920
- Web: https://kb.pulsesecure.net/articles/Pulse_Security_Advisories/SA44676
- Web: https://lists.apache.org/thread.html/r63c6f2dd363d9b514d0a4bcf624580616a679898cc14c109a49b750c%40%3Cdev.tomcat.apache.org%3E
- Web: https://lists.apache.org/thread.html/rbb769f771711fb274e0a4acb1b5911c8aab544a6ac5e8c12d40c5143%40%3Ccommits.pulsar.apache.org%3E
- Web: https://lists.debian.org/debian-lts-announce/2020/12/msg00020.html
- Web: https://lists.debian.org/debian-lts-announce/2020/12/msg00021.html
- Web: https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DGSI34Y5LQ5RYXN4M2I5ZQT65LFVDOUU/
- Web: https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PWPSSZNZOBJU2YR6Z4TGHXKYW3YP5QG7/
- Web: https://security.FreeBSD.org/advisories/FreeBSD-SA-20:33.openssl.asc
- Web: https://security.gentoo.org/glsa/202012-13
- Web: https://security.netapp.com/advisory/ntap-20201218-0005/
- Web: https://security.netapp.com/advisory/ntap-20210513-0002/
- Web: https://security.netapp.com/advisory/ntap-20240621-0006/
- Web: https://www.debian.org/security/2020/dsa-4807
- Web: https://www.openssl.org/news/secadv/20201208.txt
- Web: https://www.oracle.com//security-alerts/cpujul2021.html
- Web: https://www.oracle.com/security-alerts/cpuApr2021.html
Am I affected?
Upload or paste your lockfile. We check every package version in it against OSV.dev, this advisory included, and email you the vulnerable ones with the version that fixes them. Free, and no account needed.
About this data
Source: National Vulnerability Database (NVD) (public domain). Severity comes from the advisory's own rating when it has one, else from its CVSS score.