CVE-2026-28390
Ruby vulnerability analysis and mitigation

Overview

CVE-2026-28390 is a NULL pointer dereference vulnerability in OpenSSL's CMS (Cryptographic Message Syntax) EnvelopedData processing that can cause a Denial of Service. When a CMS EnvelopedData message using KeyTransportRecipientInfo with RSA-OAEP encryption is processed, the optional pSourceFunc parameters field of the RSA-OAEP algorithm identifier is accessed without first verifying its presence, resulting in a segfault if the field is absent. Affected versions span OpenSSL 1.0.2 (before 1.0.2zp), 1.1.1 (before 1.1.1zg), 3.0.x (before 3.0.20), 3.3.x (before 3.3.7), 3.4.x (before 3.4.5), 3.5.x (before 3.5.6), and 3.6.x (before 3.6.2). The vulnerability was disclosed on April 7, 2026, and carries a CVSS v3.1 base score of 7.5 (High) (OpenSSL Advisory, GitHub Advisory).

Technical details

The root cause is a NULL pointer dereference (CWE-476) in the rsa_cms_decrypt() function within crypto/cms/cms_rsa.c. The vulnerable code directly accessed plab->parameter->type and plab->parameter->value.octet_string->data without checking whether plab->parameter (the optional parameters field of the RSA-OAEP SourceFunc algorithm identifier) was actually present. An unauthenticated remote attacker can exploit this by sending a crafted CMS EnvelopedData message with a KeyTransportRecipientInfo block that omits the optional parameters field, triggering the dereference before any authentication or cryptographic verification occurs. The fix, applied across multiple OpenSSL branches, uses X509_ALGOR_get0() to safely retrieve the algorithm OID, parameter type, and parameter value with proper NULL checks (OpenSSL Commit, OpenSSL Advisory). The FIPS modules in versions 3.0, 3.3, 3.4, 3.5, and 3.6 are not affected, as the vulnerable code lies outside the FIPS module boundary.

Impact

Successful exploitation causes the affected application to crash (segfault), resulting in a Denial of Service. The crash occurs before any authentication or cryptographic operations complete, meaning any service that calls CMS_decrypt() on attacker-supplied input — such as S/MIME email gateways, CMS-based protocol handlers, or TLS-adjacent services — can be remotely crashed without credentials. There is no known confidentiality or integrity impact; the vulnerability is limited to availability (OpenSSL Advisory, GitHub Advisory).

Exploitation steps

  1. Identify a target: Locate a service or application that processes untrusted CMS EnvelopedData messages using a vulnerable OpenSSL version (e.g., an S/MIME email processing gateway, a CMS-based decryption service, or any application calling CMS_decrypt() on external input).
  2. Craft a malicious CMS message: Construct a DER- or PEM-encoded CMS EnvelopedData message that includes a KeyTransportRecipientInfo block specifying RSA-OAEP as the key encryption algorithm, but with the optional pSourceFunc field present while omitting its parameters sub-field.
  3. Deliver the payload: Submit the crafted message to the target application — for example, by sending a specially crafted S/MIME email to a mail server using OpenSSL for decryption, or by submitting the CMS blob to an API endpoint that invokes CMS_decrypt().
  4. Trigger the crash: The vulnerable rsa_cms_decrypt() function dereferences the NULL parameter pointer when processing the malformed pSourceFunc, causing a segfault and crashing the application process, resulting in Denial of Service (OpenSSL Commit, OpenSSL Advisory).

Indicators of compromise

  • Logs: Application crash logs or core dumps referencing rsa_cms_decrypt or cms_rsa.c; OpenSSL error logs showing CMS_R_UNSUPPORTED_LABEL_SOURCE or segmentation fault signals from the CMS decryption path.
  • Process: Unexpected termination (SIGSEGV) of mail server processes (e.g., Postfix, Exim, Dovecot), web server worker processes, or custom CMS-processing daemons linked against a vulnerable OpenSSL version.
  • Network: Repeated inbound delivery of S/MIME messages or CMS-encoded payloads from the same source IP that consistently cause service crashes; unusual patterns of connection resets following CMS message submission.
  • File System: Core dump files (e.g., core, core.<pid>) in application working directories generated by the OpenSSL-linked process, potentially containing stack traces pointing to rsa_cms_decrypt().

Mitigation and workarounds

Upgrade OpenSSL to one of the following patched versions: 1.0.2zp, 1.1.1zg, 3.0.20, 3.3.7, 3.4.5, 3.5.6, or 3.6.2 (or later). No configuration-based workaround is available; patching is the only remediation. Prioritize systems that process untrusted CMS data, including S/MIME implementations and CMS-based protocol handlers. Review and restrict which applications are permitted to process CMS EnvelopedData messages from untrusted sources as a defense-in-depth measure. Distribution-specific updates are available for Ubuntu (USN-8155-1, USN-8155-2), Debian, SUSE, Red Hat, Amazon Linux, and others (OpenSSL Advisory, GitHub Advisory).

Community reactions

The OpenSSL project published a formal security advisory on April 7, 2026, describing the issue and its scope (OpenSSL Advisory). Microsoft also acknowledged the vulnerability in its April 2026 security update guidance (Microsoft MSRC). Security news outlets including Help Net Security, CyberSecurityNews, and 9to5Linux covered the OpenSSL 3.6.2 release and its security fixes. Community reaction was generally measured, noting the limited impact (DoS only, no code execution) and the availability of patches across all supported branches.

Additional resources


SourceThis report was generated using AI

Related Ruby vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-2x63-gw47-w4mmHIGH8.9
  • Ruby logoRuby
  • websocket-driver
NoYesJul 21, 2026
GHSA-cj75-f6xr-r4g7MEDIUM5.1
  • Ruby logoRuby
  • rails-html-sanitizer
NoYesJul 21, 2026
GHSA-9wjq-cp2p-hrgfMEDIUM4.7
  • Ruby logoRuby
  • loofah
NoYesJul 21, 2026
GHSA-53g2-mvcc-q9x3MEDIUM4.6
  • JavaScript logoJavaScript
  • action_text-trix
NoYesJul 24, 2026
GHSA-5qhf-9phg-95m2LOW2.3
  • Ruby logoRuby
  • loofah
NoYesJul 21, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management