CVE-2026-22796: ASN1_TYPE Type Confusion in the PKCS7_digest_from_attributes() function

Published Jan 16, 2026
·
Updated

ASN1TYPE Type Confusion in the PKCS7digestfromattributes() function

Other sources

Issue summary: A type confusion vulnerability exists in the signature verification of signed PKCS#7 data where an ASN1TYPE union member is accessed without first validating the type, causing an invalid or NULL pointer dereference when processing malformed PKCS#7 data.

Impact summary: An application performing signature verification of PKCS#7 data or calling directly the PKCS7digestfromattributes() function can be caused to dereference an invalid or NULL pointer when reading, resulting in a Denial of Service.

The function PKCS7digestfromattributes() accesses the message digest attribute value without validating its type. When the type is not VASN1OCTETSTRING, this results in accessing invalid memory through the ASN1TYPE union, causing a crash.

Exploiting this vulnerability requires an attacker to provide a malformed signed PKCS#7 to an application that verifies it. The impact of the exploit is just a Denial of Service, the PKCS7 API is legacy and applications should be using the CMS API instead. For these reasons the issue was assessed as Low severity.

The FIPS modules in 3.5, 3.4, 3.3 and 3.0 are not affected by this issue, as the PKCS#7 parsing implementation is outside the OpenSSL FIPS module boundary.

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

— NVD

Affected Software

50 affected componentsFixes available
OpenSSL OpenSSL>=1.0.2<3.6
OpenSSL OpenSSL
OpenSSL OpenSSL>=1.0.2<1.0.2zn
OpenSSL OpenSSL>=1.1.1<1.1.1ze
OpenSSL OpenSSL>=3.0.0<3.0.19
OpenSSL OpenSSL>=3.3.0<3.3.6
OpenSSL OpenSSL>=3.4.0<3.4.4
OpenSSL OpenSSL>=3.5.0<3.5.5
OpenSSL OpenSSL>=3.6.0<3.6.1
IBM Netezza Software<=11.3.0.3-IF2
alpine/openssl>=3.0.0<3.0.19-r0
3.0.19-r0
alpine/openssl>=3.3.0<3.3.6-r0
3.3.6-r0
alpine/openssl>=3.3.0<3.3.6-r0
3.3.6-r0
alpine/openssl>=3.5.0<3.5.5-r0
3.5.5-r0
alpine/openssl>=3.5.0<3.5.5-r0
3.5.5-r0
alpine/openssl>=3.5.0<3.5.5-r0
3.5.5-r0
debian/openssl
1.1.1w-0+deb11u53.0.18-1~deb12u23.5.4-1~deb13u23.5.5-1
ubuntu/openssl<1.0.1f-1ubuntu2.27+esm12
1.0.1f-1ubuntu2.27+esm12
ubuntu/openssl<1.0.2g-1ubuntu4.20+esm14
1.0.2g-1ubuntu4.20+esm14
ubuntu/edk2*
ubuntu/nodejs*
ubuntu/openssl<1.0.2g-1ubuntu4.fips.4.20.14
1.0.2g-1ubuntu4.fips.4.20.14
ubuntu/openssl*
ubuntu/openssl<1.1.1-1ubuntu2.1~18.04.23+esm7
1.1.1-1ubuntu2.1~18.04.23+esm7
ubuntu/openssl1.0<1.0.2n-1ubuntu5.13+esm3
1.0.2n-1ubuntu5.13+esm3
ubuntu/edk2*
ubuntu/nodejs*
ubuntu/openssl<1.1.1-1ubuntu2.fips.2.1~18.04.23.7
1.1.1-1ubuntu2.fips.2.1~18.04.23.7
ubuntu/openssl*
ubuntu/edk2*
ubuntu/openssl<1.1.1f-1ubuntu2.24+esm2
1.1.1f-1ubuntu2.24+esm2
ubuntu/openssl<1.1.1f-1ubuntu2.fips.24.2
1.1.1f-1ubuntu2.fips.24.2
ubuntu/openssl*
ubuntu/edk2*
ubuntu/openssl<3.0.2-0ubuntu1.21
3.0.2-0ubuntu1.21
ubuntu/nodejs*
ubuntu/openssl*
ubuntu/openssl-fips*
ubuntu/openssl<3.0.2-0ubuntu1.21+Fips1
3.0.2-0ubuntu1.21+Fips1
ubuntu/openssl-fips*
ubuntu/edk2*
ubuntu/openssl<3.0.13-0ubuntu3.7
3.0.13-0ubuntu3.7
ubuntu/openssl-fips<3.0.13-0ubuntu3.12+Fips1
3.0.13-0ubuntu3.12+Fips1
ubuntu/edk2*
ubuntu/openssl<3.5.3-1ubuntu3
3.5.3-1ubuntu3
ubuntu/edk2*
ubuntu/edk2-hwe*
ubuntu/edk2*
ubuntu/edk2-hwe*
ubuntu/openssl<3.5.5-1ubuntu1
3.5.5-1ubuntu1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade alpine/openssl to a version that resolves this vulnerability.

    Fixed in 3.0.19-r0
  2. Upgrade

    Upgrade alpine/openssl to a version that resolves this vulnerability.

    Fixed in 3.3.6-r0
  3. Upgrade

    Upgrade alpine/openssl to a version that resolves this vulnerability.

    Fixed in 3.5.5-r0
  4. Upgrade

    Upgrade debian/openssl to a version that resolves this vulnerability.

    Fixed in 1.1.1w-0+deb11u5Fixed in 3.0.18-1~deb12u2Fixed in 3.5.4-1~deb13u2Fixed in 3.5.5-1
  5. Upgrade

    Upgrade ubuntu/openssl to a version that resolves this vulnerability.

    Fixed in 1.0.1f-1ubuntu2.27+esm12
  6. Upgrade

    Upgrade ubuntu/openssl to a version that resolves this vulnerability.

    Fixed in 1.0.2g-1ubuntu4.20+esm14
  7. Upgrade

    Upgrade ubuntu/openssl to a version that resolves this vulnerability.

    Fixed in 1.0.2g-1ubuntu4.fips.4.20.14
  8. Upgrade

    Upgrade ubuntu/openssl to a version that resolves this vulnerability.

    Fixed in 1.1.1-1ubuntu2.1~18.04.23+esm7
  9. Upgrade

    Upgrade ubuntu/openssl1.0 to a version that resolves this vulnerability.

    Fixed in 1.0.2n-1ubuntu5.13+esm3
  10. Upgrade

    Upgrade ubuntu/openssl to a version that resolves this vulnerability.

    Fixed in 1.1.1-1ubuntu2.fips.2.1~18.04.23.7
  11. Upgrade

    Upgrade ubuntu/openssl to a version that resolves this vulnerability.

    Fixed in 1.1.1f-1ubuntu2.24+esm2
  12. Upgrade

    Upgrade ubuntu/openssl to a version that resolves this vulnerability.

    Fixed in 1.1.1f-1ubuntu2.fips.24.2
  13. Upgrade

    Upgrade ubuntu/openssl to a version that resolves this vulnerability.

    Fixed in 3.0.2-0ubuntu1.21
  14. Upgrade

    Upgrade ubuntu/openssl to a version that resolves this vulnerability.

    Fixed in 3.0.2-0ubuntu1.21+Fips1
  15. Upgrade

    Upgrade ubuntu/openssl to a version that resolves this vulnerability.

    Fixed in 3.0.13-0ubuntu3.7
  16. Upgrade

    Upgrade ubuntu/openssl-fips to a version that resolves this vulnerability.

    Fixed in 3.0.13-0ubuntu3.12+Fips1
  17. Upgrade

    Upgrade ubuntu/openssl to a version that resolves this vulnerability.

    Fixed in 3.5.3-1ubuntu3
  18. Upgrade

    Upgrade ubuntu/openssl to a version that resolves this vulnerability.

    Fixed in 3.5.5-1ubuntu1
  19. Upgrade

    Upgrade OpenSSL to a version that resolves this vulnerability.

    Fixed in 1.0.2zn
  20. Upgrade

    Upgrade OpenSSL to a version that resolves this vulnerability.

    Fixed in 1.1.1ze
  21. Upgrade

    Upgrade OpenSSL to a version that resolves this vulnerability.

    Fixed in 3.0.19
  22. Upgrade

    Upgrade OpenSSL to a version that resolves this vulnerability.

    Fixed in 3.3.6
  23. Upgrade

    Upgrade OpenSSL to a version that resolves this vulnerability.

    Fixed in 3.4.4
  24. Upgrade

    Upgrade OpenSSL to a version that resolves this vulnerability.

    Fixed in 3.5.5
  25. Upgrade

    Upgrade OpenSSL to a version that resolves this vulnerability.

    Fixed in 3.6.1

Event History

Jan 16, 2026
Data Sourced
via Red Hat·02:45 PM
DescriptionSeverityAffected Software
Jan 27, 2026
CVE Published
via OSV·12:00 AM
Data Sourced
via OSV·12:00 AM
DescriptionSeverityAffected Software
CVE Published
via MITRE·04:01 PM
Data Sourced
via MITRE·04:01 PM
DescriptionWeakness
Data Sourced
via NVD·04:16 PM
DescriptionWeakness
Data Sourced
via NVD·05:16 PM
Severity
Feb 2, 2026
Data Sourced
via NVD·06:40 PM
RemedyAffected Software
Feb 3, 2026
Event
via FIRST·12:00 AM
Jul 7, 2026
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software
Updated
via IBM·12:00 AM
Affected Software
Jul 8, 2026
Updated
via IBM·12:00 AM
Affected Software
Aug 20, 2026
Updated
via IBM·12:00 AM
Affected Software
Oct 11, 2026
Data Sourced
via Microsoft·08:09 AM
DescriptionSeverityWeakness
Nov 11, 2026
Data Sourced
via OSV·10:47 AM
Weakness

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is the severity of CVE-2026-22796?

CVE-2026-22796 is classified as a high severity vulnerability due to the potential for type confusion resulting in application crashes or arbitrary code execution.

2

How do I fix CVE-2026-22796?

You can fix CVE-2026-22796 by updating OpenSSL to a version that includes the patches addressing the ASN1_TYPE type confusion.

3

Which versions of OpenSSL are affected by CVE-2026-22796?

CVE-2026-22796 affects OpenSSL versions from 1.0.2 to 3.6, inclusive.

4

What is the impact of CVE-2026-22796 on applications?

The impact of CVE-2026-22796 can lead to crashes or unexpected behavior in applications that rely on PKCS#7 signature verification.

5

What is the nature of the vulnerability in CVE-2026-22796?

CVE-2026-22796 is a type confusion vulnerability that occurs when an ASN1_TYPE union member is accessed without proper type validation.

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