Vulnerability · Published Jan 27, 2026 · Assigned by openssl
CVE-2026-22796ASN1_TYPE Type Confusion in the PKCS7_digest_from_attributes() function
Medium 5.3
In plain English
A medium-severity security flaw in OpenSSL from OpenSSL. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 48% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
Issue summary: A type confusion vulnerability exists in the signature verification of signed PKCS#7 data where an ASN1_TYPE 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 PKCS7_digest_from_attributes() function can be caused to dereference an invalid or NULL pointer when reading, resulting in a Denial of Service. The function PKCS7_digest_from_attributes() accesses the message digest attribute value without validating its type. When the type is not V_ASN1_OCTET_STRING, this results in accessing invalid memory through the ASN1_TYPE 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:10 | openssl | 1:3.5.1-7.el10_1.alma.1 | ALSA-2026:1472 |
| AlmaLinux:9 | openssl | 1:3.5.1-7.el9_7 | ALSA-2026:1473 |
| AlmaLinux:10 | openssl-devel | 1:3.5.1-7.el10_1.alma.1 | ALSA-2026:1472 |
| AlmaLinux:9 | openssl-devel | 1:3.5.1-7.el9_7 | ALSA-2026:1473 |
| AlmaLinux:10 | openssl-libs | 1:3.5.1-7.el10_1.alma.1 | ALSA-2026:1472 |
| AlmaLinux:9 | openssl-libs | 1:3.5.1-7.el9_7 | ALSA-2026:1473 |
| AlmaLinux:10 | openssl-perl | 1:3.5.1-7.el10_1.alma.1 | ALSA-2026:1472 |
| AlmaLinux:9 | openssl-perl | 1:3.5.1-7.el9_7 | ALSA-2026:1473 |
| Alpine:v3.20 | openssl | 3.3.6-r0 | ALPINE-CVE-2026-22796 |
| Alpine:v3.21 | openssl | 3.3.6-r0 | ALPINE-CVE-2026-22796 |
| Alpine:v3.22 | openssl | 3.5.5-r0 | ALPINE-CVE-2026-22796 |
| Alpine:v3.23 | openssl | 3.5.5-r0 | ALPINE-CVE-2026-22796 |
| Alpine:v3.24 | openssl | 3.5.5-r0 | ALPINE-CVE-2026-22796 |
| Debian:12 | openssl | 3.0.18-1~deb12u2 | DEBIAN-CVE-2026-22796 |
| Debian:12 | openssl | 3.0.18-1~deb12u2 | DSA-6113-1 |
| Debian:13 | openssl | 3.5.4-1~deb13u2 | DSA-6113-1 |
| Debian:13 | openssl | 3.5.4-1~deb13u2 | DEBIAN-CVE-2026-22796 |
| Debian:14 | openssl | 3.5.5-1 | DEBIAN-CVE-2026-22796 |
| Rocky Linux:10 | openssl | 1:3.5.1-7.el10_1 | RLSA-2026:1472 |
| Rocky Linux:9 | openssl | 1:3.5.1-7.el9_7 | RLSA-2026:1473 |
| Ubuntu:22.04:LTS | edk2 | no fix listed | UBUNTU-CVE-2026-22796 |
| Ubuntu:24.04:LTS | edk2 | no fix listed | UBUNTU-CVE-2026-22796 |
| Ubuntu:25.10 | edk2 | no fix listed | UBUNTU-CVE-2026-22796 |
| Ubuntu:26.04:LTS | edk2 | no fix listed | UBUNTU-CVE-2026-22796 |
| Ubuntu:26.10 | edk2 | no fix listed | UBUNTU-CVE-2026-22796 |
| Ubuntu:26.04:LTS | edk2-hwe | no fix listed | UBUNTU-CVE-2026-22796 |
| Ubuntu:26.10 | edk2-hwe | no fix listed | UBUNTU-CVE-2026-22796 |
| Ubuntu:22.04:LTS | openssl | 3.0.2-0ubuntu1.21 | UBUNTU-CVE-2026-22796 |
| Ubuntu:22.04:LTS | openssl | 3.0.2-0ubuntu1.21 | USN-7980-1 |
| Ubuntu:24.04:LTS | openssl | 3.0.13-0ubuntu3.7 | UBUNTU-CVE-2026-22796 |
| Ubuntu:24.04:LTS | openssl | 3.0.13-0ubuntu3.7 | USN-7980-1 |
| Ubuntu:25.10 | openssl | 3.5.3-1ubuntu3 | USN-7980-1 |
| Ubuntu:25.10 | openssl | 3.5.3-1ubuntu3 | UBUNTU-CVE-2026-22796 |
| Ubuntu:26.04:LTS | openssl | 3.5.5-1ubuntu1 | UBUNTU-CVE-2026-22796 |
Affected products (as reported)
Weakness: CWE-754 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
References
- OpenSSL Advisory vendor-advisory
- 3.6.1 git commit patch
- 3.5.5 git commit patch
- 3.4.4 git commit patch
- 3.3.6 git commit patch
- 3.0.19 git commit patch
- https://cert-portal.siemens.com/productcert/html/ssa-265688.html