# CVE-2026-72897: Out-of-Bounds Access After SSL\_set\_SSL\_CTX() During a Handshake

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

- **Severity:** HIGH 7.5
- **CVSS:** 7.5 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.40% (percentile 25, 2026-11-28)
- **CWE:** CWE-787
- **Published:** 2026-09-29T15:32:18.277Z
- **Modified:** 2026-10-08T01:19:41.567Z

## Who should check

- Anyone running OpenSSL \>= 4.0.0, \< 4.0.3; \>= 3.6.0, \< 3.6.5; \>= 3.5.0, \< 3.5.9; \>= 3.4.0, \< 3.4.8

## Description

Issue summary: A TLS server that calls SSL\_set\_SSL\_CTX() to switch a
connection to a different SSL\_CTX part way through a handshake may access
memory beyond the end of an internal array if the replacement context knows
about more provider signature algorithms than the context the connection was
created from. Applications which never call SSL\_set\_SSL\_CTX() are not
affected.

Impact summary: A remote peer may be able to cause a small out-of-bounds
read, and in some circumstances a fixed-value out-of-bounds write, on the
server heap. This may lead to a Denial of Service.

CWE: CWE-787: Out-of-bounds Write

Description: A TLS connection records how many certificate slots it has
when it is created, taken from the SSL\_CTX that created it: the built-in
certificate types plus one slot for each provider TLS-SIGALG entry that
context was aware of. That count sizes an internal array of per-slot
certificate validity flags.

An application may replace a connection's SSL\_CTX part way through the
handshake by calling SSL\_set\_SSL\_CTX(), most commonly from a servername
callback in order to serve a different virtual host. Doing so did not
refresh the recorded count. A provider signature algorithm's slot index is
its position in the list of whichever context resolves it, so if the
replacement context is aware of more of them than the original, an
algorithm offered by the peer can resolve to an index beyond the end of the
array. Processing the peer's signature algorithms then reads one four byte
word past the end for each such algorithm and, where the word read is zero,
writes a fixed value over it. A peer offering many of them can corrupt heap
metadata and abort the process.

Only provider signature algorithms which occupy one of the excess slots,
and which the server also has configured, have this effect. Codepoints the
replacement context does not recognise are discarded without being resolved
to a slot, and provider signature algorithms are usable only from TLS 1.3.

The two contexts must therefore be aware of different numbers of provider
signature algorithms, which requires separate library contexts, a provider
loaded between the two being created, or providers which differ in what
they advertise - in 4.0, for example, the default provider advertises SM2
where the FIPS provider does not. A deployment meeting the condition is
also unable to negotiate the affected algorithms with legitimate clients,
since the same stale count hides the corresponding certificates, so the
misconfiguration is likely to be noticed. For that reason, and because the
configuration is not the default, this issue has been assessed as Low
severity.

FIPS impact: no
No FIPS modules are affected by this issue as the affected code is outside
the OpenSSL FIPS module boundary.

## Affected and fixed versions

- OpenSSL: \>= 4.0.0, \< 4.0.3; \>= 3.6.0, \< 3.6.5; \>= 3.5.0, \< 3.5.9; \>= 3.4.0, \< 3.4.8 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2026-72897.md
Affected: OpenSSL >= 4.0.0, < 4.0.3; >= 3.6.0, < 3.6.5; >= 3.5.0, < 3.5.9; >= 3.4.0, < 3.4.8
Fixed in: OpenSSL 4.0.3, OpenSSL 3.6.5, OpenSSL 3.5.9, OpenSSL 3.4.8

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

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

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

High: CVSS 7.5 (v3.1, scored by CNA). Remote, no login needed.

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

OpenSSL \>= 4.0.0, \< 4.0.3; \>= 3.6.0, \< 3.6.5; \>= 3.5.0, \< 3.5.9; \>= 3.4.0, \< 3.4.8.

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

Yes. Fixed in OpenSSL 4.0.3, OpenSSL 3.6.5, OpenSSL 3.5.9, OpenSSL 3.4.8. Upgrade OpenSSL to 3.4.8 or later.

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

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/20260929.txt>
- patch: <https://github.com/openssl/openssl/commit/e87ed26b298a74d8ba61a53e9c7bcd1acac6b814>
- patch: <https://github.com/openssl/openssl/commit/9c54d209486f6b1ad79fe2179c40f13200fa4f61>
- patch: <https://github.com/openssl/openssl/commit/4135f553c9d3ba4a09fe752f5d30af2a6a092b2e>
- patch: <https://github.com/openssl/openssl/commit/00646e5085a0d12d29e0d2f9b9bc5f7111a50922>

## 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-72897>

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