CVE-2025-23419
NoneCVSS
—
EPSS
2.8%
Published
Feb 5, 2025
CISA due date
—
Cloudanix analysis
A configuration issue in nginx can let attackers reuse a previous secure connection to skip required certificate checks and reach protected services.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Low
- Impact
- Privilege Gain
- Component
- Network Service
- Class
- Authentication Bypass
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Session resumption via TLS tickets or SSL cache in a default server block allows an attacker to skip client certificate checks on other virtual servers sharing the same IP:port combination.
Why it matters to the business
Organizations running nginx with multiple HTTPS virtual hosts on the same address may allow unauthorized clients to access protected services that require certificate authentication, increasing exposure of sensitive applications and data.
How an attack unfolds
An attacker first establishes a session with the default server that enforces client certificates, obtains a valid session ticket or cache entry, then reuses that session state against another server block on the same IP:port to bypass its certificate requirement.
How to fix it
Upgrade nginx to the commit ecb809305e54ed15be9f620d56b19ff4e4be7db5 or later; disable session tickets and SSL session cache on the default server if an immediate upgrade is not possible.
How to confirm the fix worked
Review nginx configuration for ssl_session_ticket_key and ssl_session_cache directives on the default server, then test client certificate enforcement after applying the fixed commit by attempting resumption from a prior authenticated session.
Typical attack path
- Identify nginx instances with multiple server blocks on shared IP:port and client certificate authentication enabled on the default server.
- Connect to the default server and complete a TLS handshake that satisfies its certificate check to obtain a session ticket or cached session.
- Reuse the session ticket or cached session when connecting to a non-default server block on the same address.
- Access resources on the target server without presenting a valid client certificate.
How to detect it
Search web server access logs for TLS session resumption indicators (such as reused session IDs or tickets) followed by successful requests to protected locations without corresponding certificate validation events.
What your security team should do
- Apply the fixed commit ecb809305e54ed15be9f620d56b19ff4e4be7db5 immediately on all affected nginx instances.
- Audit nginx configurations to ensure client certificate authentication is not reliant on the default server when session resumption is enabled.
- Monitor for any EPSS increase and prepare to accelerate patching if exploitation activity emerges.
The record
When multiple server blocks are configured to share the same IP address and port, an attacker can use session resumption to bypass client certificate authentication requirements on these servers. This vulnerability arises when TLS Session Tickets https://nginx.org/en/docs/http/ngx_http_ssl_module.html#ssl_session_ticket_key are used and/or the SSL session cache https://nginx.org/en/docs/http/ngx_http_ssl_module.html#ssl_session_cache are used in the default server and the default server is performing client certificate authentication. Note: Software versions which have reached End of Technical Support (EoTS) are not evaluated.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Alpine:v3.20 | nginx | 0 | 1.26.3-r0 |
| Alpine:v3.21 | nginx | 0 | 1.26.3-r0 |
| Alpine:v3.22 | nginx | 0 | 1.26.3-r0 |
| Bitnami | nginx | 1.11.4 | 1.26.3 |
| Bitnami | nginx | 1.27.0 | 1.27.4 |
| Bitnami | nginx-gateway | 1.11.4 | 1.26.3 |
| Chainguard | ingress-nginx-controller-1.13 | 0 | 1.13.8-r0 |
| Chainguard | ingress-nginx-controller-1.14 | 0 | 1.14.0-r0 |
| Chainguard | ingress-nginx-controller-1.15 | 0 | 1.15.0-r0 |
| Chainguard | ingress-nginx-controller-fips-1.13 | 0 | 1.13.0-r0 |
| Chainguard | ingress-nginx-controller-fips-1.14 | 0 | 1.14.0-r0 |
| Debian:11 | nginx | 0 | No fix |
| Debian:11 | nginx | 0 | 1.18.0-6.1+deb11u4 |
| Debian:12 | nginx | 0 | No fix |
| Debian:13 | nginx | 0 | 1.26.3-2 |
| Mageia:9 | nginx | 0 | 1.26.3-1.mga9 |
| Wolfi | ingress-nginx-controller-1.13 | 0 | 1.13.8-r0 |
| Wolfi | ingress-nginx-controller-1.14 | 0 | 1.14.0-r0 |
| Wolfi | ingress-nginx-controller-1.15 | 0 | 1.15.0-r0 |
| openSUSE:Tumbleweed | nginx | 0 | 1.27.4-1.1 |
Related vulnerabilities
- CVE-2017-7529 Nginx versions since 0.5.6 up to and including 1.13.2 are vulnerable to integer overflow… Also affects nginx
- CVE-2025-53859 NGINX Open Source and NGINX Plus have a vulnerability in the ngx_mail_smtp_module that… Also affects nginx
- CVE-2016-1247 The nginx package before 1.6.2-5+deb8u3 on Debian jessie, the nginx packages before… Also affects nginx
- CVE-2016-4450 os/unix/ngx_files.c in nginx before 1.10.1 and 1.11.x before 1.11.1 allows remote… Also affects nginx
- CVE-2016-0742 The resolver in nginx before 1.8.1 and 1.9.x before 1.9.10 allows remote attackers to… Also affects nginx
- CVE-2014-3616 nginx 0.5.6 through 1.7.4, when using the same shared ssl_session_cache or… Also affects nginx
- CVE-2013-4547 nginx 0.8.41 through 1.4.3 and 1.5.x before 1.5.7 allows remote attackers to bypass… Also affects nginx
- CVE-2013-0337 The default configuration of nginx, possibly 1.3.13 and earlier, uses world-readable… Also affects nginx