CVE-2026-42766

Possible NULL Dereference in Password-Based CMS Decryption

Published Jun 9, 2026 CVSS 3.1 · 5.9 Medium EPSS 1.1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

A nullable field in the CMS password recipient structure allows a crafted encrypted message to cause OpenSSL to dereference a NULL pointer during decryption, leading to an application crash and service interruption. The flaw is located in the function that processes the optional keyDerivationAlgorithm attribute, which is omitted in improperly formed inputs.

Affected Systems

The vulnerability affects OpenSSL libraries that include the CMS decryption implementation. Only the FIPS modules (versions 4.0, 3.6, 3.5, 3.4, and 3.0) are exempted, as the affected code lies outside the FIPS boundary. Applications that invoke password‑based CMS decryption using any non‑FIPS build of OpenSSL are susceptible.

Risk and Exploitability

EPSS information is not available and the vulnerability is not listed in CISA KEV, indicating no confirmed public exploitation yet. However, an attacker can remotely supply a malformed CMS message to any service that performs password-based decryption, trigger the crash, and cause a denial of service. The CVSS score is 5.9, indicating a medium‑severity denial of service scenario.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update to the newest OpenSSL release that incorporates the fix identified in the security commits.
  • If an immediate upgrade is infeasible, add pre‑decryption validation in the application to confirm the presence of the keyDerivationAlgorithm field before calling the OpenSSL CMS decryption routine.
  • After applying the update or validation, validate the affected services with an internal penetration test that supplies malformed CMS messages to confirm the denial of service attack has been mitigated.

Generated by OpenCVE AI on June 9, 2026 at 22:50 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4630-1 openssl security update
Debian DSA Debian DSA DSA-6335-1 openssl security update
Ubuntu USN Ubuntu USN USN-8414-1 OpenSSL vulnerabilities
Ubuntu USN Ubuntu USN USN-8414-2 OpenSSL vulnerabilities
History
Type Values Removed Values Added
CPEs cpe:2.3:a:openssl:openssl:*:*:*:*:*:*:*:*
cpe:2.3:a:openssl:openssl:4.0.0:-:*:*:*:*:*:*
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 5.9, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Openssl
Openssl openssl
Vendors & Products Openssl
Openssl openssl
Type Values Removed Values Added
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.
Title Possible NULL Dereference in Password-Based CMS Decryption
Weaknesses CWE-476
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
openssl
Published
Updated
Jun 10, 2026, 7:48 AM
Reserved
Apr 29, 2026, 9:22 AM
Status
Analyzed
Published
Jun 9, 2026, 5:17 PM
Modified
Jul 23, 2026, 8:10 AM
Severity
Low
Public date
Jun 9, 2026, 12:00 AM