NGINX RCE Flaws: Affected Versions and Mitigations11 min read2,273 words

NGINX RCE Flaws: Affected Versions and Mitigations

Learn how CVE-2026-123633 and CVE-2026-123007 put NGINX servers at risk, which versions are affected, and how to mitigate exposure and patch safely.

NGINX vulnerabilitiesCVE-2026-123633CVE-2026-123007NGINX remote code executionHTTP/2 security
NGINX RCE Flaws: Affected Versions and Mitigations

Two Critical NGINX HTTP/2 Flaws Put Web Infrastructure at Risk

NGINX often sits in front of the applications you actually think of as "the product." It terminates HTTPS, routes requests to services, and may host multiple websites or APIs from a single deployment. So when there's a vulnerability in NGINX itself, it isn't just "a bug in one app" - it can become a path into multiple services.

Two critical flaws disclosed on November 18, 2026 - CVE-2026-123633 and CVE-2026-123007 - allow unauthenticated remote code execution on affected NGINX servers when HTTP/2 is enabled. The vulnerabilities don't depend on what the backend application is doing. Testing also showed that at least one flaw can be triggered even on a server serving ordinary static files.

This guide walks through what the flaws do, which deployments need attention, and how to reduce exposure while you plan a safe upgrade. It also includes practical checks for teams running NGINX across cloud instances, containers, and shared production environments. The key point: don't assume your NGINX layer is safe just because the application is working or you have a WAF in place.

What are the two NGINX vulnerabilities?

Both flaws are memory-safety issues in NGINX's handling of HTTP/2. Each is rated Critical, with a reported CVSS 4.0 score of 9.2. HTTP/2 must be enabled on the server for either issue to apply, but the triggers and configuration details differ.

CVE Underlying issue Practical condition described in the research
CVE-2026-123633 Use-after-free in HTTP/2 connection handling HTTP/2 enabled; affects proxy processing, with exploitation dependent on connection conditions such as low available connection slots
CVE-2026-123007 Integer underflow in HTTP/2 flow control, leading to memory corruption HTTP/2 enabled; demonstrated over HTTPS on 64-bit systems, including NGINX serving static files

CVE-2026-123633: a connection is freed while still in use

NGINX tracks connections it considers reusable and may close them when it needs room for new ones. The flaw happens when an HTTP/2 connection is marked reusable while it's still waiting for the rest of a request's headers. After request processing starts, the connection doesn't get removed from that reusable list.

If NGINX later runs short of free connection slots, it can select that "reusable" connection and close it - even though the request is still using it. Under the researchers' described conditions, memory gets freed while request processing still references it. That's a use-after-free: execution continues along a reference to memory that's no longer allocated for its original purpose.

This matters most when NGINX is configured as a reverse proxy. The researchers described a path involving upstream connection handling and an error while sending an HTTP/2 GOAWAY frame. The key operational detail is that this isn't just "a malformed request causing an ordinary failure." The sequence can leave active request processing operating on freed memory.

CVE-2026-123007: HTTP/2 flow-control accounting breaks down

HTTP/2 flow control limits how much response data can be sent before the client is ready to receive more. NGINX tracks remaining allowance in a counter. When a stream is canceled, NGINX removes queued data and returns unused allowance to that counter.

The flaw is that this "refund" can push the counter above the protocol's maximum. A later bounds check assumes the counter is within range. Because the value is treated as an unsigned integer, subtracting an already-too-large value from the maximum wraps around to a very large positive number. The check can then accept the invalid increase instead of rejecting it.

From there, the corrupted value can get converted into a negative length and used in buffer calculations. Further conversions in the TLS send path can lead to an out-of-bounds memory copy. The researchers reported using the flaw to disclose memory and corrupt the heap, and they demonstrated remote code execution on official NGINX 1.31.7 and 1.31.8 builds.

The proof of concept worked with HTTP/2 over TLS on 64-bit systems serving response data from memory. The researchers also showed the path using ordinary static files - no backend application and no third-party module required. That's why "we only serve static content" isn't a reliable way to dismiss the risk.

What is the impact on websites and APIs?

If exploited, an unauthenticated attacker could execute code on the NGINX server. What that enables depends on server permissions, credentials, network reach, and role - ranging from data theft to website tampering, service disruption, or pivoting toward other systems.

This is a shared traffic-handling layer issue. If one NGINX deployment routes requests for multiple applications, compromising that instance can put more than one service at risk. Even if application teams have solid code and up-to-date dependencies, the vulnerable component is still the web server sitting in front of them.

"Unauthenticated" does not mean "no conditions"

Unauthenticated means the attacker doesn't need to log in to NGINX before attempting exploitation. It doesn't mean every NGINX instance is automatically exploitable from anywhere.

The attacker must be able to reach the affected server, HTTP/2 must be enabled, and the specific conditions for each vulnerability must be met.

For CVE-2026-123633, the reported exploitation path involves proxy behavior and connection availability. CVE-2026-123007 has a different path and was demonstrated on a static-file server. Those differences matter for prioritization, but they don't justify delaying patches on an exposed, affected deployment.

The researchers also noted that exploiting memory-safety flaws can require careful memory disclosure and heap shaping, and may need adaptation for different builds and configurations. That complexity shouldn't be treated as a dependable defense. Attackers can aim at common packaged versions and standard configurations rather than inventing a bespoke exploit for every environment.

Treat intermediaries as a possible layer, not a fix

A CDN or web application firewall that terminates HTTP/2 may reduce exposure if it doesn't pass through the vulnerable traffic behavior unchanged. The result depends on the intermediary's implementation and the path between the attacker and the NGINX server.

A proxy that terminates HTTP/2 is not the same as disabling HTTP/2 on the vulnerable NGINX origin. It also shouldn't be treated as a substitute for patching.

The vulnerability report also notes that common memory protections like ASLR don't, by themselves, prevent exploitation. For CVE-2026-123007, the researchers demonstrated an ASLR bypass. Security controls still have value, but you should treat them as defense in depth - not as something that replaces a fixed NGINX release.

Which NGINX versions are affected and fixed?

Based on the disclosed release information, CVE-2026-123007 affects NGINX OSS versions 1.9.5 through 1.31.8. CVE-2026-123633 affects versions 1.19.7 through 1.31.8. Both are fixed in NGINX OSS 1.30.7 stable and 1.31.9 mainline releases.

Product and issue Affected range or branch Fixed release listed in the disclosure
NGINX OSS - CVE-2026-123007 1.9.5 through 1.31.8 1.30.7 stable; 1.31.9 mainline
NGINX OSS - CVE-2026-123633 1.19.7 through 1.31.8 1.30.7 stable; 1.31.9 mainline
NGINX Plus - CVE-2026-123007 R33; 37.0.0 branch 37.0.8.1; 37.3.0.1
NGINX Plus - CVE-2026-123633 R33; 37.0.0 branch 37.0.7.1; 37.2.0.1

Use the release guidance for your exact NGINX product and branch. Don't assume version numbers line up the same way between NGINX OSS and NGINX Plus. Also, upgrading to a release that fixes one CVE doesn't automatically mean you're fixed for the other issue. Verify the package and branch your environment is actually running.

Review the full security release

The November 18 security release also includes other NGINX vulnerabilities, including issues involving HTTP/3 proxying, DNS resolver response processing, and the mail proxy module. Some can have serious impact under specific configurations - for example, the DNS resolver issue can lead to remote code execution when an attacker controls the upstream hostname. Other listed issues range from denial of service to configuration-dependent security problems.

So it's worth reviewing the complete release notes against the modules you run and the configurations you use. If you patch only the two HTTP/2 issues, you might miss a different vulnerability that also applies to your setup. And if the additional issues don't apply, that's fine - but don't assume every listed CVE affects every server.

How should you mitigate and investigate exposure?

Start with an inventory, not the assumption that "our web servers are patched." Identify NGINX OSS and NGINX Plus deployments, the exact versions, whether HTTP/2 is enabled, and whether each instance is reachable by untrusted clients. Include container images, Kubernetes ingress or gateway deployments, virtual machines, managed edge nodes, and long-lived hosts that aren't rebuilt frequently.

A practical response sequence

  1. Find the deployments. Gather version and configuration data from package inventories, container registries, orchestration platforms, and configuration management. Check what's actually running as well as what you think should be running.
  2. Confirm HTTP/2 exposure. Review the active NGINX configuration and the network path. An HTTP/2 listener might be enabled on an internet-facing endpoint or only reachable through an internal load balancer. Those details change priority.
  3. Prioritize by reachability and role. Patch externally reachable systems first, especially shared reverse proxies that route traffic for multiple applications. Then assess internal instances and systems with less direct exposure.
  4. Upgrade to a fixed release. Choose the correct stable, mainline, or NGINX Plus release for your product. Test configuration compatibility, deploy through your normal change process, and confirm the running service version after rollout.
  5. Close the operational loop. Make sure every instance - including replicas, autoscaling groups, and standby environments - actually updated. A patched image doesn't help if an older container or VM is still running.

If you can't upgrade right away, the disclosed temporary mitigation is to disable HTTP/2 on affected NGINX instances. On NGINX 1.25.1 or later, set http2 off; in affected server blocks and remove the http2 parameter from relevant listen directives. Test application compatibility, reload NGINX, and confirm old worker processes have exited. Re-enable HTTP/2 only after upgrading to a fixed release.

Disabling HTTP/2 can have performance or compatibility consequences. And an incomplete configuration change can leave another listener enabled. Validate the effective configuration and test the client-facing behavior rather than assuming a successful reload means exposure is gone.

What should you look for in monitoring?

The disclosed research doesn't provide a confirmed set of indicators of compromise. Unexpected NGINX worker crashes or commands launched by NGINX are warning signs, not proof that either CVE was exploited. Investigate in context using the process, network, and host telemetry you have.

For CVE-2026-123007, the researchers mentioned that a long-lived HTTP/2 connection sending unusually large amounts of data or generating many WINDOW_UPDATE records could be worth investigating. That's a behavioral clue, not a standalone detection rule. Legitimate traffic varies, and attackers may avoid obvious volume thresholds.

A focused review should ask:

  • Did an NGINX worker crash or restart unexpectedly?
  • Did an NGINX process spawn a shell or an unusual child process?
  • Were there unexpected outbound connections from the NGINX host?
  • Did an exposed instance run an affected version with HTTP/2 enabled during the relevant period?
  • Do logs and telemetry support what happened, or do you need more host-level investigation?

Key takeaways: Patch affected NGINX versions as soon as practical; disable HTTP/2 temporarily if you must wait on an upgrade; prioritize reachable shared proxies; and investigate anomalous process behavior without treating generic symptoms as confirmed exploitation.

Conclusion

These vulnerabilities are a reminder that infrastructure components deserve the same disciplined patching process as application code. NGINX might be only one piece of a production stack, but it's often the shared entry point for many websites and APIs. A flaw there can bypass the assurance you get from securing each application behind it.

Inventory what you run, verify whether HTTP/2 is enabled, and prioritize reachable deployments - especially shared reverse proxies. Upgrade to the fixed release for your NGINX product and branch. If you can't do that right away, disable HTTP/2 as a temporary mitigation and verify the change is effective across every instance.

The practical measure of progress isn't whether a patch exists or a ticket is closed. It's whether vulnerable, reachable processes have been removed from production - and whether the remaining exposure is actually understood.

Frequently Asked Questions

No. The reported vulnerabilities can permit unauthenticated remote code execution, so an attacker does not need an NGINX account. However, the attacker must be able to reach the affected server, HTTP/2 must be enabled, and the specific conditions for the vulnerability must apply.
Potentially, yes. Researchers demonstrated CVE-2026-123007 against NGINX serving ordinary static files over HTTP/2 and TLS, without a backend application or third-party module. Check the running version and HTTP/2 configuration rather than relying on the server’s content type or role.
A CDN or WAF that terminates HTTP/2 may reduce exposure, depending on how it handles and forwards traffic. It is not a reliable replacement for upgrading or disabling HTTP/2 on the affected origin. Confirm the actual traffic path and apply the vendor’s fixed release.
Temporarily disable HTTP/2 on affected NGINX instances, test the change, reload the service, and verify that old workers have exited. Prioritize internet-reachable shared proxies for patching, then re-enable HTTP/2 only after deploying a fixed version.

Related articles