# CVE-2026-42765: NULL Dereference in Certificate Verification with OCSP Checking

- Priority: **Prioritise**
- Reason: Severe, CVSS 7.5 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 04-12-2026)
- Next step: Check applicability: affected before 3.6.3, 4.0.1 (CNA); fix release not confirmed
- Status: published
- Published: 2026-06-09 · Modified: 2026-06-10
- Aliases: UBUNTU-CVE-2026-42765, DEBIAN-CVE-2026-42765, CGA-423r-p3g2-v2wq, CGA-4m7p-5hcw-cpv8, CGA-rgfj-c398-6gv5, CGA-xj7p-6685-j9jr, CGA-2m7r-rvfx-699m, CGA-5vfq-g5rh-8fg4, CGA-8p7p-w96p-vvch, CGA-cc59-fgwr-8jh8, CGA-cgx4-pgc3-m5ph, CGA-pvph-7wwm-qc56, CGA-2mvc-5gmx-2gp6, CGA-3wrw-292p-rr25, CGA-96m2-qvx7-5q66, CGA-c4ph-f44h-x5h3, CGA-h4p5-xh98-546j, CGA-qgv9-cq23-2r54
- Record: https://cvemate.com/vulnerability/CVE-2026-42765 · JSON: https://cvemate.com/vulnerability/CVE-2026-42765/json

## Description

```text
Issue summary: When a partial-chain certificate verification is enabled
together with OCSP response checking for the whole chain, a NULL dereference
will happen if the verified chain does not have a self-signed trusted anchor,
crashing the process.

Impact summary: A NULL pointer dereference can trigger a crash which leads to a
Denial of Service for an application.

When performing OCSP response checking for certificates in the verification
chain, the code always tries to access the next certificate as the issuer.
There is a check for a self-signed certificate. However with the partial
chain verification enabled when the chain does not have a self-signed trusted
anchor, the issuer will be NULL for the last certificate in the chain. A NULL
pointer dereference then happens.

This issue affects only applications which enable both OCSP verification
of the certificate chain (X509_V_FLAG_OCSP_RESP_CHECK_ALL) and partial
chain verification (X509_V_FLAG_PARTIAL_CHAIN) in the certificate
verification. Both flags are disabled by default. For that reason, we have
assigned Low severity to the issue.

No FIPS modules are affected by this issue as the affected code is outside
the OpenSSL FIPS module boundary.
```

## Signals

- CVSS: 7.5 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.508%, percentile 44.944%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- chainguard libcrypto3 (Chainguard): \< 3.6.3-r0
- chainguard libcrypto3-2.34 (Chainguard): \< 3.6.3-r0
- chainguard openssl (Chainguard): \< 3.6.3-r0
- chainguard openssl-4.0 (Chainguard): \< 4.0.1-r0
- chainguard openssl-4.0-libcrypto (Chainguard): \< 4.0.1-r0
- chainguard openssl-4.0-libssl (Chainguard): \< 4.0.1-r0
- chainguard openssl-provider-fips-3.6.0 (Chainguard): All versions (No fix recorded)
- chainguard openssl-provider-fips-3.6.0-dbg (Chainguard): All versions (No fix recorded)
- wolfi libcrypto3 (Wolfi): \< 3.6.3-r0
- wolfi openssl (Wolfi): \< 3.6.3-r0
- wolfi openssl-4.0 (Wolfi): \< 4.0.1-r0
- wolfi openssl-4.0-libcrypto (Wolfi): \< 4.0.1-r0
- wolfi openssl-4.0-libssl (Wolfi): \< 4.0.1-r0
- debian openssl (Debian): \< 3.6.3-1
- ubuntu nodejs (Ubuntu): All versions (No fix recorded)
- openssl openssl: ≥ 4.0.0, \< 4.0.1 \| ≥ 3.6.0, \< 3.6.3 \| 4.0.0

## References

- <https://openssl-library.org/news/secadv/20260609.txt>
- <https://github.com/openssl/openssl/commit/14340b7fa1d444615486bc137014b064e64ec334>
- <https://github.com/openssl/openssl/commit/eb345da18ce2216b2f3ade9c2bc23e068487fa97>
- <https://ubuntu.com/security/CVE-2026-42765>
- <https://www.cve.org/CVERecord?id=CVE-2026-42765>
- <https://security-tracker.debian.org/tracker/CVE-2026-42765>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/42xxx/CVE-2026-42765.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-42765>

---

Data as of 2026-12-05T09:19:28.420Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
