OpenSSL’s PEM_X509_INFO_read_bio_ex() reads certificates, CRLs and keys out of PEM data into a stack. If the caller hands it an existing stack to append to and the read fails part-way, the function frees every entry in the stack, the old ones as well as the new, but leaves the pointers in place; whatever the application does with that stack next is a use-after-free. Malformed PEM input is enough to make the read fail. If you maintain or run software that passes its own stack to the PEM_X509_INFO_read family, plan the OpenSSL 4.1.1 / 4.0.4 / 3.5.10 update, due on 1 December 2026, and until then do not reuse a stack after a failed read. OpenSSL itself never passes an existing stack, so TLS, the command-line tool and most applications are not exposed; the project rates it Low.
CVE-2026-107493 at a glance.
| Component | OpenSSL, PEM_X509_INFO_read_bio_ex() and the functions that share its code: PEM_X509_INFO_read_bio(), PEM_X509_INFO_read(), PEM_X509_INFO_read_ex() |
| Affected versions | 4.1.0; 4.0.0 to 4.0.3; 3.5.0 to 3.5.9; 3.0.0 to 3.0.23; 1.1.1 to 1.1.1zj; 1.0.2 to 1.0.2zs. The out-of-support 3.1 to 3.4 and 3.6 lines were not analysed by the project |
| Fixed in | 4.1.1, 4.0.4 and 3.5.10, scheduled for release on 1 December 2026 (not yet available on 30 November); 3.0.24, 1.1.1zk and 1.0.2zt for premium-support customers only. Fix by Viktor Dukhovni |
| Severity | OpenSSL: Low. CISA’s ADP scores it CVSS 3.1 7.7 High (AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H); Red Hat rates it Low, 3.7 (AV:N/AC:H, availability only); SUSE rates it moderate, 5.9. CWE-416 |
| Exploited in the wild | Not on CISA’s KEV catalogue. EPSS 0.0014 (4th percentile) on 18 November 2026 |
| Who is exposed | Only applications that pass a non-NULL stack of their own to one of the four functions and keep using it after a failed read; the project expects very few do. OpenSSL’s own callers, including the TLS CA-loading code, always pass NULL and are safe. FIPS module: not affected |
| Published | CVE record 17 November 2026, reported 11 September 2026 by Filipe Casal (Trail of Bits) in collaboration with OpenAI; this page built 30 November 2026, last updated 30 November 2026 |
What it is
PEM_X509_INFO_read_bio_ex() walks a PEM file and appends an X509_INFO entry for each certificate, CRL or private key it finds to a stack. The caller may pass NULL, in which case the function creates the stack, or an existing stack, in which case the function must add to it and leave the earlier entries alone. The advisory says that on failure the function frees every entry in the stack, both those that were there before the call and those it added, without removing them, so the stack keeps pointers to freed memory. The failure can occur at any point, even before an entry is added, and a single PEM item with invalid content is enough; the same happens if the passed stack was empty, since entries added before the failure are freed but stay in it.
An application that then reads or frees the stack uses memory that has already been freed, which can crash it or, in principle, corrupt memory. The reason the project rates this Low is the precondition: an attacker can supply malformed PEM, but cannot make an application pass an existing stack, and OpenSSL never does so itself. When the stack is NULL the function frees only the entries it created, which is safe. The three fix commits named in the record (c57a5ccf, 0486dfad, c8f6d04f) could not be read on 30 November because GitHub rate-limited the requests, so the description here is the advisory’s, not the diff’s.
The scores disagree more than usual. CISA’s analyst scores a local attacker with full confidentiality and availability impact, 7.7, which is what puts this page on the site; Red Hat scores a remote attacker with high complexity and a limited availability impact, 3.7, and its statement rests on the same precondition the advisory gives. Both are in the box; the practical reading is the project’s own Low unless you know your code passes a stack.
Who is affected on Linux
Each row is what the distribution’s own security tracker said on 30 November 2026; the link in the row is the tracker page, which will be newer than this one.
| Distribution | Status | Fixed package |
|---|---|---|
| Debian bookworm | Vulnerable | none yet (openssl 3.0.22-1~deb12u2 in bookworm-security is still affected) |
| Debian trixie | Vulnerable, postponed | “fix along with future update” (3.5.9-1~deb13u1 affected) |
| Debian forky, sid | Vulnerable | 3.6.5-1, unfixed; no DSA |
| Ubuntu | Tracker unreachable | the page refused automated readers on 30 November 2026; check the link |
| RHEL, Rocky, Alma, CentOS Stream | Low; RHEL 9 and 10 Affected, no erratum | RHEL 8 and the compat-openssl packages “Fix deferred”; Red Hat Hardened Images fixed by RHSA-2026:102256 and RHSA-2026:102273 (23 November) |
| SUSE / openSUSE | moderate, Pending (bug 1290596) | openssl-3, openssl-1_1 and openssl-1_0_0 packages listed as Affected across SLE; no update yet |
| Alpine, Arch, Fedora, others | Not consulted | fixed once the package is at 4.1.1, 4.0.4 or 3.5.10, or carries the distribution’s backport |
How to check
Two questions: which OpenSSL is installed, and does anything on the host import the vulnerable functions at all. The second is the one that matters, since a host with no importer has no exposure whatever the library version.
# 1. Library version (affected: 4.1.0, 4.0.0-4.0.3, 3.5.0-3.5.9, 3.0.x, 1.1.1, 1.0.2)
openssl version
dpkg -l 'libssl*' 2>/dev/null | grep '^ii' || rpm -q openssl-libs openssl
# 2. Which installed binaries and libraries import PEM_X509_INFO_read* ? (the only way to be exposed)
for f in /usr/bin/* /usr/sbin/* /usr/lib/*/*.so* /usr/lib64/*.so* /usr/local/lib/*.so*; do
nm -D "$f" 2>/dev/null | grep -q ' U PEM_X509_INFO_read' && echo "$f"
done 2>/dev/null | sort -u
# 3. Source-level check for code you build yourself: a non-NULL first argument is the precondition
grep -rn 'PEM_X509_INFO_read' --include='*.c' --include='*.cc' --include='*.cpp' /path/to/sourceIf step 2 prints nothing, no program on the host calls the family and the bug cannot be reached; most servers will land here, because OpenSSL’s own TLS code does not import the function through this path. If it prints a binary, the question becomes whether that program passes an existing stack and reuses it after a failure, which only its source (step 3) or its maintainer can answer; the advisory’s expectation is that very few do. The openssl command-line tool is not a caller that passes a stack.
How to fix it
Install the fixed OpenSSL when it ships and restart every process that has the library loaded; a long-running daemon keeps the old copy in memory until it is restarted. On 30 November the fixed releases are scheduled, not published, and no distribution has issued a package, so the upgrade step is a date to watch rather than a command to run today.
# Debian / Ubuntu (when the package lands)
sudo apt update && sudo apt install --only-upgrade libssl3t64 libssl3 openssl 2>/dev/null; sudo apt install --only-upgrade openssl
# RHEL / Rocky / Alma (when the erratum lands)
sudo dnf update openssl openssl-libs
# SUSE / openSUSE (when the update ships)
sudo zypper patch
# Then find what still has the old library mapped and restart it
sudo grep -l 'libssl\|libcrypto' /proc/[0-9]*/maps 2>/dev/null | cut -d/ -f3 | sort -u | xargs -r ps -o pid,comm -pFor code you maintain, Red Hat’s mitigation is the complete one and needs no new library: pass NULL to the PEM_X509_INFO_read functions and use the stack they return, and if historical code passes its own stack, discard that stack after any failed read rather than reading or freeing it. Do not try to “fix” this by freeing the stack with sk_X509_INFO_pop_free() after a failure; that is the double free the bug produces.
/* Safe pattern: let OpenSSL own the stack, and treat a failure as losing everything read so far */
STACK_OF(X509_INFO) *infos = PEM_X509_INFO_read_bio_ex(bio, NULL, NULL, NULL, libctx, propq);
if (infos == NULL) {
/* nothing to free: entries created before the failure were released by OpenSSL */
return -1;
}
/* ... use infos ... */
sk_X509_INFO_pop_free(infos, X509_INFO_free);Sources
- CVE-2026-107493 at CVE.org — the OpenSSL CNA record with the full description and the affected ranges (published 17 November 2026)
- OpenSSL security advisory of 17 November 2026 — the Low rating, the reporter and fixer credits, the fixed versions and their 1 December release date, and the two companion CVEs (CVE-2026-35190, CVE-2026-124709)
- Fix commits c57a5ccf, 0486dfad and c8f6d04f — named in the record; GitHub rate-limited the requests on 30 November, so the diffs were not read for this page
- NVD entry — Awaiting Analysis on 30 November 2026; carries CISA’s 7.7
- Distribution trackers: Debian · Ubuntu · Red Hat (with the mitigation text) · SUSE
- EPSS score for this CVE, 18 November 2026
Related reading
- CVE-2026-124709: OpenSSL QUIC server memory retention (forthcoming) — the second CVE in the same 17 November advisory
- CVE-2026-35190: OpenSSL TLS 1.3 key-share out-of-bounds read (forthcoming) — the third CVE in that advisory
- CVE-2026-137992: libexpat duplicate ATTLIST denial of service — another library flaw published before its fixed release, and the same wait-and-watch posture
- The Half of Patching That Happens After the Patch is Installed — why a new libssl on disk changes nothing for a daemon that has not restarted
- Security advisories — every CVE page on this site, newest first, with the component index
This advisory page was assembled from the primary sources listed above on 30 November 2026 and is updated when they change. The facts are theirs; the checks and the ordering are ours. If a row in the distribution table is out of date, the tracker link in that row is the current word.

