NGINX Rewrite Exposure (CVE-2026-42945)
Fingerprint NGINX servers with two passive GETs and sort versions against the CVE-2026-42945 fix line, without sending the rewrite URI that crashes a worker.
Fingerprint NGINX servers with two passive GETs and sort versions against the CVE-2026-42945 fix line, without sending the rewrite URI that crashes a worker.
This workflow screens NGINX servers for CVE-2026-42945, the heap overflow in the rewrite module that has existed since NGINX 0.6.27 and can crash or, on some builds, compromise a worker process from any HTTP client. The bug needs a common configuration shape, a rewrite directive with an unnamed capture and a question-mark replacement followed by more rewrite instructions in the same scope, and that shape cannot be read from outside the server. So the honest detection is a version screen: it identifies NGINX, sorts the banner version against the fixed releases, and flags every NGINX host for configuration review. There is no safe exploitability probe, because the only request that discriminates vulnerable from patched is a crafted URI that deterministically crashes the worker, and this workflow will never send one. Each host comes back with a verdict you can feed into exposure management.
The records below are illustrative and do not come from a real run. They show a server on an affected version, a patched one, and one where the sibling CVE needs separate treatment.
| target | server_header | version_source | verdict | detail | error |
|---|---|---|---|---|---|
| https://web-a.example.com | nginx/1.29.4 | server_header | affected_version | below the 1.30.1/1.31.0 fix; config-pattern review required | null |
| https://web-b.example.org | nginx/1.31.0 | server_header | patched_version | at the 1.31.0 fix | null |
| https://web-c.example.net | nginx/1.30.1 | server_header | version_not_listed | at the CVE-2026-42945 fix but below the CVE-2026-9256 fix line; sibling bug needs its own check | null |
{"cve": "CVE-2026-42945", "product": "NGINX ngx_http_rewrite_module", "total_targets": 3, "verdict_counts": {"affected_version": 1, "patched_version": 1, "version_not_listed": 1}, "kev": false, "config_pattern_note": "the vulnerable shape is a rewrite with an unnamed capture and a question-mark replacement plus further rewrite directives in the same scope"}No. It means the version sits below the fix for a bug that also needs a specific rewrite configuration pattern to become reachable, and that pattern cannot be observed remotely. Treat the row as a version screen that triggers a config review on the host, not as proof of exposure.
The only request that distinguishes vulnerable from patched deterministically crashes the worker process, which is a denial-of-service action against the target. The workflow refuses to send it by construction: the path guard rejects any URI that could carry the exploit shape.
Every NGINX OSS build from 0.6.27 through 1.30.0 and NGINX Plus R32 through R36 before their patch releases. The fixes are 1.30.1 and 1.31.0 on OSS and R32 P6, R36 P4 on Plus. NGINX builds from 1.30.2 to the 1.31 line need the separate rewrite-module CVE-2026-9256 check instead.
No confirmed exploitation. CISA's coordinator scored exploitation as none, it is not on the KEV list, and public exploit code exists from the researcher disclosure. Patching is a version-hygiene task, not an incident response.
Get a personalized demo
A 30-minute walkthrough. We map the platform to your stack and answer pricing and deployment questions for your environment.