CVEfocus › CVE database › CVE-2022-1343

CVE-2022-1343OCSP_basic_verify may incorrectly verify the response signing certificate

CVSS 5.3 MediumEPSS 1.6% (higher than 76% of CVEs)Published 2022-05-03Updated 2026-10-14Assigner: openssl

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).

CWE-295

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

20Fixed
2Fix pending
38Not 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 24.04edk2Not affected
vulnerable_code_not_present
Ubuntu 24.04nodejsNot affected
vulnerable_code_not_present
Ubuntu 22.04edk2Not affected
vulnerable_code_not_present
Ubuntu 22.04opensslFixed3.0.2-0ubuntu1.1UBUNTU-CVE-2022-1343
Ubuntu 16.04edk2Fix pending
Ubuntu 16.04nodejsNot affected
vulnerable_code_not_present
Ubuntu 14.04edk2Fix pending
Red Hat Enterprise Linux 9compat-openssl11Not affected
Red Hat Enterprise Linux 9edk2Not affected
Red Hat Enterprise Linux 9edk2-aarch64Not affected
Red Hat Enterprise Linux 9edk2-ovmfNot affected
Red Hat Enterprise Linux 9edk2-toolsNot affected
Red Hat Enterprise Linux 9edk2-tools-docNot affected
Red Hat Enterprise Linux 9opensslFixed1:3.0.1-41.el9_0RHSA-2022:6224
Red Hat Enterprise Linux 9openssl-develFixed1:3.0.1-41.el9_0RHSA-2022:6224
Red Hat Enterprise Linux 9openssl-libsFixed1:3.0.1-41.el9_0RHSA-2022:6224
Red Hat Enterprise Linux 9openssl-perlFixed1:3.0.1-41.el9_0RHSA-2022:6224
Red Hat Enterprise Linux 9shimNot affected
Red Hat Enterprise Linux 9shim-aa64Not affected
Red Hat Enterprise Linux 9shim-x64Not affected
Red Hat Enterprise Linux 8compat-openssl10Not affected
Red Hat Enterprise Linux 8edk2Not affected
Red Hat Enterprise Linux 8edk2-aarch64Not affected
Red Hat Enterprise Linux 8edk2-ovmfNot affected
Red Hat Enterprise Linux 8opensslNot affected
Red Hat Enterprise Linux 8openssl-develNot affected
Red Hat Enterprise Linux 8openssl-libsNot affected
Red Hat Enterprise Linux 8openssl-perlNot affected
Red Hat Enterprise Linux 8openssl-staticNot affected
Red Hat Enterprise Linux 8shimNot affected
Red Hat Enterprise Linux 8shim-aa64Not affected
Red Hat Enterprise Linux 8shim-ia32Not affected
Red Hat Enterprise Linux 8shim-x64Not affected
Red Hat Enterprise Linux 7AAVMFNot affected
Red Hat Enterprise Linux 7OVMFNot affected
Red Hat Enterprise Linux 7opensslNot affected
Red Hat Enterprise Linux 7openssl-develNot affected
Red Hat Enterprise Linux 7openssl-libsNot affected
Red Hat Enterprise Linux 7openssl-perlNot affected
Red Hat Enterprise Linux 7openssl-staticNot affected
Red Hat Enterprise Linux 7ovmfNot affected
Red Hat Enterprise Linux 6opensslNot affected
Red Hat Enterprise Linux 6openssl-develNot affected
Red Hat Enterprise Linux 6openssl-perlNot affected
Red Hat Enterprise Linux 6openssl-staticNot affected
AlmaLinux 9opensslFixed1:3.0.1-41.el9_0ALSA-2022:6224
AlmaLinux 9openssl-develFixed1:3.0.1-41.el9_0ALSA-2022:6224
AlmaLinux 9openssl-libsFixed1:3.0.1-41.el9_0ALSA-2022:6224
AlmaLinux 9openssl-perlFixed1:3.0.1-41.el9_0ALSA-2022:6224
Alpine Linux 3.24opensslFixed3.0.3-r0ALPINE-CVE-2022-1343
Alpine Linux 3.23opensslFixed3.0.3-r0ALPINE-CVE-2022-1343
Alpine Linux 3.22opensslFixed3.0.3-r0ALPINE-CVE-2022-1343
Alpine Linux 3.21opensslFixed3.0.3-r0ALPINE-CVE-2022-1343
Alpine Linux 3.20opensslFixed3.0.3-r0ALPINE-CVE-2022-1343
Alpine Linux 3.19opensslFixed3.0.3-r0ALPINE-CVE-2022-1343
Alpine Linux 3.18opensslFixed3.0.3-r0ALPINE-CVE-2022-1343
Alpine Linux 3.17opensslFixed3.0.3-r0ALPINE-CVE-2022-1343
Alpine Linux 3.16openssl3Fixed3.0.3-r0ALPINE-CVE-2022-1343
Alpine Linux 3.15openssl3Fixed3.0.3-r0ALPINE-CVE-2022-1343
crates.io libraryopenssl-srcFixed300.0.6RUSTSEC-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.

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.