Vulnerabilities
7 min readUpdatedCVE-2025-23419: nginx TLS session resumption bypass
Quick answer
CVE-2025-23419 lets a client reuse a TLS 1.3 session from one nginx virtual server to bypass client-certificate authentication on another that shares the same address and port. It only matters under a specific configuration: a shared session cache or session tickets at the default server, with client-certificate verification enabled. Disclosed on 5 February 2025, it is fixed in nginx 1.27.4 and 1.26.3, with distribution backports into older packages. It is a medium-severity authentication bypass, not a remote-code or denial-of-service flaw.
At a glance
medium severity- Identifier
- CVE-2025-23419
- Also known as
- nginx TLS session resumption client-certificate bypass
- Product
- nginx (open source and NGINX Plus), built with OpenSSL
- Affected
- nginx open source 1.11.4 - 1.27.3; NGINX Plus R28 - R33 P1
- Fixed in
- nginx 1.27.4 (mainline); nginx 1.26.3 (stable); NGINX Plus R33 P2, R32 P2
- CVSS
- 5.3 (CVSS 4.0) / 4.3 (CVSS 3.1), per F5
- Disclosed
- Known exploited (CISA KEV)
- Not listed
Patch available since February 2025. Medium severity authentication bypass. Not listed in CISA KEV as of October 2026.
01What is CVE-2025-23419?
CVE-2025-23419 is a client-certificate authentication bypass in nginx built with OpenSSL. When several server blocks share the same listening address and port, and session resumption is enabled, an attacker can establish a TLS session against a permissive virtual server and then resume it while sending a Server Name Indication (SNI) for a protected virtual server, skipping the mutual-TLS check that the protected server requires.
It is an authorisation flaw, classified as CWE-863, not a memory-safety or denial-of-service bug. F5 rated it medium severity (CVSS 4.0 base 5.3; CVSS 3.1 base 4.3). The impact is limited but real: on an affected configuration, a client certificate that should be required can be skipped by reusing a session that was negotiated elsewhere.
It was disclosed by F5 on 5 February 2025. The important thing to understand is that it depends on a precise configuration, so many nginx deployments are not affected at all. The preconditions are listed next.
02Who is affected, and under what configuration?
Affected versions are nginx open source 1.11.4 through 1.27.3, and nginx Plus R28 through R33 P1. But version alone is not enough; the configuration has to match. The vulnerability needs client-certificate authentication on a virtual server that shares its listening socket with another, and session resumption enabled on the default server so a session from one context can be presented to another.
In nginx, session resumption state belongs to the default server for a given address and port. If that default server enables a shared session cache or session tickets and also verifies client certificates, a session negotiated against a less-restrictive name on the same socket can be resumed against the protected name. TLS 1.3 is the trigger: in OpenSSL, resumption always happens in the default SSL context before the SNI callback runs, and with TLS 1.3 the server name reported on a resumed handshake is the one sent in that handshake, which can differ from the name the session was first negotiated for.
- nginx open source 1.11.4 - 1.27.3, or nginx Plus R28 - R33 P1
- Two or more server blocks on the same listen address and port
- ssl_session_cache or ssl_session_tickets enabled on the default server
- ssl_verify_client requiring a client certificate on the shared socket
- TLS 1.3 negotiated, with nginx built against OpenSSL
# default server for the socket: it decides resumption for every vhost here
server {
listen 443 ssl default_server;
ssl_session_cache shared:SSL:10m; # shared resumption state ...
ssl_session_tickets on; # ... and/or tickets
ssl_verify_client on; # ... with client-cert auth
}
server {
listen 443 ssl; # same address and port
server_name admin.example.com;
ssl_client_certificate ca.crt;
ssl_verify_client on; # the check that can be bypassed
}03How does the bypass work, conceptually?
TLS session resumption lets a returning client skip the full handshake by presenting a ticket or cache reference from an earlier session. That is a performance feature, and one of the standard defences against a TLS handshake flood. The flaw is about which virtual server's rules apply to a resumed session.
In OpenSSL, resumption is handled in the default SSL context before nginx's SNI callback chooses the virtual server. For TLS 1.3 specifically, the server name is negotiated on every handshake, and the value available on resumption can be the one from the resumption request rather than the original session. An nginx restriction from 2013 already refuses requests whose Host differs from the negotiated server name when client certificates are verified, but on a TLS 1.3 resumption the negotiated name is simply the new one, so that comparison passes and the certificate check can be skipped.
The upstream fix closes exactly this gap. When client-certificate verification is enabled, nginx now compares the server name of the resumed session against the one being requested and rejects the handshake if they differ, in both the HTTP and stream modules. This page describes the mechanism only and contains no steps to exploit it.
04How do I check whether I am affected?
Check the version, then the configuration. If no server block uses ssl_verify_client, you are not affected regardless of version. If client-certificate authentication is in use, confirm whether the sockets are shared and whether session resumption is enabled. The commands below read configuration and version only.
# 1. running version and distro package
nginx -v
dpkg -l | grep -E '^ii\s+nginx' # Debian/Ubuntu
# 2. dump the full merged config and audit it
nginx -T 2>/dev/null > /tmp/nginx-full.conf
# is client-cert auth used anywhere?
grep -nE '^\s*ssl_verify_client\s+(on|optional)' /tmp/nginx-full.conf
# is session resumption enabled (cache or tickets)?
grep -nE '^\s*ssl_session_(cache|tickets)\b' /tmp/nginx-full.conf
# which server blocks share a listen address and port?
grep -nE '^\s*listen\b' /tmp/nginx-full.conf05How do I fix or mitigate it?
The fix is to upgrade. nginx 1.27.4 (mainline) and 1.26.3 (stable) contain the corrected SNI handling; nginx Plus users should move to R33 P2 or R32 P2, both released on 5 February 2025. Restart nginx after upgrading. The fix adds a check that rejects a resumed handshake whose server name differs from the requested one when client-certificate verification is enabled.
Distribution packages carry the fix under their own version numbers, so match the package, not the upstream number. On Debian the fix was backported into the stable nginx packages; on Ubuntu it shipped in USN-7285-1 and, for 24.04, USN-7285-2. The table lists the fixed package versions.
If you genuinely cannot upgrade yet, disable session resumption on the affected socket so there is no session to replay. Setting ssl_session_tickets off and ssl_session_cache off removes the resumption state, so clients can no longer resume sessions on that socket. This costs a full handshake on every connection, so it is a stopgap until you patch.
| Platform | Vulnerable | Fixed in |
|---|---|---|
| nginx open source | 1.11.4 - 1.27.3 | 1.27.4, 1.26.3 |
| nginx Plus | R28 - R33 P1 | R33 P2, R32 P2 |
| Debian bookworm | nginx < 1.22.1-9+deb12u1 | 1.22.1-9+deb12u1 (backport) |
| Debian bullseye (LTS) | nginx < 1.18.0-6.1+deb11u4 | 1.18.0-6.1+deb11u4 (DLA-4091-1) |
| Ubuntu 24.04 noble | nginx < 1.24.0-2ubuntu7.3 | 1.24.0-2ubuntu7.3 (USN-7285-2) |
| Ubuntu 22.04 jammy | nginx < 1.18.0-6ubuntu14.6 | 1.18.0-6ubuntu14.6 (USN-7285-1) |
server {
listen 443 ssl default_server;
ssl_session_cache off; # no shared resumption state
ssl_session_tickets off; # no tickets to replay
ssl_verify_client on;
}06What can a reverse proxy do about it, and what can it not?
Be clear about the limit. CVE-2025-23419 is a flaw in how a specific nginx configuration handles TLS resumption and client certificates. If the vulnerable nginx is the server terminating TLS and verifying client certificates, that nginx has to be patched; no amount of filtering in front changes how it resumes its own sessions.
Where a separate tier helps is architectural. If a front tier terminates client TLS, performs its own mutual-TLS check and forwards verified requests to the origin, the origin's nginx is no longer the mTLS boundary, and this bug on the origin stops being reachable, provided clients cannot connect to the origin directly. That is a reason to keep clients off the origin address. But a proxy does not retrofit the fix onto an exposed, unpatched origin. Patching is the cure; the proxy reduces who can reach the vulnerable code.
If you are patching nginx for this, review its later advisories at the same time: the NGINX Rift rewrite overflow, the map heap overflow and the October 2026 alias/rewrite release. Hosts still on 1.18.0 packages can use the nginx 1.18.0 vulnerability triage.
| Measure | Closes the bypass? | Notes |
|---|---|---|
| Upgrade to nginx 1.27.4 / 1.26.3 (or distro backport) | Yes | The complete fix |
| Disable ssl_session_cache and ssl_session_tickets | Yes (removes resumption) | Stopgap; full handshake every connection |
| Give the mTLS vhost its own address and port | Yes | No shared socket, no cross-vhost resumption |
| Front tier that performs its own mTLS | Helps | Origin must be patched or unreachable directly |
| Blocking source IPs | No | It is a protocol/config flaw, not a traffic pattern |
07Timeline
| Date | Event |
|---|---|
| 22 Jan 2025 | Upstream fix authored (SNI restriction for TLS 1.3 cross-SNI resumption); published with the releases |
| 5 Feb 2025 | F5 advisory published; nginx 1.27.4 and 1.26.3 released |
| 5 Feb 2025 | nginx Plus R33 P2 and R32 P2 released with the fix |
| 24 Feb 2025 | Ubuntu USN-7285-1 backports the fix |
| 25 Mar 2025 | Debian LTS DLA-4091-1 for bullseye |
| 1 Apr 2025 | Ubuntu USN-7285-2 for 24.04 noble |
Questions
Frequently asked questions
- 01Is my nginx affected by CVE-2025-23419?
- Only if a specific configuration is present. You need nginx 1.11.4 to 1.27.3 (or Plus R28 to R33 P1), two or more server blocks sharing one address and port, session resumption enabled on the default server via ssl_session_cache or ssl_session_tickets, and client-certificate verification with ssl_verify_client, over TLS 1.3. If you do not use client certificates, or the mTLS server has its own address and port, you are not affected.
- 02Which versions fix CVE-2025-23419?
- nginx open source 1.27.4 (mainline) and 1.26.3 (stable), and nginx Plus R33 P2 and R32 P2, all released on 5 February 2025. Distribution packages carry the fix under their own numbers, such as Debian bookworm nginx 1.22.1-9+deb12u1 and Ubuntu noble 1.24.0-2ubuntu7.3 (USN-7285-2), so match the package version rather than the upstream number. Restart nginx after upgrading.
- 03How do I mitigate it without upgrading?
- Remove session resumption on the affected socket by setting ssl_session_tickets off and ssl_session_cache off on the default server, so there is no session to replay against a protected virtual server. Alternatively, give the client-certificate virtual server its own address and port so it shares no socket. Both are stopgaps that cost performance; upgrading to a fixed version is the proper fix.
- 04How severe is CVE-2025-23419?
- Medium. F5 rated it CVSS 4.0 base 5.3 and CVSS 3.1 base 4.3, classified as CWE-863, Incorrect Authorization. It is a client-certificate authentication bypass under a specific configuration, not remote code execution or denial of service. The impact is that a client certificate that should be required can be skipped by reusing a TLS 1.3 session negotiated against a different virtual server on the same socket.
- 05Is CVE-2025-23419 in the CISA KEV catalogue?
- No. As of October 2026 it is not listed in the CISA Known Exploited Vulnerabilities catalogue. It requires a particular configuration and only affects deployments that use client-certificate authentication on a shared socket with session resumption, which limits its reach. That is not a reason to delay patching if you run mutual TLS; upgrade to a fixed version and confirm your configuration.
Sources
Sources and verification
The configuration and commands on this page are examples, not a tested recipe. Adapt them to your system and check them before use (nginx -t for nginx).
- 01NVD - CVE-2025-23419 · NVD
- 02nginx security advisory (CVE-2025-23419), oss-security · nginx / openwall
- 03nginx fix commit 46b9f5d (SNI restriction for TLS 1.3 resumption) · nginx GitHub
- 04F5 advisory K000149173 · F5
- 05Debian security tracker - CVE-2025-23419 · Debian
- 06Ubuntu - CVE-2025-23419 (USN-7285-1, USN-7285-2) · Ubuntu
- 07DLA-4091-1: nginx security update (bullseye) · Debian LTS
- 08nginx ngx_http_ssl_module directives (ssl_session_cache, ssl_session_tickets) · nginx.org
Last updated