# CVE-2026-123634: NGINX resolver use-after-free reachable through mirror and SSI

A use-after-free in the NGINX resolver can crash workers and may give code execution on servers that proxy to names built from variables. Not known to be exploited, and no public proof of concept, though Xint says it has working exploits.

- Vendor: F5, NGINX Open Source and NGINX Plus (resolver)
- Severity: CRITICAL (CVSS 4.0 9.2)
- Exploited (CISA KEV): not listed
- EPSS: 17.1% on 2026-11-23
- Public exploit: none reported
- Patch available: yes
- Vendor advisory: K000163925, https://my.f5.com/manage/s/article/K000163925
- Published: 2026-11-18; updated: 2026-11-22
- Page: https://patchtonight.com/cve/CVE-2026-123634/

## Affected and fixed versions

| Affected | Fixed in |
| --- | --- |
| NGINX Open Source 1.31.x (nginx.org lists 0.6.18 and later) | 1.31.9 or later |
| NGINX Open Source 1.30.x | 1.30.7 or later |
| NGINX Plus 37.1.0 | 37.3.0.1 or later |
| NGINX Plus 37.0.0 | 37.0.8.1 or later |
| NGINX Plus R33 | No fixed version listed in the CVE record |
| Siemens Industrial Edge Cloud Device, Device Kit (arm64 and x86-64), Own Device and Virtual Device, all versions | No fix available yet (Siemens SSA-935812) |

## What it is

A use-after-free (CWE-416) in the NGINX **resolver**, the code that looks up DNS names at request time. nginx.org describes it as a use-after-free during response processing in the resolver. It happens when the same name is resolved by a request and a subrequest at the same time. One handler can free a resolver context that the loop waiting on that lookup hasn't processed yet, and the loop then uses freed memory (Xint).

An unauthenticated attacker who can trigger name resolution can:

- **crash a worker process**, which NGINX restarts;
- **corrupt worker memory**;
- **possibly run code** as the worker. The CVE record says this needs ASLR off or bypassed. Xint says it has working exploits for this bug, and it reports remote code execution with worker privileges, without publishing the final steps.

The CVE record scores it 8.1 in CVSS 3.1 and 9.2 in CVSS 4.0. nginx.org rates it "medium". Xint credited it as one of five NGINX bugs it calls NGINX2Root. Per the editor's live lookups, CISA has not listed it in the KEV catalog (catalog 2026.11.20). EPSS, which had no score at first, was 17% on 2026-11-21 (97th percentile), so FIRST rates exploitation as more likely than for most CVEs even though none has been reported. CISA's SSVC data in the CVE record says exploitation: none. We found no public proof of concept and no reports of exploitation.

## Am I affected?

The CVE record says NGINX is exposed when **all** of these are true:

1. NGINX is configured as a **proxy**.
2. The **proxied server name includes variables**, for example `proxy_pass http://$host;`.
3. An **SSI or `mirror` directive** sends a subrequest to a location that resolves the same server name.

Xint's tested setup was a `resolver`, a `proxy_pass` taken from the request, and `mirror` with `mirror_request_body off`, with the main request and the mirror using the same upstream name. Xint says other subrequest features, such as SSI, may also reach the bug. Disabling HTTP/2 does not block it.

**Versions.** nginx.org lists NGINX Open Source 0.6.18 through 1.31.8 as vulnerable. The CVE record lists Plus 37.0.0 to before 37.0.8.1, 37.1.0 to before 37.3.0.1, and all of R33. Xint names 1.13.4 as the first release affected through the mirror path. We did not verify that figure against another source.

Search every included file, not just `nginx.conf`. `nginx -T` prints the full configuration, including includes. Look for `resolver`, `proxy_pass` with a `$variable` in the host, and `mirror` or `ssi on`.

**Siemens.** Siemens SSA-935812 (2026-11-20) lists Industrial Edge Cloud Device, Device Kit, Own Device and Virtual Device, all versions, as affected, with no fix yet. Industrial Edge Hub and the Management products are not affected.

**Not affected:** NGINX Open Source 1.31.9 and later, and 1.30.7 and later. F5 did not evaluate releases past End of Technical Support.

## What to do

1. **Upgrade.** NGINX Open Source to 1.31.9 (mainline) or 1.30.7 (stable) or later. NGINX Plus to 37.0.8.1 or 37.3.0.1 or later. The CVE record lists no fix for Plus R33, so read the F5 advisory (K000163925, linked from the CVE record) and move to a fixed release. Siemens Industrial Edge users have no fix yet; apply the workarounds below and follow SSA-935812. Remember the NGINX inside appliances, containers and ingress controllers, and distribution packages, which carry their own fixes.
2. **If you can't upgrade yet,** use the workarounds from the CVE record: avoid SSI and `mirror` directives, and avoid proxied server names that contain variables. Xint's advice goes further:
   - Point `proxy_pass` at a fixed upstream group instead of a name resolved at request time.
   - Set `mirror off` where you don't need mirroring. If you do need it, give the main request and the mirror separate fixed upstream groups.
   - Don't rely on `mirror_request_body on`. It stopped Xint's exploit but does not fix the resolver bug.
3. **Make sure ASLR is enabled** on hosts running NGINX. It doesn't stop the crash, but the CVE record says code execution needs ASLR off or bypassed.
4. **If a vulnerable server was internet-facing,** check it (below). If you find signs of code execution, rebuild the host and rotate the TLS keys and any credentials it held.

## Detection

No indicators of compromise have been published, and nobody has reported exploitation. The sources give no detection guidance for this CVE. These are general checks:

- **Worker crashes in the NGINX error log.** Look for workers exiting on a signal, such as segmentation faults, and a rise in worker restarts.
- **Requests that line up with the crashes,** especially ones whose `Host` header or other input feeds a variable `proxy_pass` name on a location with `mirror` or SSI.
- **Unusual DNS queries** from the server, since the attack needs the attacker to trigger name resolution. Xint's test used an attacker-controlled DNS zone.
- **After a crash, unexpected child processes** of NGINX workers or outbound connections from the server, which would point to code execution.

## Sources

- [nginx.org security advisories](https://nginx.org/en/security_advisories.html)
- [CVE record](https://cveawg.mitre.org/api/cve/CVE-2026-123634)
- [nginx 1.30.7 change log](https://nginx.org/en/CHANGES-1.30)
- [Xint, NGINX2Root write-up](https://xint.io/blog/nginx2root-remote-code-execution)
- [Siemens SSA-935812](https://cert-portal.siemens.com/productcert/html/ssa-935812.html)
- [CISA Known Exploited Vulnerabilities catalog](https://www.cisa.gov/known-exploited-vulnerabilities-catalog)

---

Data from PatchTonight (https://patchtonight.com), compiled from vendor advisories, CISA KEV and FIRST EPSS. Please credit PatchTonight and link to the CVE page when you use it.
