# CVE-2026-42766: Possible NULL Dereference in Password-Based CMS Decryption

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

- **Severity:** MEDIUM 5.9
- **CVSS:** 5.9 (v3.1, CNA) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: High; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 1.11% (percentile 66, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2026-06-09T16:03:26.679Z
- **Modified:** 2026-07-23T08:10:00.137Z

## Who should check

- Anyone running OpenSSL \>= 4.0.0, \< 4.0.1; \>= 3.6.0, \< 3.6.3; \>= 3.5.0, \< 3.5.7; \>= 3.4.0, \< 3.4.6; \>= 3.0.0, \< 3.0.21; \>= 1.1.1, \< 1.1.1zh; \>= 1.0.2, \< 1.0.2zq

## Description

Issue summary: A specially crafted password-encrypted CMS message
can trigger a NULL pointer dereference during CMS decryption.

Impact summary: This NULL pointer dereference leads to an application crash
and a Denial of Service.

The CMS PasswordRecipientInfo.keyDerivationAlgorithm field is defined as
OPTIONAL in the ASN.1 specification and may therefore be absent in specially
crafted inputs. During the password-based CMS decryption the OpenSSL
CMS implementation dereferences this field without first checking whether it
was present.

An attacker who supplies such a CMS message to an application performing
password-based CMS decryption can trigger an application crash, leading to
a Denial of Service.

Applications that process password-encrypted CMS messages may be affected.

The FIPS modules in 4.0, 3.6, 3.5, 3.4, and 3.0 are not affected by this
issue, as the affected code is outside the OpenSSL FIPS module boundary.

## Affected and fixed versions

- OpenSSL: \>= 4.0.0, \< 4.0.1; \>= 3.6.0, \< 3.6.3; \>= 3.5.0, \< 3.5.7; \>= 3.4.0, \< 3.4.6; \>= 3.0.0, \< 3.0.21; \>= 1.1.1, \< 1.1.1zh; \>= 1.0.2, \< 1.0.2zq (cvelist)

## Mitigation

- Upgrade OpenSSL to 1.0.2zq or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-42766. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-42766.md
Affected: OpenSSL >= 4.0.0, < 4.0.1; >= 3.6.0, < 3.6.3; >= 3.5.0, < 3.5.7; >= 3.4.0, < 3.4.6; >= 3.0.0, < 3.0.21; >= 1.1.1, < 1.1.1zh; >= 1.0.2, < 1.0.2zq
Fixed in: OpenSSL 4.0.1, OpenSSL 3.6.3, OpenSSL 3.5.7, OpenSSL 3.4.6, OpenSSL 3.0.21, OpenSSL 1.1.1zh, OpenSSL 1.0.2zq

Steps:
1. Search this machine and project for 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-2026-42766 being exploited?

There is no confirmed exploitation: CVE-2026-42766 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.11% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-42766?

Medium: CVSS 5.9 (v3.1, scored by CNA). Remote, no login needed. The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2026-42766?

OpenSSL \>= 4.0.0, \< 4.0.1; \>= 3.6.0, \< 3.6.3; \>= 3.5.0, \< 3.5.7; \>= 3.4.0, \< 3.4.6; \>= 3.0.0, \< 3.0.21; \>= 1.1.1, \< 1.1.1zh; \>= 1.0.2, \< 1.0.2zq.

### Is there a fix for CVE-2026-42766?

Yes. Fixed in OpenSSL 4.0.1, OpenSSL 3.6.3, OpenSSL 3.5.7, OpenSSL 3.4.6, OpenSSL 3.0.21, OpenSSL 1.1.1zh, OpenSSL 1.0.2zq. Upgrade OpenSSL to 1.0.2zq or later.

### How do I check if I'm affected by CVE-2026-42766?

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://openssl-library.org/news/secadv/20260609.txt>
- patch: <https://github.com/openssl/openssl/commit/12bc26ffb3a2be728c9b86e1cae277de5b33dfa4>
- patch: <https://github.com/openssl/openssl/commit/da26f368732b83e40e9d356fe61c3d3aaab6d2e8>
- patch: <https://github.com/openssl/openssl/commit/056d06c1918fafbb98c1c85a02e4c47cc4e199ce>
- patch: <https://github.com/openssl/openssl/commit/ab52d88cb5374876d59aee3c91f9e4ccce2b7ce4>
- patch: <https://github.com/openssl/openssl/commit/3ff64913615d648cfbb6a6f1cf5529ae7ea829d7>

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

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