Another day, another collection of security vulnerabilities making headlines. This time, the spotlight is on NGINX, one of the most widely deployed web servers and reverse proxies on the Internet.
Dubbed NGINX2Root, the disclosure describes five vulnerabilities that, under specific circumstances, could allow unauthenticated attackers to execute arbitrary code on vulnerable servers. In the worst-case scenario, researchers also demonstrated how an NGINX vulnerability could be chained with a separate Linux kernel vulnerability to obtain root privileges on the underlying host.
Naturally, this raises an important question: does running NGINX automatically mean you're vulnerable?
Not quite. As with most security disclosures, the actual risk depends on the software version, compiled modules, enabled protocols and, perhaps most importantly, the active configuration.
Let's take a closer look.
What is NGINX2Root?
NGINX2Root is the name given by security researchers at Xint (Theori) to a collection of five NGINX vulnerabilities.
The vulnerabilities affect different parts of NGINX, including HTTP/2, HTTP/3, upstream proxying, DNS resolution and mail proxy functionality.
The most concerning scenario involves remote code execution (RCE), potentially allowing an unauthenticated attacker to execute commands with the privileges of the NGINX worker process.
That does not necessarily mean an attacker immediately obtains root access.
NGINX workers normally run with restricted privileges. However, researchers also demonstrated how a separate Linux kernel vulnerability involving SCTP could potentially be chained with an NGINX exploit to escalate privileges to root on the host.
In other words, there are two distinct security problems involved:
- An NGINX vulnerability that potentially provides an initial foothold.
- A separate Linux kernel vulnerability that could enable privilege escalation.
The distinction matters because fixing one does not automatically fix the other.
The five NGINX vulnerabilities explained
The NGINX2Root disclosure covers five CVEs:
| CVE | Affected functionality | First affected release |
|---|---|---|
| CVE-2026-123007 | HTTP/2 flow control | 1.9.5 |
| CVE-2026-123633 | HTTP/2 and upstream proxying | 1.19.7 |
| CVE-2026-123634 | DNS resolver and proxy subrequests | 0.6.18 (vendor range) |
| CVE-2026-121810 | HTTP/3 (QUIC) and upstream proxying | 1.25.0 |
| CVE-2026-113425 | Mail proxy authentication | 0.5.33 (vendor range) |
The first affected releases for CVE-2026-123007, CVE-2026-123633 and CVE-2026-121810 correspond to the affected code paths identified by the researchers and the vendor's published ranges.
For the other two vulnerabilities, there is an important distinction between the vendor's broader vulnerable-version ranges and the first release in which Xint demonstrated its particular test configuration:
- CVE-2026-123634: the vendor lists versions 0.6.18 through 1.31.8 as vulnerable. Xint identified 1.13.4 as the first affected release for its tested configuration.
- CVE-2026-113425: the vendor lists versions 0.5.33 through 1.31.8 as vulnerable. Xint identified 0.5.15 as the first affected release for its tested configuration.
This distinction is important when assessing older installations. A version number outside one researcher's tested configuration range should not automatically be interpreted as proof that the vendor considers it unaffected.
Not all five vulnerabilities affect every NGINX installation. Each has its own prerequisites, and the presence of a compiled module does not necessarily mean the corresponding functionality is enabled.
How to check whether your NGINX installation is affected
Before changing anything, establish what is actually running.
1. Check the installed NGINX version and build options
Run:
nginx -v 2>&1
nginx -V 2>&1
The first command displays the installed version. The second provides additional build information, including compiled modules and configuration options.
For example, look for:
--with-http_v2_module
This indicates that HTTP/2 support was compiled into the binary. It does not necessarily mean HTTP/2 is enabled in the running configuration.
Also remember that Linux distributions sometimes backport security fixes without changing the upstream version number. When using distribution packages, check the complete package revision and the corresponding security advisories rather than relying exclusively on nginx -v.
2. Check whether HTTP/2 is enabled
On versions supporting the configuration dump option, inspect the active configuration:
sudo nginx -T 2>&1 | grep -nE 'listen.*http2|http2 on'
Depending on the NGINX version, HTTP/2 may be enabled through a listen directive or a separate http2 directive.
Older NGINX releases may not support the -T option. In that case, search the configuration files directly:
sudo grep -RniE 'http2' /etc/nginx/
Check the main configuration and all included files. Review matching lines in context rather than treating every occurrence as an active directive.
You can also test whether the publicly accessible server negotiates HTTP/2:
openssl s_client \\
-connect example.com:443 \\
-servername example.com \\
-alpn h2 </dev/null 2>&1 | grep -E 'ALPN protocol|No ALPN'
Replace example.com with your domain.
If the output contains:
ALPN protocol: h2
The server negotiated HTTP/2.
If it reports that no ALPN protocol was negotiated, HTTP/2 was not negotiated on that connection.
One important consideration: if another reverse proxy or CDN sits in front of NGINX, this test checks the publicly exposed endpoint, not necessarily the protocol configuration between the proxy and the backend.
3. Check HTTP/3 and QUIC
If your NGINX installation supports HTTP/3, inspect the configuration for:
quic
http3
Alt-Svc
On newer versions, you can use:
sudo nginx -T 2>&1 | grep -niE 'quic|http3|Alt-Svc'
For older versions, use a recursive configuration search:
sudo grep -RniE 'quic|http3|Alt-Svc' /etc/nginx/
HTTP/3 uses QUIC over UDP, so it is worth checking both the configuration and the actual listening sockets.
4. Inspect the proxy and resolver configuration
Some of the disclosed vulnerabilities depend on specific combinations of NGINX directives.
Inspect the configuration for:
sudo grep -RniE \\
'resolver|proxy_pass|mirror|mirror_request_body|auth_http|proxy on|ssi|ssi_types' \\
/etc/nginx/
Pay particular attention to:
- Dynamic proxy destinations using variables in proxy_pass.
- DNS resolution through the resolver directive.
- Mirror functionality and generated subrequests.
- Server Side Includes (SSI), which can also generate subrequests.
- Mail proxy authentication through auth_http.
For CVE-2026-123634, Xint's tested configuration combined a resolver, a variable-based proxy_pass destination and mirror functionality with mirror_request_body off.
However, other NGINX features capable of generating subrequests, including SSI, may also reach the vulnerable code path. Simply disabling mirror is therefore not necessarily sufficient.
For CVE-2026-123633 and CVE-2026-121810, also check whether requests are forwarded to upstream servers through directives such as proxy_pass, fastcgi_pass or grpc_pass.
Finding one of these directives does not automatically establish exposure. The surrounding configuration and the combination of features matter.
5. Check the mail proxy configuration
If you use NGINX for IMAP, POP3 or SMTP proxying, inspect the mail configuration separately.
CVE-2026-113425 affects the mail proxy authentication path involving auth_http. Xint's demonstrated configuration also used proxy on.
The presence of a compiled mail module alone does not mean the mail proxy functionality is active.
Temporary mitigation before upgrading
If your installation is affected and an immediate upgrade is not possible, reducing the exposed attack surface is an important first step.
However, temporary mitigations should not be mistaken for permanent fixes.
Disable HTTP/2 where applicable
If HTTP/2 is enabled and the corresponding vulnerabilities apply, disabling it can reduce exposure to:
- CVE-2026-123007
- CVE-2026-123633
Depending on your NGINX version, remove the http2 parameter from the listen directive or disable HTTP/2 through the separate http2 directive.
For example:
listen 443 ssl;
Then validate and reload the configuration:
sudo nginx -t
sudo systemctl reload nginx
HTTP/1.1 should continue to work normally for conventional websites.
Important: Disabling HTTP/2 does not mitigate the HTTP/3, resolver or mail proxy vulnerabilities.
Disable HTTP/3 if enabled
If HTTP/3 is configured, temporarily disable the QUIC listeners and HTTP/3 functionality.
This addresses the HTTP/3 attack path associated with CVE-2026-121810.
Remember that HTTP/3 uses UDP, so checking only TCP port 443 is insufficient.
Review dynamic proxy configurations
If your configuration combines dynamic proxy destinations, DNS resolution and mirror or other subrequest-generating functionality, review whether those features can be simplified or temporarily removed.
Where appropriate, using explicitly defined upstream servers instead of request-time dynamic resolution may reduce exposure.
Do not assume that removing a single directive automatically eliminates every possible path to the vulnerable code.
Restrict mail proxy access
If you use the NGINX mail proxy, restrict access to trusted networks or temporarily disable the affected functionality if it is not essential.
Update the Linux kernel separately
The kernel privilege-escalation issue is independent of the NGINX vulnerabilities.
Updating NGINX alone does not address a vulnerable kernel. Likewise, updating the kernel does not repair vulnerable NGINX code.
Both components need to be assessed and patched independently.
Which NGINX versions contain the fixes?
According to the official NGINX security advisories, the patched Open Source releases are:
- NGINX Stable: 1.30.7
- NGINX Mainline: 1.31.9
NGINX Plus has separate patched releases depending on the release branch.
If you're using Debian, Ubuntu or another distribution that maintains its own NGINX packages, consult its security tracker for the relevant package updates. A distribution may backport a security fix without adopting the latest upstream version.
Also consider products that bundle or embed NGINX, such as OpenResty and ingress controllers. Their patch status must be checked against the corresponding product vendor's advisories.
After updating, make sure the running NGINX processes are actually using the patched executable. A configuration reload alone does not replace an already running executable.
What about checking for a possible compromise?
If your server was publicly exposed and potentially vulnerable, patching is only part of the response.
It is also worth reviewing system logs, process activity and available crash reports.
For example:
# Inspect NGINX processes
ps -eo uid,user,pid,ppid,args | grep '[n]ginx'
# Look for abnormal worker exits
sudo grep -Ei 'segfault|signal 11|worker process.*exited' \\
/var/log/nginx/error.log
# Inspect available core dumps
sudo coredumpctl list nginx
Unexpected child processes, suspicious commands or unusual activity under the NGINX worker account deserve investigation.
However, normal access logs cannot conclusively establish that an attack did not occur. In particular, HTTP/2 control frames such as WINDOW_UPDATE and RST_STREAM are not necessarily recorded as ordinary HTTP requests in access logs.
Worker crashes can indicate exploitation attempts, but they are not proof of successful remote code execution.
If compromise is suspected, preserve relevant evidence and investigate the host rather than simply restarting services and assuming the problem is solved.
If host compromise is confirmed, patching alone is insufficient. The system should be investigated and recovered from a trusted image, with potentially exposed credentials and secrets rotated.
The takeaway: don't patch blindly, assess your exposure
NGINX2Root is a good reminder that a critical vulnerability disclosure does not automatically mean every installation is vulnerable.
The correct approach is to establish:
- Which software version and distribution package are installed?
- Which modules were compiled into the binary?
- Which protocols and services are actually enabled?
- Does the active configuration contain the combinations required for exploitation?
- Are there independent kernel vulnerabilities that could make an initial compromise significantly worse?
Disabling an affected feature can be a useful temporary measure, but upgrading to a patched release remains the proper solution.
And perhaps the most important lesson is a familiar one: knowing what is actually running on your server is considerably more useful than reacting to vulnerability headlines alone.
Further reading
- NGINX Security Advisories
- Xint: NGINX2Root technical disclosure
- NGINX2Root: Research FAQ and exposure checks
- Tenable: NGINX2Root FAQ
Security information and affected-version details should always be checked against the latest vendor and distribution advisories before applying changes.
- Log in to post comments
- 9 views