
Static server, reverse proxy, TLS terminator, load balancer, cache, TCP/UDP
proxy, mail proxy and Kubernetes ingress: eight jobs, one binary, one
configuration language, and one process holding every secret they need.
The eight jobs
Static file server. root and alias map a URI to a filesystem path.
nginx sends the file with sendfile, optional compression and cache headers.
It is also where CVE-2026-15176 lives, in the interaction between alias,
rewrite and the computation of $request_filename.
Reverse proxy. proxy_pass forwards a request to an application server,
rewrites headers, buffers the request and response, and manages upstream
connection pools. This is the job that makes nginx where authentication is
asserted.
TLS termination. ssl_certificate, ssl_protocols and the session cache
turn an encrypted connection into a plaintext request. Session resumption —
session IDs and session tickets — lets a returning client skip the full
handshake. When ssl_session_cache shared:... is configured without a static
ssl_session_ticket_key, nginx rotates ticket keys itself. CVE-2026-97629 is
in that rotation code.
Load balancing. upstream blocks define server pools with round-robin,
least-conn, IP hash or random selection, passive health checks and backup
servers. The proxy tier is also the traffic-distribution tier: a worker crash
is not one failed request but a re-balancing event.
Content caching. proxy_cache stores upstream responses on disk and serves
them without touching the application. The cache path has its own file I/O,
its own locks and its own asynchronous operations — which is why the AIO
use-after-free in CVE-2026-97205 can be reached through cached responses as
well as static files.
TCP/UDP proxying. The stream block proxies arbitrary protocols: databases,
DNS, MQTT, custom binary protocols. It shares the event loop and the scripting
machinery with HTTP. CVE-2026-93479's string-expression overflow exists in both
the HTTP and stream variants of that machinery.
Mail proxy. mail blocks proxy IMAP, POP3 and SMTP with TLS and
authentication, through the same worker and configuration parser.
Kubernetes ingress. nginx is the data plane behind multiple Ingress
controllers and Gateway API implementations. The controller watches the
Kubernetes API and rewrites nginx configuration; the worker enforces it.
A CVE in nginx becomes a cluster-wide ingress CVE, and the controller's own
release cadence becomes the real patch cadence.
One configuration language
All eight jobs are configured in the same declarative language: blocks,
directives, semicolons, variables. That uniformity is the product's greatest
strength. It is also why configuration bugs compound. A rewrite in a
location can change the URI that alias later maps; a map with a regex can
populate numbered capture variables that root or log_format reads; an
if block can create a subrequest; ssi on can create many. None of these
interactions is exotic. They are the documented way to build multi-tenant
static hosting and per-request logging.
None of the October 2026 bugs is in the HTTP request parser. Three of the five
are in the machinery that turns configuration into work: URI-to-path mapping,
string-expression evaluation, and the counter that tracks pending asynchronous
operations. That is the pattern: nginx's configuration language can describe
dangerous states, and the code executing those states gets less adversarial
testing than the request parser.
Why one binary matters for blast radius
A single worker process holds:
- the TLS private keys and the session ticket keys;
- the upstream connection pools and their credentials;
- the cache metadata and file descriptors;
- the configuration, including every
aliaspath and everymapexpression; - the request and response buffers for every connection it is serving.
Code execution in that worker is not code execution in a sandbox. It is code
execution in the process that terminates TLS and speaks to the application
tier. A crash is recoverable — the master respawns the worker — but a crash
under load is still dropped connections, and a corruption that is not a crash
is worse.

Next: Part 4 — the configuration-language tax: nginx against Apache, Caddy,
Envoy and HAProxy, and the cases where each of them is the better answer.

Comments (0)