CVE

NGINX Config Review (CVE-2026-15176)

Two fixed GETs identify NGINX and route every host to the host-side config review for CVE-2026-15176: alias with rewrite, return, or log_format.

AuthorTrickest
100%

Notes on this workflow

Results: out/results.jsonl + out/findings.jsonl (8.1 AC:H, EPSS 0.98%, KEV no, ITW none/PoC unverified). Actionable gate is host-side: grep nginx.conf for alias + rewrite/return/log_format referencing $request_filename and refactor; upgrade per K000162416 (EoTS releases treated as exposed).

Target: NGINX Open Source / NGINX Plus data plane (K000162416). CVE-2026-15176 CWE-122: location blocks combining alias with rewrite and set/return (or log_format) referencing $request_filename overflow a worker heap buffer on crafted requests - worker crash; RCE only where ASLR is defeated. CVSS 8.1 AC:H.

How it works: targets -> parse-targets -> fingerprint -> report. GET / (Server header/content) then GET /trickest-404-probe (default error-page marker) only if root was ambiguous. Disclosed version recorded; hidden version (server_tokens off) -> config-review note. No row ever claims patched without the advisory matrix.

Safety: the trigger is server configuration - unreadable from outside - and the crafted URI sequence that would prove it is a heap-overflow attempt (worker crash = DoS). Exactly two fixed plain paths exist; a character guard rejects %,+,?,&,=,; shapes; no fuzzing, no path variants, no error-page trawling, nothing inferred from response shapes.

Overview

This workflow screens NGINX servers for CVE-2026-15176, the heap buffer overflow that needs a specific configuration shape: an alias directive combined with rewrite, return, or a log_format that reads the request filename. The trigger lives in nginx.conf, which cannot be read from outside, and a crafted URI sequence that would prove it is a heap-overflow attempt that crashes the worker, so this workflow sends exactly two fixed plain GETs and infers nothing from response shapes. The version handling is deliberately honest: F5's affected-and-fixed matrix is version-specific and not machine-readable at build time, so no version table is fabricated, no row ever claims patched, and a hidden version, which is the common case, reads as configuration review required. Field context makes the point: about 14.7 million of 56.7 million observed NGINX hosts disclose their version. Each host comes back with a verdict you can feed into exposure management.

Pipeline

  1. Read the target list and send at most two spaced GETs per host: the root page for the Server header and content, and a fixed plain error-probe path for the default error-page marker.
  2. The path guard rejects anything carrying percent-encoding, plus signs, query syntax, ampersands, equals, or semicolons, so no path variant that could approach the trigger shape is constructible. No fuzzing, no repeated variants, no error-page trawling.
  3. Record the Server-header version where disclosed and route it to the out-of-band matrix comparison against advisory K000162416; a hidden version reads as NGINX detected, version hidden, configuration review required.
  4. Emit the host-side gate with every row: grep nginx.conf for alias combined with rewrite, return, or log_format directives that use the request filename, which is the condition that makes the overflow reachable.
  5. Reconcile one verdict per target and write findings plus summary counts. No row ever claims patched, because without the matrix that would be fail-open.

Inputs

  • Target list. NGINX server addresses you are authorized to fingerprint. The default file ships a sample host; bind your own.

Outputs

  • findings.jsonl. One row per host: target, the Server-header evidence, the version and its state, verdict, severity, and the grep instruction for the host-side review.
  • summary.jsonl. One line with the total, verdict counts, and the note that no row claims patched.

Integrations

  • HTTP. At most two GETs per host with at least one second of spacing, both plain paths, nothing inferred from response shapes.

Sample output

The records below are illustrative and do not come from a real run. They show a server that discloses its version, the field-common hidden case, and a non-NGINX host.

targetserver_headerversion_stateverdictdetailerror
web-a.example.comnginx/1.24.0disclosednginx_exposed_config_reviewversion routed to the out-of-band matrix comparison; run the nginx.conf grep on the hostnull
web-b.example.orgnginxhiddennginx_exposed_config_reviewversion hidden, the common case; configuration review requirednull
web-c.example.netnullnullnot_nginxno NGINX markers in either responsenull
{"cve": "CVE-2026-15176", "product": "NGINX (alias + rewrite/return/log_format)", "total_targets": 3, "verdict_counts": {"nginx_exposed_config_review": 2, "not_nginx": 1}, "kev": false, "field_context": "14.7M of 56.7M observed NGINX hosts disclose a version"}

FAQ

Why can the workflow not give a version verdict?

F5's advisory matrix for this CVE is version-specific and its portal is not machine-readable at build time, so no affected-and-fixed table exists in the workflow. A disclosed version is recorded and sent to the matrix comparison out of band; claiming patched without the matrix would be fail-open, so no row ever says it.

What exactly is the host-side gate?

Grep nginx.conf for an alias directive in the same scope as rewrite, return, or log_format directives that reference the request filename. That combination is the memory-corruption precondition, and it is the one thing this bug turns on, so the grep is the actionable answer.

Is the vulnerability reachable from outside?

Only through a crafted sequence of URIs that hits the misconfigured route, and proving that shape from outside means crashing the worker. The workflow refuses path characters that could carry such a sequence and infers nothing from response shapes, because memory corruption leaves no clean external differential.

What is CVE-2026-15176?

A heap buffer overflow in NGINX when alias handling interacts with rewrite, return, or log_format directives reading the request filename, scored 8.1 High with attack complexity high. No confirmed exploitation and no public proof of a working exploit.

Get a personalized demo

See Trickest in Action

A 30-minute walkthrough. We map the platform to your stack and answer pricing and deployment questions for your environment.