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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.3
- **CVSS:** 5.3 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: Low
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 1.16% (percentile 67, 2026-11-26)
- **CWE:** CWE-754
- **Published:** 2026-01-27T16:01:28.150Z
- **Modified:** 2026-10-15T01:12:21.460Z

## Who should check

- Anyone running OpenSSL \>= 3.6.0, \< 3.6.1; \>= 3.5.0, \< 3.5.5; \>= 3.4.0, \< 3.4.4; \>= 3.3.0, \< 3.3.6; \>= 3.0.0, \< 3.0.19; \>= 1.1.1, \< 1.1.1ze; \>= 1.0.2, \< 1.0.2zn

## 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 and fixed versions

- OpenSSL: \>= 3.6.0, \< 3.6.1; \>= 3.5.0, \< 3.5.5; \>= 3.4.0, \< 3.4.4; \>= 3.3.0, \< 3.3.6; \>= 3.0.0, \< 3.0.19; \>= 1.1.1, \< 1.1.1ze; \>= 1.0.2, \< 1.0.2zn (cvelist)

## Mitigation

- Upgrade OpenSSL to 1.0.2zn or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-22796. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-22796.md
Affected: OpenSSL >= 3.6.0, < 3.6.1; >= 3.5.0, < 3.5.5; >= 3.4.0, < 3.4.4; >= 3.3.0, < 3.3.6; >= 3.0.0, < 3.0.19; >= 1.1.1, < 1.1.1ze; >= 1.0.2, < 1.0.2zn
Fixed in: OpenSSL 3.6.1, OpenSSL 3.5.5, OpenSSL 3.4.4, OpenSSL 3.3.6, OpenSSL 3.0.19, OpenSSL 1.1.1ze, OpenSSL 1.0.2zn

Steps:
1. Search this machine and project for OpenSSL: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-22796 being exploited?

There is no confirmed exploitation: CVE-2026-22796 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.16% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-22796?

Medium: CVSS 5.3 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2026-22796?

OpenSSL \>= 3.6.0, \< 3.6.1; \>= 3.5.0, \< 3.5.5; \>= 3.4.0, \< 3.4.4; \>= 3.3.0, \< 3.3.6; \>= 3.0.0, \< 3.0.19; \>= 1.1.1, \< 1.1.1ze; \>= 1.0.2, \< 1.0.2zn.

### Is there a fix for CVE-2026-22796?

Yes. Fixed in OpenSSL 3.6.1, OpenSSL 3.5.5, OpenSSL 3.4.4, OpenSSL 3.3.6, OpenSSL 3.0.19, OpenSSL 1.1.1ze, OpenSSL 1.0.2zn. Upgrade OpenSSL to 1.0.2zn or later.

### How do I check if I'm affected by CVE-2026-22796?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://openssl-library.org/news/secadv/20260127.txt>
- patch: <https://github.com/openssl/openssl/commit/ef2fb66ec571564d64d1c74a12e388a2a54d05d2>
- patch: <https://github.com/openssl/openssl/commit/2502e7b7d4c0cf4f972a881641fe09edc67aeec4>
- patch: <https://github.com/openssl/openssl/commit/7bbca05be55b129651d9df4bdb92becc45002c12>
- patch: <https://github.com/openssl/openssl/commit/eeee3cbd4d682095ed431052f00403004596373e>
- patch: <https://github.com/openssl/openssl/commit/572844beca95068394c916626a6d3a490f831a49>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-265688.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-22796>

HTML: <https://flawdb.com/CVE-2026-22796> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-22796>
