# CVE-2022-1343: OCSP\_basic\_verify may incorrectly verify the response signing certificate

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.3
- **CVSS:** 5.3 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 1.56% (percentile 76, 2026-11-26)
- **CWE:** CWE-295
- **Aliases:** GHSA-mfm6-r9g2-q4r7, RUSTSEC-2022-0027
- **Published:** 2022-05-03T12:00:00.000Z
- **Modified:** 2026-10-14T13:17:18.587Z

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

## 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

- crates.io `openssl-src`: affected \>= 300.0.0, \< 300.0.6; fixed 300.0.6 (osv)
- OpenSSL: Fixed in OpenSSL 3.0.3 (Affected 3.0.0,3.0.1,3.0.2) (cvelist)

## Mitigation

- Upgrade openssl-src to 300.0.6 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

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

## References

- vendor: <https://www.openssl.org/news/secadv/20220503.txt>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2022-1343>
- vendor: <https://rustsec.org/advisories/RUSTSEC-2022-0027.html>
- other: <https://git.openssl.org/gitweb/?p=openssl.git%3Ba=commitdiff%3Bh=2eda98790c5c2741d76d23cc1e74b0dc4f4b391a>
- other: <https://security.netapp.com/advisory/ntap-20220602-0009/>
- other: <https://cert-portal.siemens.com/productcert/pdf/ssa-953464.pdf>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-953464.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-419740.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-794697.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-942865.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-398330.html>
- other: <https://github.com/github/advisory-database/issues/405>
- other: <https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff;h=2eda98790c5c2741d76d23cc1e74b0dc4f4b391a>
- other: <https://security.netapp.com/advisory/ntap-20220602-0009>
- other: <https://crates.io/crates/openssl-src>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-1343>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-mfm6-r9g2-q4r7> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/RUSTSEC-2022-0027> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2022-1343> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-1343>
