REDHAT-BUG-2481898: Use After Free

Published May 27, 2026
·
Updated

Heap Use-After-Free in OpenSSL PKCS7verify()

Heap Use-After-Free in OpenSSL PKCS7verify() (CVE-2026-45447) Severity: High

Issue summary: A specially crafted PKCS#7 or S/MIME signed message could trigger a use-after-free during PKCS#7 signature verification.

Impact summary: A use-after-free may result in process crashes, heap corruption, or potentially remote code execution.

When processing a PKCS#7 or S/MIME signed message, if the SignedData digestAlgorithms field is present as an empty ASN.1 SET, OpenSSL may incorrectly free a caller-owned BIO during PKCS7verify(). A subsequent use of the BIO by the calling application results in a use-after-free condition.

In the common case this occurs when the application later calls BIOfree() on the BIO originally passed to PKCS7verify(). Depending on allocator behavior and application-specific BIO usage patterns, this may result in a crash or other memory corruption. In some application contexts this may potentially be exploitable for remote code execution.

Applications that process PKCS#7 or S/MIME signed messages using OpenSSL PKCS#7 APIs may be affected. Applications using the CMS APIs for this processing are not 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.

OpenSSL 4.0, 3.6, 3.5, 3.4, 3.0, 1.1.1, and 1.0.2 are vulnerable to this issue.

OpenSSL 4.0 users should upgrade to OpenSSL 4.0.1 OpenSSL 3.6 users should upgrade to OpenSSL 3.6.3. OpenSSL 3.5 users should upgrade to OpenSSL 3.5.7. OpenSSL 3.4 users should upgrade to OpenSSL 3.4.6. OpenSSL 3.0 users should upgrade to OpenSSL 3.0.21. OpenSSL 1.1.1 users should upgrade to OpenSSL 1.1.1zh (premium support customers only). OpenSSL 1.0.2 users should upgrade to OpenSSL 1.0.2zq (premium support customers only).

This issue was reported by Thai Duong (Calif.io in collaboration with Claude and Anthropic Research). on 27th April 2026. The fix was developed by Igor Ustinov.

Affected Software

1 affected component
OpenSSL OpenSSL<4.0.1, <3.6.3, <3.5.7, <3.4.6, <3.0.21, <1.1.1zh, <1.0.2zq

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade OpenSSL to a version that resolves this vulnerability.

    Fixed in 1.0.2zq
  2. Upgrade

    Upgrade OpenSSL to a version that resolves this vulnerability.

    Fixed in 1.1.1zh
  3. Upgrade

    Upgrade OpenSSL to a version that resolves this vulnerability.

    Fixed in 3.0.21
  4. Upgrade

    Upgrade OpenSSL to a version that resolves this vulnerability.

    Fixed in 3.4.6
  5. Upgrade

    Upgrade OpenSSL to a version that resolves this vulnerability.

    Fixed in 3.5.7
  6. Upgrade

    Upgrade OpenSSL to a version that resolves this vulnerability.

    Fixed in 3.6.3
  7. Upgrade

    Upgrade OpenSSL to a version that resolves this vulnerability.

    Fixed in 4.0.1
  8. Compensating control

    If upgrading is not immediately possible, compensate by ensuring your application does not reuse the BIO originally passed to PKCS7_verify() for subsequent processing (since the issue can free a caller-owned BIO and lead to use-after-free).

  9. Compensating control

    Use FIPS modules in OpenSSL 4.0, 3.6, 3.5, 3.4, and 3.0 to avoid this issue, since the FIPS modules for these versions are stated as not affected.

Event History

May 27, 2026
Data Sourced
via Red Hat·02:23 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of REDHAT-BUG-2481898?

The severity of REDHAT-BUG-2481898 is classified as high with a risk score of 7.

2

What is the impact of REDHAT-BUG-2481898?

The impact of REDHAT-BUG-2481898 includes a potential use-after-free vulnerability during PKCS#7 signature verification.

3

How do I fix REDHAT-BUG-2481898?

To fix REDHAT-BUG-2481898, update to the latest patched version of OpenSSL as recommended by the vendor.

4

What causes REDHAT-BUG-2481898?

REDHAT-BUG-2481898 is caused by a specially crafted PKCS#7 or S/MIME signed message triggering a use-after-free in OpenSSL's PKCS7_verify() function.

5

Is REDHAT-BUG-2481898 related to CVE-2026-45447?

Yes, REDHAT-BUG-2481898 is associated with CVE-2026-45447, which describes the same vulnerability.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203