CVE-2021-3450CA certificate check bypass with X509_V_FLAG_X509_STRICT
The X509_V_FLAG_X509_STRICT flag enables additional security checks of the certificates present in a certificate chain. It is not set by default. Starting from OpenSSL version 1.1.1h a check to disallow certificates in the chain that have explicitly encoded elliptic curve parameters was added as an additional strict check. An error in the implementation of this check meant that the result of a previous check to confirm that certificates in the chain are valid CA certificates was overwritten. This effectively bypasses the check that non-CA certificates must not be able to issue other certificates. If a "purpose" has been configured then there is a subsequent opportunity for checks that the certificate is a valid CA. All of the named "purpose" values implemented in libcrypto perform this check. Therefore, where a purpose is set the certificate chain will still be rejected even when the strict flag has been used. A purpose is set by default in libssl client and server certificate verification routines, but it can be overridden or removed by an application. In order to be affected, an application must explicitly set the X509_V_FLAG_X509_STRICT verification flag and either not set a purpose for the certificate verification or, in the case of TLS client or server applications, override the default purpose. OpenSSL versions 1.1.1h and newer are affected by this issue. Users of these versions should upgrade to OpenSSL 1.1.1k. OpenSSL 1.0.2 is not impacted by this issue. Fixed in OpenSSL 1.1.1k (Affected 1.1.1h-1.1.1j).
What to do
Likely to be exploited: EPSS gives a 21% chance of exploitation in the next 30 days. Treat it as urgent if you run an affected version.
Fixed builds are available from Alpine, Debian, Red Hat, Rocky Linux, crates.io: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 16.04 | edk2 | Not affected vulnerable_code_not_present | ||
| Ubuntu 16.04 | nodejs | Not affected vulnerable_code_not_present | ||
| Ubuntu 16.04 | openssl | Not affected vulnerable_code_not_present | ||
| Ubuntu 14.04 | edk2 | Fix pending | ||
| Debian 14 | openssl | Fixed | 1.1.1k-1 | DEBIAN-CVE-2021-3450 |
| Debian 13 | openssl | Fixed | 1.1.1k-1 | DEBIAN-CVE-2021-3450 |
| Debian 12 | openssl | Fixed | 1.1.1k-1 | DEBIAN-CVE-2021-3450 |
| Red Hat Enterprise Linux 9 | openssl | Not affected | ||
| Red Hat Enterprise Linux 9 | openssl-devel | Not affected | ||
| Red Hat Enterprise Linux 9 | openssl-libs | Not affected | ||
| Red Hat Enterprise Linux 9 | openssl-perl | Not affected | ||
| Red Hat Enterprise Linux 8 | compat-openssl10 | Not affected | ||
| Red Hat Enterprise Linux 8 | openssl | Fixed | 1:1.1.1g-15.el8_3 | RHSA-2021:1024 |
| Red Hat Enterprise Linux 8 | openssl-devel | Fixed | 1:1.1.1g-15.el8_3 | RHSA-2021:1024 |
| Red Hat Enterprise Linux 8 | openssl-libs | Fixed | 1:1.1.1g-15.el8_3 | RHSA-2021:1024 |
| Red Hat Enterprise Linux 8 | openssl-perl | Fixed | 1:1.1.1g-15.el8_3 | RHSA-2021:1024 |
| Red Hat Enterprise Linux 7 | openssl | Not affected | ||
| Red Hat Enterprise Linux 7 | openssl-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | openssl-libs | Not affected | ||
| Red Hat Enterprise Linux 7 | openssl-perl | Not affected | ||
| Red Hat Enterprise Linux 7 | openssl-static | Not affected | ||
| Red Hat Enterprise Linux 7 | openssl098e | Not affected | ||
| Red Hat Enterprise Linux 6 | openssl | Not affected | ||
| Red Hat Enterprise Linux 6 | openssl-devel | Not affected | ||
| Red Hat Enterprise Linux 6 | openssl-perl | Not affected | ||
| Red Hat Enterprise Linux 6 | openssl-static | Not affected | ||
| Red Hat Enterprise Linux 6 | openssl098e | Not affected | ||
| Rocky Linux 8 | openssl | Fixed | 1:1.1.1g-15.el8_3 | RLSA-2021:1024 |
| Alpine Linux 3.24 | openssl | Fixed | 1.1.1k-r0 | ALPINE-CVE-2021-3450 |
| Alpine Linux 3.23 | openssl | Fixed | 1.1.1k-r0 | ALPINE-CVE-2021-3450 |
| Alpine Linux 3.22 | openssl | Fixed | 1.1.1k-r0 | ALPINE-CVE-2021-3450 |
| Alpine Linux 3.21 | openssl | Fixed | 1.1.1k-r0 | ALPINE-CVE-2021-3450 |
| Alpine Linux 3.20 | openssl | Fixed | 1.1.1k-r0 | ALPINE-CVE-2021-3450 |
| Alpine Linux 3.19 | openssl | Fixed | 1.1.1k-r0 | ALPINE-CVE-2021-3450 |
| Alpine Linux 3.18 | openssl | Fixed | 1.1.1k-r0 | ALPINE-CVE-2021-3450 |
| Alpine Linux 3.18 | openssl1.1-compat | Fixed | 1.1.1k-r0 | ALPINE-CVE-2021-3450 |
| Alpine Linux 3.17 | openssl | Fixed | 1.1.1k-r0 | ALPINE-CVE-2021-3450 |
| Alpine Linux 3.17 | openssl1.1-compat | Fixed | 1.1.1k-r0 | ALPINE-CVE-2021-3450 |
| Alpine Linux 3.16 | openssl | Fixed | 1.1.1k-r0 | ALPINE-CVE-2021-3450 |
| Alpine Linux 3.16 | openssl3 | Fixed | 1.1.1k-r0 | ALPINE-CVE-2021-3450 |
| Alpine Linux 3.15 | openssl | Fixed | 1.1.1k-r0 | ALPINE-CVE-2021-3450 |
| Alpine Linux 3.15 | openssl3 | Fixed | 1.1.1k-r0 | ALPINE-CVE-2021-3450 |
| Alpine Linux 3.14 | openssl | Fixed | 1.1.1k-r0 | ALPINE-CVE-2021-3450 |
| Alpine Linux 3.13 | openssl | Fixed | 1.1.1k-r0 | ALPINE-CVE-2021-3450 |
| Alpine Linux 3.12 | openssl | Fixed | 1.1.1k-r0 | ALPINE-CVE-2021-3450 |
| Alpine Linux 3.11 | openssl | Fixed | 1.1.1k-r0 | ALPINE-CVE-2021-3450 |
| Alpine Linux 3.10 | openssl | Fixed | 1.1.1k-r0 | ALPINE-CVE-2021-3450 |
| Alpine Linux 3.9 | openssl | Fixed | 1.1.1k-r0 | ALPINE-CVE-2021-3450 |
| crates.io library | openssl-src | Fixed | 111.15.0 | RUSTSEC-2021-0056 |
What the vendor says
As published in the CVE record by openssl, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- OpenSSL: affected: Fixed in OpenSSL 1.1.1k (Affected 1.1.1h-1.1.1j)
Vendor advisories:
- https://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-openssl-20… (vendor-advisory)
- https://security.gentoo.org/glsa/202103-03 (vendor-advisory)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
References
- https://www.openssl.org/news/secadv/20210325.txt
- https://git.openssl.org/gitweb/?p=openssl.git%3Ba=commitdiff%3Bh=2a40b7bc7b94dd7de897a74571e7024f0cf0d63b
- https://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-openssl-2021-GHY28dJd
- http://www.openwall.com/lists/oss-security/2021/03/27/1
- http://www.openwall.com/lists/oss-security/2021/03/27/2
- http://www.openwall.com/lists/oss-security/2021/03/28/3
- http://www.openwall.com/lists/oss-security/2021/03/28/4
- https://security.gentoo.org/glsa/202103-03
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/CCBFLLVQVILIVGZMBJL3IXZGKWQISYNP/
- https://www.oracle.com/security-alerts/cpuApr2021.html
- https://www.tenable.com/security/tns-2021-09
- https://security.netapp.com/advisory/ntap-20210326-0006/
- https://security.FreeBSD.org/advisories/FreeBSD-SA-21:07.openssl.asc
- https://www.tenable.com/security/tns-2021-05
- https://kc.mcafee.com/corporate/index?page=content&id=SB10356
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.