CVE-2022-1343OCSP_basic_verify may incorrectly verify the response signing certificate
The function `OCSP_basic_verify` verifies the signer certificate on an OCSP response. In the case where the (non-default) flag OCSP_NOCHECKS is used then the response will be positive (meaning a successful verification) even in the case where the response signing certificate fails to verify. It is anticipated that most users of `OCSP_basic_verify` will not use the OCSP_NOCHECKS flag. In this case the `OCSP_basic_verify` function will return a negative value (indicating a fatal error) in the case of a certificate verification failure. The normal expected return value in this case would be 0. This issue also impacts the command line OpenSSL "ocsp" application. When verifying an ocsp response with the "-no_cert_checks" option the command line application will report that the verification is successful even though it has in fact failed. In this case the incorrect successful response will also be accompanied by error messages showing the failure and contradicting the apparently successful result. Fixed in OpenSSL 3.0.3 (Affected 3.0.0,3.0.1,3.0.2).
What to do
Fixed builds are available from AlmaLinux, Alpine, Red Hat, Ubuntu, 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 24.04 | edk2 | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | nodejs | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | edk2 | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | openssl | Fixed | 3.0.2-0ubuntu1.1 | UBUNTU-CVE-2022-1343 |
| Ubuntu 16.04 | edk2 | Fix pending | ||
| Ubuntu 16.04 | nodejs | Not affected vulnerable_code_not_present | ||
| Ubuntu 14.04 | edk2 | Fix pending | ||
| Red Hat Enterprise Linux 9 | compat-openssl11 | Not affected | ||
| Red Hat Enterprise Linux 9 | edk2 | Not affected | ||
| Red Hat Enterprise Linux 9 | edk2-aarch64 | Not affected | ||
| Red Hat Enterprise Linux 9 | edk2-ovmf | Not affected | ||
| Red Hat Enterprise Linux 9 | edk2-tools | Not affected | ||
| Red Hat Enterprise Linux 9 | edk2-tools-doc | Not affected | ||
| Red Hat Enterprise Linux 9 | openssl | Fixed | 1:3.0.1-41.el9_0 | RHSA-2022:6224 |
| Red Hat Enterprise Linux 9 | openssl-devel | Fixed | 1:3.0.1-41.el9_0 | RHSA-2022:6224 |
| Red Hat Enterprise Linux 9 | openssl-libs | Fixed | 1:3.0.1-41.el9_0 | RHSA-2022:6224 |
| Red Hat Enterprise Linux 9 | openssl-perl | Fixed | 1:3.0.1-41.el9_0 | RHSA-2022:6224 |
| Red Hat Enterprise Linux 9 | shim | Not affected | ||
| Red Hat Enterprise Linux 9 | shim-aa64 | Not affected | ||
| Red Hat Enterprise Linux 9 | shim-x64 | Not affected | ||
| Red Hat Enterprise Linux 8 | compat-openssl10 | Not affected | ||
| Red Hat Enterprise Linux 8 | edk2 | Not affected | ||
| Red Hat Enterprise Linux 8 | edk2-aarch64 | Not affected | ||
| Red Hat Enterprise Linux 8 | edk2-ovmf | Not affected | ||
| Red Hat Enterprise Linux 8 | openssl | Not affected | ||
| Red Hat Enterprise Linux 8 | openssl-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | openssl-libs | Not affected | ||
| Red Hat Enterprise Linux 8 | openssl-perl | Not affected | ||
| Red Hat Enterprise Linux 8 | openssl-static | Not affected | ||
| Red Hat Enterprise Linux 8 | shim | Not affected | ||
| Red Hat Enterprise Linux 8 | shim-aa64 | Not affected | ||
| Red Hat Enterprise Linux 8 | shim-ia32 | Not affected | ||
| Red Hat Enterprise Linux 8 | shim-x64 | Not affected | ||
| Red Hat Enterprise Linux 7 | AAVMF | Not affected | ||
| Red Hat Enterprise Linux 7 | OVMF | Not affected | ||
| 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 | ovmf | 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 | ||
| AlmaLinux 9 | openssl | Fixed | 1:3.0.1-41.el9_0 | ALSA-2022:6224 |
| AlmaLinux 9 | openssl-devel | Fixed | 1:3.0.1-41.el9_0 | ALSA-2022:6224 |
| AlmaLinux 9 | openssl-libs | Fixed | 1:3.0.1-41.el9_0 | ALSA-2022:6224 |
| AlmaLinux 9 | openssl-perl | Fixed | 1:3.0.1-41.el9_0 | ALSA-2022:6224 |
| Alpine Linux 3.24 | openssl | Fixed | 3.0.3-r0 | ALPINE-CVE-2022-1343 |
| Alpine Linux 3.23 | openssl | Fixed | 3.0.3-r0 | ALPINE-CVE-2022-1343 |
| Alpine Linux 3.22 | openssl | Fixed | 3.0.3-r0 | ALPINE-CVE-2022-1343 |
| Alpine Linux 3.21 | openssl | Fixed | 3.0.3-r0 | ALPINE-CVE-2022-1343 |
| Alpine Linux 3.20 | openssl | Fixed | 3.0.3-r0 | ALPINE-CVE-2022-1343 |
| Alpine Linux 3.19 | openssl | Fixed | 3.0.3-r0 | ALPINE-CVE-2022-1343 |
| Alpine Linux 3.18 | openssl | Fixed | 3.0.3-r0 | ALPINE-CVE-2022-1343 |
| Alpine Linux 3.17 | openssl | Fixed | 3.0.3-r0 | ALPINE-CVE-2022-1343 |
| Alpine Linux 3.16 | openssl3 | Fixed | 3.0.3-r0 | ALPINE-CVE-2022-1343 |
| Alpine Linux 3.15 | openssl3 | Fixed | 3.0.3-r0 | ALPINE-CVE-2022-1343 |
| crates.io library | openssl-src | Fixed | 300.0.6 | RUSTSEC-2022-0027 |
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 3.0.3 (Affected 3.0.0,3.0.1,3.0.2)
References
- https://www.openssl.org/news/secadv/20220503.txt
- https://git.openssl.org/gitweb/?p=openssl.git%3Ba=commitdiff%3Bh=2eda98790c5c2741d76d23cc1e74b0dc4f4b391a
- https://security.netapp.com/advisory/ntap-20220602-0009/
- https://cert-portal.siemens.com/productcert/pdf/ssa-953464.pdf
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.