# CVE-2026-22796: ASN1\_TYPE Type Confusion in the PKCS7\_digest\_from\_attributes() function

- Priority: **Routine**
- Reason: Not severe (CVSS 5.3, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-01-27 · Modified: 2026-10-15
- Aliases: ALPINE-CVE-2026-22796, UBUNTU-CVE-2026-22796, DEBIAN-CVE-2026-22796, CGA-54qp-f6pv-w9rw, CGA-rpw7-8rcj-25xj, CGA-356x-h593-hj8c, CGA-4frg-gq5f-fh2p, CGA-gxgj-x8x8-cx7g, CGA-jfx7-9m8h-c9v2, CGA-jg24-vvp4-j3mf, CGA-jjw6-v42c-v86h, CGA-p53w-w6cw-c4v9, CGA-w558-c478-2mxr, CGA-wr8w-xh7h-2c9q, CGA-xq9g-wfhg-grc4, CGA-4v2x-6237-gpj4, CGA-7rq2-jp44-8c4x, CGA-ccq8-vh5q-g92w, CGA-cw3c-6jmg-v78x, CGA-pjv9-93g7-7h4q, CGA-rr26-j5gw-j8rj, CGA-vwmr-3xqr-5gqp, CGA-x5vc-997h-rfmr, CGA-wr6v-pwcv-xm69, CGA-5g4p-p23r-mxg3
- Record: https://cvemate.com/vulnerability/CVE-2026-22796 · JSON: https://cvemate.com/vulnerability/CVE-2026-22796/json

## Description

```text
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.
```

## Signals

- CVSS: 5.3 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
- EPSS: 0.589%, percentile 49.593%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 22)

- alpine openssl (Alpine Linux): ≥ 1.0.2, \< 3.0.19-r0 \| ≥ 1.0.2, \< 3.3.6-r0 \| ≥ 1.0.2, \< 3.5.5-r0 \| ≥ 3.0.0, \< 3.0.19-r0 \| ≥ 3.3.0, \< 3.3.6-r0 \| ≥ 3.5.0, \< 3.5.5-r0
- chainguard eco-dotnet-libssl-1.0-dev (Chainguard): All versions (No fix recorded)
- chainguard eco-dotnet-libssl-1.0-ld-so-conf (Chainguard): All versions (No fix recorded)
- chainguard libcrypto3-2.34 (Chainguard): \< 3.6.1-r0
- chainguard openssl (Chainguard): \< 3.6.1-r0
- chainguard openssl-3.5 (Chainguard): \< 3.5.5-r0
- chainguard openssl-3.5-libcrypto (Chainguard): \< 3.5.5-r0
- chainguard openssl-3.5-libssl (Chainguard): \< 3.5.5-r0
- chainguard openssl-3.5-static-bin (Chainguard): \< 3.5.5-r0
- chainguard openssl-provider-fips (Chainguard): All versions (No fix recorded)
- chainguard openssl-provider-fips-3.1.2 (Chainguard): All versions (No fix recorded)
- chainguard openssl-provider-fips-3.4.0 (Chainguard): All versions (No fix recorded)
- chainguard openssl-provider-fips-3.6.0 (Chainguard): All versions (No fix recorded)
- wolfi openssl (Wolfi): \< 3.6.1-r0
- debian openssl (Debian): \< 3.0.18-1~deb12u2 \| \< 3.5.4-1~deb13u2 \| \< 3.5.5-1
- ubuntu edk2 (Ubuntu): All versions (No fix recorded)
- ubuntu edk2-hwe (Ubuntu): All versions (No fix recorded)
- ubuntu nodejs (Ubuntu): All versions (No fix recorded)
- ubuntu openssl (Ubuntu): \< 1.0.1f-1ubuntu2.27+esm12 \| \< 1.0.2g-1ubuntu4.20+esm14 \| \< 1.0.2g-1ubuntu4.fips.4.20.14 \| All versions (No fix recorded) \| \< 1.1.1-1ubuntu2.1~18.04.23+esm7 \| \< 1.1.1-1ubuntu2.fips.2.1~18.04.23.7 \| \< 1.1.1f-1ubuntu2.24+esm2 \| \< 1.1.1f-1ubuntu2.fips.24.2 \| \< 3.0.2-0ubuntu1.21 \| \< 3.0.2-0ubuntu1.21+Fips1 \| \< 3.0.13-0ubuntu3.7 \| \< 3.5.3-1ubuntu3 \| \< 3.5.5-1ubuntu1
- ubuntu openssl-fips (Ubuntu): All versions (No fix recorded) \| \< 3.0.13-0ubuntu3.12+Fips1

## References

- <https://openssl-library.org/news/secadv/20260127.txt>
- <https://github.com/openssl/openssl/commit/ef2fb66ec571564d64d1c74a12e388a2a54d05d2>
- <https://github.com/openssl/openssl/commit/2502e7b7d4c0cf4f972a881641fe09edc67aeec4>
- <https://github.com/openssl/openssl/commit/7bbca05be55b129651d9df4bdb92becc45002c12>
- <https://github.com/openssl/openssl/commit/eeee3cbd4d682095ed431052f00403004596373e>
- <https://github.com/openssl/openssl/commit/572844beca95068394c916626a6d3a490f831a49>
- <https://cert-portal.siemens.com/productcert/html/ssa-265688.html>
- <https://security.alpinelinux.org/vuln/CVE-2026-22796>
- <https://ubuntu.com/security/CVE-2026-22796>
- <https://www.cve.org/CVERecord?id=CVE-2026-22796>
- <https://ubuntu.com/security/notices/USN-7980-1>
- <https://ubuntu.com/security/notices/USN-7980-2>
- <https://security-tracker.debian.org/tracker/CVE-2026-22796>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/22xxx/CVE-2026-22796.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-22796>

---

Data as of 2026-12-05T10:24:28.321Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
