# CVE-2026-107493: Use-After-Free in PEM\_X509\_INFO\_read\_bio\_ex() when appending to a caller-supplied stack fails

- **Severity:** HIGH 7.7
- **CVSS:** 7.7 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.15% (percentile 2, 2026-11-30)
- **CWE:** CWE-416
- **Published:** 2026-11-17T08:14:08.947Z
- **Modified:** 2026-11-17T22:17:20.830Z

## Who should check

- Anyone running OpenSSL \>= 4.1.0, \< 4.1.1; \>= 4.0.0, \< 4.0.4; \>= 3.5.0, \< 3.5.10; \>= 3.0.0, \< 3.0.24; \>= 1.1.1, \< 1.1.1zk; \>= 1.0.2, \< 1.0.2zt

## Description

Issue summary: When an application passes a stack to
PEM\_X509\_INFO\_read\_bio\_ex() to add entries to, and reading fails,
OpenSSL frees every entry in the stack, both the old ones and any new
ones, but leaves them in the stack.

Impact summary: An application that passes an existing stack to
PEM\_X509\_INFO\_read\_bio\_ex() and keeps using it after a failed read may
use memory that was already freed. This can cause a crash or, in
principle, memory corruption. Malformed PEM data can make the read fail,
but only applications that pass an existing stack are affected, and
OpenSSL itself does not do this.

CWE: CWE-416: Use After Free

Description: PEM\_X509\_INFO\_read\_bio\_ex() reads certificates, CRLs and
private keys from PEM data and adds them to a stack of X509\_INFO
structures. If the application passes a stack that is not NULL, the
function adds the new entries to it and must leave the entries that are
already there unchanged.

If reading fails, the function frees every entry in the stack. This
includes the entries that were there before the call, and the entries
added by the call. It does not remove these entries from the stack, so
the stack keeps pointers to freed memory. The failure can happen at any
point, even before any entry was added. A PEM item with invalid content
is enough.  This also happens if the stack was empty: entries added
before the failure are freed but stay in the stack.

An application that then reads or frees the stack will use memory that
was already freed. This can crash the application or, in principle,
corrupt memory.

Only applications that pass a stack that is not NULL are affected.
OpenSSL itself never does this. Its own callers, including the code that
TLS uses to load CA certificates, always pass NULL. When the stack is
NULL, the function frees only the entries that it created itself, which
is safe. We expect that very few applications pass an existing stack. An
attacker can make the read fail with malformed PEM data, but cannot make
an application pass an existing stack.

The same problem affects PEM\_X509\_INFO\_read\_bio(), PEM\_X509\_INFO\_read()
and PEM\_X509\_INFO\_read\_ex(), which use the same code. OpenSSL 1.1.1 and
1.0.2 have only the first two of these functions.

FIPS impact: no
The affected code is outside the FIPS module boundary.

## Affected and fixed versions

- OpenSSL: \>= 4.1.0, \< 4.1.1; \>= 4.0.0, \< 4.0.4; \>= 3.5.0, \< 3.5.10; \>= 3.0.0, \< 3.0.24; \>= 1.1.1, \< 1.1.1zk; \>= 1.0.2, \< 1.0.2zt (cvelist)

## Technologies

OpenSSL

## Mitigation

- Upgrade OpenSSL to 1.0.2zt 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-107493. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-107493.md
Affected: OpenSSL >= 4.1.0, < 4.1.1; >= 4.0.0, < 4.0.4; >= 3.5.0, < 3.5.10; >= 3.0.0, < 3.0.24; >= 1.1.1, < 1.1.1zk; >= 1.0.2, < 1.0.2zt
Fixed in: OpenSSL 4.1.1, OpenSSL 4.0.4, OpenSSL 3.5.10, OpenSSL 3.0.24, OpenSSL 1.1.1zk, OpenSSL 1.0.2zt

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-107493 being exploited?

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

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

High: CVSS 7.7 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

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

OpenSSL \>= 4.1.0, \< 4.1.1; \>= 4.0.0, \< 4.0.4; \>= 3.5.0, \< 3.5.10; \>= 3.0.0, \< 3.0.24; \>= 1.1.1, \< 1.1.1zk; \>= 1.0.2, \< 1.0.2zt.

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

Yes. Fixed in OpenSSL 4.1.1, OpenSSL 4.0.4, OpenSSL 3.5.10, OpenSSL 3.0.24, OpenSSL 1.1.1zk, OpenSSL 1.0.2zt. Upgrade OpenSSL to 1.0.2zt or later.

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

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/20261117.txt>
- patch: <https://github.com/openssl/openssl/commit/c57a5ccf0c060755b5494a6870922b7c6cdd7dd8>
- patch: <https://github.com/openssl/openssl/commit/0486dfadfec558e1808f59d35a8d79e541c4e7d7>
- patch: <https://github.com/openssl/openssl/commit/c8f6d04f8e6d40b1bf83334e4a2ec9daf5943a3d>

## 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-107493>
- FIRST EPSS: EPSS scores by FIRST <https://www.first.org/epss/>

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