NGINX2Root explained : who is affected and how to protect Linux servers, Docker, and Kubernetes

A practical guide for Linux servers, Docker, and Kubernetes.

NGINX2root

A static website can be exposed to NGINX2Root even if it has no login, database, or application backend. The most broadly applicable flaw, CVE-2026-123007, affects how an NGINX worker handles HTTP/2. A request can therefore reach vulnerable code before application authentication or business logic comes into play. F5 HTTP/2 advisory

Start with two questions: Which process receives the client’s connection? Which build is that process running? On a standalone VM, the answer may be a single NGINX service. Behind Cloudflare, the browser and the origin use separate connections. In Kubernetes, the path may contain two NGINX installations owned by different teams. Patching the ingress controller can still leave an old NGINX binary serving the frontend. Cloudflare connection model · F5 disclosure index

Why this deserves immediate attention: On 19 November, Western Australia’s security operations centre reported learning of in-the-wild exploitation involving at least one of the two HTTP/2 vulnerabilities. Its notice did not identify which CVE was exploited or establish that an attacker obtained host root. That distinction matters because the researchers’ host-root demonstration required a separate Linux kernel flaw. Western Australia security advisory · Xint research

1. What is NGINX2Root?

On 18 November 2026, F5 disclosed five independent NGINX memory-corruption vulnerabilities. Depending on the configuration, an unauthenticated remote client could crash a worker or potentially execute code with that worker’s privileges. F5 rates the lead HTTP/2 flaw 9.2 Critical under CVSS 4.0 and 8.1 High under CVSS 3.1. F5 says remote code execution requires address space layout randomization (ASLR) to be disabled or bypassed. An ASLR-enabled server still needs the update. F5 disclosure index · Canonical CVE record

The “root” in the name comes from the researchers’ demonstration. After gaining code execution as an NGINX worker, they used a separate local privilege-escalation vulnerability in the Linux kernel’s Stream Control Transmission Protocol (SCTP) subsystem to obtain root on the underlying host. They also demonstrated this from an NGINX Docker container. Xint disclosure · CIRCL assessment

Where each part of the chain happens

flowchart TD@@ C["Untrusted client"] -->|"Can reach an affected listener"| W["NGINX worker on VM or in container"]@@ W -->|"Possible outcome"| D["Worker crash and failed requests"]@@ W -->|"Possible outcome"| E["Code execution as worker"]@@ E -->|"Worker permissions"| A["Readable files, credentials and reachable services"]@@ E -->|"Separate SCTP flaw, if reachable"| K["Linux host kernel"]@@ K -->|"Demonstrated outcome"| H["Host root and access to co-located workloads"]

The NGINX worker is where the five NGINX vulnerabilities reside. The Linux kernel is where the separate escalation flaw resides. The database, sibling containers, cloud account, and Kubernetes API enter the investigation because of what a compromised process or host could reach. Their presence behind NGINX does not establish that they were compromised. F5 advisory · CIRCL assessment

2. The five vulnerabilities

Upstream NGINX fixed all five in 1.30.7 on the stable branch and 1.31.9 on mainline. The first-affected versions below come from the upstream index. For distribution packages, use the distributor’s full package revision because fixes and features can be backported. NGINX security advisories · Ubuntu security notice

CVEFirst affected upstream releaseAffected part of the traffic flowTemporary mitigation
CVE-2026-1230071.9.5Client → NGINX HTTP/2 listener. HTTP/2 flow-control handling can corrupt worker memory. Even a static-file server can qualify.Disable HTTP/2 on affected listeners and drain established HTTP/2 sessions, or shift traffic to patched replicas.
CVE-2026-1236331.19.7HTTP/2 client → NGINX reverse proxy → backend. Under connection pressure, the worker can free an active connection while connecting upstream.Move traffic to a patched proxy or disable HTTP/2 on the affected client-facing hop.
CVE-2026-1218101.25.0HTTP/3 client → NGINX QUIC listener. The researchers describe a proxied path. F5 scopes the issue to HTTP/3 configurations.Disable affected QUIC listeners or restrict their UDP ports. Remove stale HTTP/3 advertisements and verify TCP fallback.
CVE-2026-1236340.6.18NGINX main request and subrequest → same upstream DNS name. A variable determines the proxied server name, and a mirror or Server Side Includes (SSI) subrequest resolves the same name.Use fixed upstream destinations where feasible, or remove the overlapping resolution path. Review both mirroring and SSI.
CVE-2026-1134250.5.33Mail client → NGINX mail proxy → HTTP authentication service. Inspect IMAP, POP3, or SMTP proxy configurations using auth_http.Restrict untrusted access to the mail listener or move mail traffic to a patched service.

Disabling HTTP/2 covers only the first two rows. It can also interrupt native gRPC, so move gRPC traffic to a patched endpoint before applying that workaround. For the mail flaw, the researchers identify an earlier code lineage than the vendor’s published range. The table follows the official upstream range. Operators of older forks should obtain a build-specific assessment. F5 resolver advisory · F5 HTTP/3 advisory · Researcher mitigation guide

3. Standalone Linux, Docker, and Cloudflare: which component is affected?

Consider a common deployment: Cloudflare → NGINX on an Oracle Cloud Ubuntu VM → Docker applications.

flowchart TD@@ B["Internet browser"] -->|"Public HTTPS connection"| C["Cloudflare edge"]@@ C -->|"Separate origin connection"| N["Host NGINX on Ubuntu VM"]@@ P["Direct or private client"] -->|"If firewall and routing permit"| N@@ N -->|"Proxy route A"| A["Application container"]@@ N -->|"Proxy route B"| F["Frontend container with its own NGINX"]@@ P -->|"If a container port is separately published"| F

Component in the diagramWhat is affected?What to verify
Cloudflare edgeA browser negotiating HTTP/2 with Cloudflare establishes which protocol reached the edge. Cloudflare opens its own connection to the origin.Inspect the origin protocol separately. Even if the origin uses HTTP/2, that alone does not show that the visitor controls the origin’s HTTP/2 frames. Cloudflare origin protocol
Oracle Cloud networking and Ubuntu firewallThese controls determine who can reach the host or published container ports. They are relevant to exposure assessment.Check OCI security lists or NSGs, host rules, IPv4, IPv6, VPN or private routes, and alternate ports. Determine what each route actually permits.
NGINX installed on the VMThis is one candidate for all five NGINX CVEs, depending on its build and active features.Check the full package revision, running executable, virtual hosts, and which clients can connect to each listener. Ubuntu notice
Application containerA backend is in scope for the NGINX CVEs if it bundles and runs an affected NGINX instance. It can also be reachable from a compromised proxy.Inspect the image inventory or software bill of materials (SBOM). Identify credentials and backend access available to the proxy.
Frontend container with its own NGINXThis is a second installation. It may have a different version, configuration, and network path from host NGINX.Verify the container image and listener independently. Check whether Docker publishes a port that bypasses the host proxy. Container guidance
Ubuntu host kernelThe separate SCTP escalation issue belongs here. Ordinary Linux containers use the host kernel.Assess the running kernel and SCTP availability on the VM. Rebuilding an application image addresses its bundled software. The host owns the kernel update. CIRCL assessment

Example verdict: Suppose Cloudflare accepts HTTP/2, the origin connection uses HTTP/1.1, and firewall policy blocks direct public access to NGINX. The browser’s HTTP/2 session ends at Cloudflare. That evidence narrows the public path for CVE-2026-123007. You still need to check private access, published container ports, the other four configurations, and the installed package revision before closing the finding. Cloudflare connection model · F5 HTTP/2 advisory

4. Kubernetes: follow the connection to the data plane

An Ingress, Gateway, or HTTPRoute object describes how traffic should be routed. The vulnerable code, when present, runs in a data-plane process that receives or proxies traffic. This distinction explains why upgrading an EKS, GKE, or AKS cluster can leave a self-installed controller or frontend image untouched. Kubernetes project statement · F5 product matrix

flowchart TD@@ C["Internet client"] --> L["Cloud load balancer"]@@ L -->|"TCP pass-through, original connection"| N["NGINX ingress or gateway data plane"]@@ L -->|"L7 proxy, new backend connection"| G["NGINX, Envoy or another gateway"]@@ N --> S["Application Service"]@@ G --> S@@ S --> A["Application pod"]@@ S --> F["Frontend pod with embedded NGINX"]@@ I["In-cluster client"] -->|"If network policy permits"| S

The diagram shows alternative load-balancer configurations. With TCP pass-through, downstream NGINX may receive the client’s original HTTP/2 connection. With an L7 proxy, inspect the protocol on the new backend connection. Then check the Service independently: an in-cluster workload may be able to reach the frontend through a path that bypasses the public ingress entirely. F5 HTTP/2 advisory · Xint exposure guidance

Kubernetes componentWhat operators need to know
Community ingress-nginxThe upstream project retired in March 2026 and ended security releases. Deployed controllers can continue serving traffic. Inventory the running image. For a vendor-supported fork, obtain confirmation for the exact build. For the retired upstream controller, mitigate reachable paths and migrate to a maintained implementation. Kubernetes retirement statement
F5 NGINX Ingress ControllerFor CVE-2026-123633, F5 lists 5.0.0–5.7.1 and 2026-lts-r1–r10, plus older affected branches. Fixed targets include controller 5.8.0 and 2026-lts-r11 on their respective tracks. Controller 5.8.0 uses Helm chart 2.9.0. Verify image overrides and running pods after the upgrade. F5 matrix · Controller changelog
F5 NGINX Gateway FabricFor the same CVE, F5 lists 2.0.0–2.8.1 and 1.5.0–1.6.2 as affected. The fixed 2.x release is 2.9.0. F5 lists no fixed 1.x build in that matrix. Check the data-plane pods serving every Gateway. F5 matrix · Gateway Fabric release
Istio/Envoy or a cloud-provider gatewayIdentify which implementation handles each connection. An Envoy gateway can forward to an application pod running NGINX. Check downstream listeners, private Services, and workload images. F5 data-plane scope
AKS application-routing NGINX add-onMicrosoft documents critical patch support through November 2026. Verify the managed image and rollout for the specific cluster. Use the supported update or migration path. Microsoft marks direct edits to the managed ConfigMap as unsupported. AKS guidance
Worker nodeAssess the node OS and running kernel for the separate SCTP issue. A fixed ingress image and a fixed node image answer two different questions. Kernel assessment

Two similarly named products are easy to mix up here. Community ingress-nginx and F5 NGINX Ingress Controller have different maintainers and release paths. Also, 2.9.0 refers to the Helm chart for F5 Ingress Controller 5.8.0, but to the product release for NGINX Gateway Fabric. Record the product, chart, and running image separately in the change ticket. F5 controller changelog · Gateway Fabric release

5. How to determine whether you are affected

You can assess exposure using the running build, active configuration, and network path. The following checks use local inspection and ordinary TLS negotiation.

Step 1. Identify the running Linux service and package

On an Ubuntu or Debian host using systemd:

systemctl show nginx -p MainPID -p ExecStart
sudo readlink /proc/"$(systemctl show nginx -p MainPID --value)"/exe

nginx -V 2>&1
dpkg-query -W -f='${binary:Package}\t${Version}\n' 'nginx*' 'libnginx-mod-*'
apt-cache policy nginx

sudo ss -lntup

Match the executable and startup arguments to the binary being inspected. Record the package origin, full package revision, port, and listening address. For a custom build, obtain its build manifest or patch record. If the running executable is marked (deleted) after an update, investigate whether the old master is still running.

Why this matters: Ubuntu 24.04 backported the lead fix to 1.24.0-2ubuntu7.20. A banner showing only nginx/1.24.0 omits the revision needed to distinguish patched and vulnerable packages. Canonical version table

Step 2. Inspect the configuration on the serving instance

sudo nginx -t

sudo nginx -T 2>&1 |
grep -nE '(^|[[:space:]])(listen|http2|http3|resolver|proxy_pass|mirror|mirror_request_body|ssi|mail|auth_http|proxy)([[:space:]]|$)'

Use the running service’s binary, prefix, and configuration path if it specifies custom options. Read matches in their enclosing http, server, location, or mail blocks.

What you findWhat to establish next
http2 on; or listen 443 ssl http2;Which virtual hosts enable or inherit HTTP/2? Who can reach those listeners? Which build serves them?
listen ... quicWhich UDP address and port accept HTTP/3? A TCP-only check misses this listener.
resolver, variable-based proxy_pass, and mirror or ssiDo the main request and subrequest resolve the same upstream name?
mail, proxy, and auth_httpWhich mail protocols are enabled, and who can reach their listeners?
An HTTP module listed by nginx -VDoes the active configuration enable that feature anywhere?

nginx -T reads the configuration on disk. Check deployment or reload records to establish that the serving workers loaded it. Configuration dumps can contain credentials or sensitive values, so keep them local. F5 resolver advisory · Xint operator guidance

Step 3. Verify the protocol on the intended hop

From an authorized network, substitute the origin listener’s address and the correct virtual-host name:

openssl s_client \
-connect ORIGIN_IP:443 \
-servername app.example.com \
-alpn h2,http/1.1 </dev/null 2>&1 |
grep -E 'ALPN protocol|No ALPN negotiated'

ALPN protocol: h2 confirms HTTP/2 negotiation on that connection. The package or image record establishes patch status. A failed connection could result from the firewall, routing, TLS settings, or an incorrect address. Check IPv6, other virtual hosts, cleartext HTTP/2, and QUIC separately where applicable. Researcher exposure guidance

Step 4. Check Docker and Docker Compose

Run these commands from the project directory. Replace SERVICE with the Compose service name:

docker compose ps
docker compose images

docker compose exec -T SERVICE nginx -V

docker compose exec -T SERVICE nginx -T 2>&1 |
grep -nE 'listen|http2|http3|quic|resolver|proxy_pass|mirror|ssi|auth_http'

Verify every running replica’s image identity:

docker compose ps -q SERVICE |
xargs -r docker inspect \
--format '{{.Name}} configured={{.Config.Image}} running_image_id={{.Image}}'

Compare the running image ID with the intended fixed build. If an application or appliance uses an unfamiliar image name, inspect its SBOM or package inventory. Updating the host leaves a container’s bundled NGINX binary unchanged. Microsoft container guidance

Step 5. Check Kubernetes controllers, gateways, and workloads

Start by confirming the cluster context:

kubectl config current-context

kubectl get ingressclass \
-o custom-columns='CLASS:.metadata.name,CONTROLLER:.spec.controller'

# Run when Gateway API is installed
kubectl get gatewayclass \
-o custom-columns='CLASS:.metadata.name,CONTROLLER:.spec.controllerName'

kubectl get pods -A -l app.kubernetes.io/name=ingress-nginx -o wide
kubectl get svc -A -o wide

The label query finds common community-controller installations. List running image identities across namespaces to catch renamed controllers, sidecars, and privately mirrored images:

kubectl get pods -A -o json | jq -r '
.items[] as $p |
($p.status.containerStatuses[]?,
$p.status.initContainerStatuses[]?,
$p.status.ephemeralContainerStatuses[]?) |
[$p.metadata.namespace, $p.metadata.name, .name, .image, .imageID] |
@tsv'

For a candidate pod, inspect the container that actually runs NGINX:

kubectl exec -n NAMESPACE POD -c CONTAINER -- nginx -V

kubectl exec -n NAMESPACE POD -c CONTAINER -- nginx -T 2>&1 |
grep -nE 'listen|http2|http3|quic|resolver|proxy_pass|mirror|ssi|auth_http'

Also inspect Deployments, DaemonSets, StatefulSets, CronJobs, and GitOps definitions. A workload scaled to zero today can restore an old image tomorrow. If container execution is restricted, use the running digest, vendor release matrix, SBOM, and rendered configuration available to the platform owner. Kubernetes inventory guidance · F5 product matrix

Step 6. Record a conclusion for each listener

FindingEvidence required
Fixed build verifiedThe running package revision or image identity maps to a vendor-confirmed fix.
ExposedAn affected build is running, the required feature is enabled, and an untrusted client can reach the relevant path.
Affected build with restricted exposureConfiguration or network evidence identifies the missing prerequisite. Record which control must stay in place until patching.
UnknownThe build, configuration, or route remains unverified. Assign the missing check to an owner.

6. How to patch and verify the rollout

EnvironmentRemediationEvidence of completion
NGINX Open SourceDeploy 1.30.7 stable, 1.31.9 mainline, or a later fixed release on the appropriate branch.Confirm that the running service uses the patched executable and that application routes work. Upstream advisories
NGINX PlusFixed builds include 37.0.8.1 LTS and 37.3.0.1 continuous release. Follow the release track for the installation.Record the complete running Plus build. Plus releases
Ubuntu packagesCanonical lists 1.24.0-2ubuntu7.20 for Ubuntu 24.04 LTS and 1.18.0-6ubuntu14.23 for 22.04 LTS.Record the package origin, installed revision, master-process restart, and virtual-host health. Ubuntu notice
Debian packagesThe 19 November snapshot listed bookworm-security 1.22.1-9+deb12u10 and trixie-security 1.26.3-3+deb13u10 as vulnerable to the lead CVE. Sid had a fix in 1.30.6-4. Check the live tracker for your own suite.Verify each applicable CVE against the installed suite. Use the matching temporary mitigation while awaiting a supported update. Debian tracker
Docker ComposeSelect a fixed image or rebuild the custom image with a corrected base or package. Recreate the service.Verify each running image ID and issue a normal request through the production route.
KubernetesChange the image through its owning chart, operator, or GitOps repository. Roll out the controller and affected application workloads.Check rollout completion, running digests, Service endpoints, and any old controller still accepting traffic. Test TLS, client IP handling, routing, and gRPC where applicable. F5 controller changelog
Azure Container AppsMicrosoft confirms its built-in Envoy ingress is unaffected. Deploy fixed revisions for apps or jobs that bundle NGINX.Verify revision traffic splits and job templates. An old revision may still receive a share of requests. Microsoft advisory
Kong, OpenResty, appliances, or vendor-repackaged imagesObtain a determination and supported update for the exact vendor build. F5 also lists product-specific fixes for affected Instance Manager, WAF, and DoS products.Record the vendor advisory, fixed product version, and deployed image or package identity. F5 matrix

Ubuntu 24.04 example

For an NGINX service installed from Canonical’s archive:

sudo apt-get update
apt-cache policy nginx

Confirm that the candidate includes the fix for your release. Then upgrade the package, including any separately installed components identified by the Ubuntu notice:

sudo apt-get install --only-upgrade nginx
sudo nginx -t && sudo systemctl restart nginx

systemctl is-active nginx
dpkg-query -W -f='${Version}\n' nginx
systemctl show nginx -p MainPID -p ActiveEnterTimestamp

Plan for a brief interruption on a single-instance reverse proxy. A configuration reload can change protocol settings while connections drain. A binary update requires the patched executable to be running, typically after a restart or container replacement. Verify both the running process and a real application route. Ubuntu notice · Researcher mitigation guidance

7. Check the Linux host or Kubernetes node separately

The researchers described the SCTP kernel fix as pending at disclosure. Check the current guidance for your distribution, kernel flavour, or managed node image before assigning a fixed kernel version. Researcher disclosure · LWN kernel reporting

On the Linux host or node, inspect the running kernel and SCTP configuration:

uname -r
grep '^CONFIG_IP_SCTP=' "/boot/config-$(uname -r)"
lsmod | grep '^sctp'
modinfo -F filename sctp

ObservationMeaning
CONFIG_IP_SCTP=mSCTP is available as a loadable module. It may become active later even if lsmod currently shows nothing.
CONFIG_IP_SCTP=ySCTP is built into the kernel. A module-loading restriction does not address this configuration.
lsmod lists sctpThe module is loaded now. Check workload dependencies before changing host policy.
Kernel configuration is unavailableRecord the status as unknown until the OS vendor or image owner confirms the build settings.

For Kubernetes, identify Services that explicitly use SCTP:

kubectl get svc -A -o json | jq -r '
.items[] |
select(any(.spec.ports[]?; .protocol == "SCTP")) |
[.metadata.namespace, .metadata.name] | @tsv'

Include host processes and workloads that communicate without a Kubernetes Service. Where SCTP is unused and the vendor supports it, preventing the kernel from loading the module is a temporary mitigation. Where SCTP is required or built in, obtain kernel-specific guidance. Once a fixed kernel or node image is available, verify the running kernel on every relevant node after the rollout. Xint kernel guidance

8. What to investigate if NGINX was exposed before patching

Ordinary access logs do not capture all the HTTP/2 control traffic relevant to the lead vulnerability. Another easily missed signal is a worker restart inside a healthy container. NGINX can replace a failed worker while its master process stays alive, so Kubernetes may report zero pod restarts throughout the event. Xint incident guidance · CIRCL assessment

Investigation questionEvidence and action
Did workers crash unexpectedly?Check NGINX error logs, the system journal, coredump records, and runtime events. Correlate worker exits with traffic and deployment changes.
Did an unexpected process run as the worker?Review process-execution telemetry for unusual children of NGINX workers, unexpected file changes, or outbound connections. Compare findings with ordinary workload behaviour.
What could the worker access?Inventory readable files and keys, mounted secrets, service-account tokens, workload identities, and reachable backends. Use the worker’s actual permissions to set the initial scope.
Could the host or node have been compromised?Review host and kernel telemetry, sibling workloads, node credentials, Kubernetes audit logs, and cloud audit records. Preserve relevant evidence before replacing the machine.
What if compromise is credible?Isolate affected workloads and hosts under the incident-response plan. Preserve evidence, rotate exposed credentials from a trusted environment, and recover compromised hosts from trusted images.

9. When can you close the finding?

For each service, retain four pieces of evidence:

  1. The path. Which clients could reach which listener, using which protocol?
  2. The running fix. Which vendor-confirmed package revision or image digest handled traffic after rollout?
  3. The coverage. Did every serving replica, alternate listener, and independently bundled copy receive the fix or a documented mitigation?
  4. The follow-up. What did the exposure-window investigation find, and who owns the separate host-kernel assessment?

For a standalone Ubuntu server, the evidence may fit in one change ticket: a package revision, a new master process, and a successful request through the production hostname. For Kubernetes, the same request can cross a gateway, an ingress controller, and a frontend container before reaching the application. Follow that request through the infrastructure, identify every NGINX process that handles it, and verify the running fix at each one.


Made with ❤️ by Jaydeep Gohel

Comments

Popular posts from this blog

Agentic AI Architectures That Will Define Enterprise AI in Feature

20 Production-Grade ML Architectures for Enterprise Systems on Google Cloud

20 Production-Ready ML Architectures on AWS That Will Transform How You Build AI — A Deep Dive Into the Future of Machine Learning at Scale