CVE-2022-1343
OCSP_basic_verify may incorrectly verify the response signing certificate
Also known as GHSA-mfm6-r9g2-q4r7, RUSTSEC-2022-0027
Mitigation
- Upgrade openssl-src to 300.0.6 or later.
Who should check
- Projects that depend on crates.io package openssl-src (>= 300.0.0, < 300.0.6)
- Anyone running OpenSSL Fixed in OpenSSL 3.0.3 (Affected 3.0.0,3.0.1,3.0.2)
Vulnerability facts
- Affected
- openssl-src >= 300.0.0, < 300.0.6
- Fixed in
- 300.0.6
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 5.3 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: None
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: Low
- Availability impact: None
- EPSS
- 1.56% chance of exploitation in 30 days (percentile 76, 2026-11-26)
- CWE
- CWE-295
- Modified
Description
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).
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| crates.io openssl-src | >= 300.0.0, < 300.0.6 | 300.0.6 | osv |
| OpenSSL | Fixed in OpenSSL 3.0.3 (Affected 3.0.0,3.0.1,3.0.2) | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2022-1343. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2022-1343.md Affected: openssl-src >= 300.0.0, < 300.0.6 Fixed in: 300.0.6 Steps: 1. Search this machine and project for openssl-src (crates.io), OpenSSL: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Other
- 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
- https://cert-portal.siemens.com/productcert/html/ssa-953464.html
- https://cert-portal.siemens.com/productcert/html/ssa-419740.html
- https://cert-portal.siemens.com/productcert/html/ssa-794697.html
- https://cert-portal.siemens.com/productcert/html/ssa-942865.html
- https://cert-portal.siemens.com/productcert/html/ssa-398330.html
- https://github.com/github/advisory-database/issues/405
- https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff;h=2eda98790c5c2741d76d23cc1e74b0dc4f4b391a
- https://security.netapp.com/advisory/ntap-20220602-0009
- https://crates.io/crates/openssl-src
FAQ
Is CVE-2022-1343 being exploited?
There is no confirmed exploitation: CVE-2022-1343 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.56% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2022-1343?
Medium: CVSS 5.3 (v3.1, scored by CNA). Remote, no login needed.
Which versions are affected by CVE-2022-1343?
openssl-src >= 300.0.0, < 300.0.6.
Is there a fix for CVE-2022-1343?
Yes. Fixed in 300.0.6. Upgrade openssl-src to 300.0.6 or later.
How do I check if I'm affected by CVE-2022-1343?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.