CVE-2026-42766
Medium · 5.9CVSS
5.9
EPSS
1.1%
Published
Jun 9, 2026
CISA due date
—
Cloudanix analysis
A malformed encrypted message can crash software that tries to decrypt it, potentially interrupting services that process those messages.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- High
- Impact
- Denial Of Service
- Component
- Library
- Class
- Denial of service
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
This vulnerability is a NULL pointer dereference in OpenSSL's password-based CMS decryption handling. A password-encrypted CMS message can omit the optional ASN.1 field PasswordRecipientInfo.keyDerivationAlgorithm; affected OpenSSL CMS code dereferences that missing field without validating it exists. If an application accepts attacker-controlled CMS messages and attempts password-based CMS decryption, the process can crash, causing denial of service. The flaw affects availability only; it does not directly enable code execution, privilege escalation, data theft, or integrity modification. The OpenSSL FIPS modules in 4.0, 3.6, 3.5, 3.4, and 3.0 are not affected because the vulnerable code is outside the FIPS module boundary.
Why it matters to the business
Services, gateways, mail-processing systems, document workflows, APIs, or backend jobs that decrypt password-encrypted CMS content using OpenSSL may be remotely crashable when they process a malicious message. The practical consequence is service interruption, failed message processing, job restarts, queue buildup, or repeated application outages if an attacker can continuously submit malformed CMS objects. The CVSS score is moderate at 5.9, EPSS is low and flat at approximately 1% over 30 days, it is not listed in CISA KEV, and no ransomware use is reported, so broad emergency response is not indicated; however, exposed CMS-processing interfaces should still be prioritized because exploitation can be unauthenticated and can impact availability.
How an attack unfolds
An attacker first identifies an application path that accepts CMS or S/MIME-like encrypted content and causes the server-side application to perform password-based CMS decryption with OpenSSL. The attacker then crafts a password-encrypted CMS message whose PasswordRecipientInfo structure omits the optional keyDerivationAlgorithm field. When the target application passes this malformed CMS object into the vulnerable OpenSSL CMS decryption logic, OpenSSL attempts to dereference the absent field. This results in a NULL pointer dereference and typically terminates the application process with a segmentation fault or similar crash. If the service automatically restarts, the attacker can repeatedly submit the crafted message to create recurring denial of service. There are no named threat actors, public exploit maturity, KEV listing, or ransomware campaigns reported for this issue in the provided intelligence.
How to fix it
Upgrade OpenSSL to a vendor-provided fixed release as soon as one is available for the affected product line or operating system package. No exact fixed versions were provided in the input, so security teams should track OpenSSL and downstream OS/package advisories for CVE-2026-42766 and apply the first fixed package applicable to their distribution. Where immediate patching is not possible, reduce exposure by disabling password-based CMS decryption for untrusted inputs, rejecting password-encrypted CMS content at trust boundaries, adding ASN.1/CMS validation that rejects PasswordRecipientInfo objects lacking keyDerivationAlgorithm before invoking OpenSSL decryption, and isolating CMS processing in a supervised worker process with restart limits, queue controls, and resource isolation. Ensure that service-level retry behavior does not repeatedly reprocess the same crashing payload. The OpenSSL FIPS modules in 4.0, 3.6, 3.5, 3.4, and 3.0 are not affected, but applications may still be vulnerable if they call the non-FIPS CMS implementation outside the module boundary.
How to confirm the fix worked
Confirm exposure by inventorying applications and libraries that link to OpenSSL and use CMS password-based decryption functions on externally supplied content. Validate remediation by checking that OpenSSL or downstream packages have been updated to a vendor release that explicitly includes the fix for this issue. In a non-production test environment, use a controlled malformed password-encrypted CMS sample with PasswordRecipientInfo.keyDerivationAlgorithm omitted and verify that the application rejects the input cleanly without crashing. Review application behavior for graceful error handling, worker isolation, and poison-message handling so the same CMS object is not retried indefinitely. Confirm logs show handled parse/decryption failures rather than SIGSEGV, segmentation fault, core dump, or process restart events during malformed CMS testing.
Typical attack path
- Identify a service, API, mail processor, file-processing workflow, or backend job that accepts CMS encrypted messages from untrusted sources.
- Confirm or infer that the application performs password-based CMS decryption using OpenSSL.
- Create a password-encrypted CMS message with PasswordRecipientInfo.keyDerivationAlgorithm omitted from the ASN.1 structure.
- Submit the crafted CMS message to the target processing path.
- Trigger OpenSSL CMS decryption of the crafted message.
- Cause a NULL pointer dereference and application crash.
- Repeat submissions to sustain denial of service if the service restarts automatically.
How to detect it
To determine whether exploitation already occurred, focus on application crash telemetry, process supervisor logs, operating system logs, core dumps, and message-processing logs from systems that decrypt password-encrypted CMS content. Look for segmentation faults, SIGSEGV, access violations, abrupt process exits, container restarts, systemd restarts, Kubernetes CrashLoopBackOff events, or worker crashes occurring immediately after receiving or processing CMS, S/MIME, PKCS#7, or password-encrypted payloads. Where core dumps are available, inspect stack traces for OpenSSL CMS decryption routines and NULL pointer dereference behavior around PasswordRecipientInfo or key derivation handling. Review inbound message stores, API request bodies, attachment quarantine areas, and dead-letter queues for CMS objects that repeatedly cause worker failure; preserve suspected samples for offline ASN.1 inspection. Network and application logs may not expose the malformed ASN.1 field directly, so detection is most reliable when correlating incoming encrypted CMS content with crashes or restarts. No named threat actors, KEV activity, or ransomware campaigns are reported in the provided data.
- PasswordRecipientInfo
- keyDerivationAlgorithm
- CMS_decrypt
- CMS_RecipientInfo_decrypt
- CMS_EncryptedData_decrypt
- SIGSEGV
- Segmentation fault
- core dumped
- CrashLoopBackOff
- systemd-coredump
- openssl cms
- openssl smime
- application/pkcs7-mime
- application/x-pkcs7-mime
- application/pkcs7-signature
- .p7m
- .p7c
What your security team should do
- Prioritize internet-facing or partner-facing services that accept encrypted CMS, S/MIME, PKCS#7, or similar message formats and perform password-based CMS decryption.
- Inventory OpenSSL versions and application code paths using CMS password-based decryption, including embedded, statically linked, containerized, and appliance-provided OpenSSL copies.
- Apply vendor OpenSSL or operating system package updates when a fixed version is available; track downstream advisories because exact fixed versions were not provided.
- Until patched, block or quarantine password-encrypted CMS messages from untrusted sources where business processes allow it.
- Add input validation or format filtering to reject CMS PasswordRecipientInfo objects missing keyDerivationAlgorithm before invoking OpenSSL decryption.
- Run CMS processing in isolated workers with crash containment, restart throttling, queue dead-lettering, and monitoring for repeated crashes from the same source or object.
- Search historical logs and crash telemetry for segmentation faults or core dumps in services that process CMS content.
- Create alerting for spikes in CMS decryption failures, application restarts, SIGSEGV events, or repeated processing of the same encrypted message.
- Treat urgency as moderate unless the affected CMS-processing interface is exposed to unauthenticated or high-volume untrusted input.
The record
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 packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| openSUSE:Leap 16.0 | openssl-3 | 0 | 3.5.0-160000.8.1 |
| openSUSE:Tumbleweed | openssl-3 | 0 | 3.5.3-6.1 |
Related vulnerabilities
- CVE-2026-7383 Issue summary: A signed integer overflow when sizing the destination buffer for Unicode… Also affects openssl-3
- CVE-2026-9076 Issue summary: When CMS password-based decryption (RFC 3211 / PWRI key unwrap) processes… Also affects openssl-3
- CVE-2026-45446 Issue summary: The implementations of AES-SIV (RFC 5297) and AES-GCM-SIV (RFC 8452)… Also affects openssl-3
- CVE-2026-45447 Issue summary: A specially crafted PKCS#7 or S/MIME signed message could trigger a… Also affects openssl-3
- CVE-2026-45445 Issue summary: When an application drives an AES-OCB context through the public… Also affects openssl-3
- CVE-2026-42769 Issue Summary: An error in the callback used to verify the certificate provided in a Root… Also affects openssl-3
- CVE-2026-42768 Issue summary: The CMS_decrypt and PKCS7_decrypt functions are vulnerable to… Also affects openssl-3
- CVE-2026-42767 Issue summary: An attacker-controlled CMP (Certificate Management Protocol) server could… Also affects openssl-3