---
title: "nginx2root: Five new nginx vulnerabilities, and how Cloudflare protects origins from the worst of them"
description: "nginx2root is five memory-corruption bugs in nginx (HTTP/2 flow-control integer overflow, plus use-after-frees in HTTP/2 and HTTP/3 upstream handling, the resolver with subrequests, and the mail proxy), paired with an unpatched Linux SCTP use-after-free that escalates a worker compromise to root, even from inside Docker."
url: "https://swe.quest/articles/nginx2root-five-new-nginx-vulnerabilities-and-how-cloudflare-protects-origins-d1432ea077df3a49"
canonical: "https://blog.cloudflare.com/nginx2root/"
source: "Cloudflare"
published: "2026-11-20"
difficulty: "medium"
kind: "Deep dive"
reading_minutes: 22
tags: ["vulnerability-research","memory-safety","networking","cdn-edge","security"]
---

# nginx2root: Five new nginx vulnerabilities, and how Cloudflare protects origins from the worst of them

A post on [Cloudflare](https://swe.quest/sources/cloudflare.md), published 2026-11-20, 22 min read, Deep dive. Original: [https://blog.cloudflare.com/nginx2root/](https://blog.cloudflare.com/nginx2root/)

## Summary

nginx2root is five memory-corruption bugs in nginx (HTTP/2 flow-control integer overflow, plus use-after-frees in HTTP/2 and HTTP/3 upstream handling, the resolver with subrequests, and the mail proxy), paired with an unpatched Linux SCTP use-after-free that escalates a worker compromise to root, even from inside Docker. The most dangerous, CVE-2026-123007, needs only HTTP/2 enabled, affects every release since 1.9.5, and arises because WINDOW\_UPDATE enforces the 2^31−1 cap while stream-cancel cleanup returns credit to the connection window unchecked. Origins reachable only through Cloudflare's HTTP proxy are shielded from the HTTP/2 and HTTP/3 bugs because client frames terminate at the edge, but the resolver, mail proxy, Spectrum and directly reachable origins are not. Patch to nginx 1.30.7/1.31.9 and restart, or disable http2/http3, use fixed upstreams, restrict mail listeners and block the SCTP module.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Vulnerability research](https://swe.quest/tags/vulnerability-research.md) (Security)
- [Memory safety](https://swe.quest/tags/memory-safety.md) (Security)
- [Networking](https://swe.quest/tags/networking.md) (Infrastructure)
- [CDN & edge](https://swe.quest/tags/cdn-edge.md) (Infrastructure)
- [Security](https://swe.quest/tags/security.md) (Security)

## Prerequisites

- HTTP/2 flow control
- nginx configuration ([easy posts on Configuration management](https://swe.quest/tags/configuration.md?difficulty=easy))
- use-after-free bugs
- reverse proxies ([easy posts on Load balancing](https://swe.quest/tags/load-balancing.md?difficulty=easy))

## Keywords

nginx, nginx2root, CVE-2026-123007, HTTP/2, HTTP/3, QUIC, SCTP, Cloudflare

## Related posts

- [Docker patches Java4Shell and the NGINX HTTP/2 with Docker Hardened Images](https://swe.quest/articles/docker-patches-java4shell-and-the-nginx-http-2-with-docker-hardened-images-8ddbd959f327792f.md): Docker · 2026-11-19 · Medium · 15 min read · Vulnerability research, Java & JVM, Containers, Supply chain security
  Java4Shell (CVE-2026-114938) is a HotSpot memory-corruption bug in the AVX-512 VBMI Base64 decoding intrinsic that writes up to 62 bytes past a heap buffer, enabling heap disclosure and pre-auth RCE in apps like Keycloak and Jenkins on Java 17.0.6+ running on affected x86-64 CPUs.
- [Incident Report: October 16th, 2025](https://swe.quest/articles/incident-report-october-16th-2025-6eb111a489b39aef.md): Railway · 2025-10-16 · Easy · 3 min read · Incidents & postmortems, Load balancing, Resilience, CDN & edge
  A traffic spike on Railway's Edge Network coincided with a routine edge service upgrade and exhausted memory in an internal routing service that was already running at high utilization.
- [How Cloudflare WAF protects against ruby2shell (CVE-2026-132825)](https://swe.quest/articles/how-cloudflare-waf-protects-against-ruby2shell-cve-2026-132825-7727483822350470.md): Cloudflare · 2026-11-20 · Medium · 6 min read · Vulnerability research, Ruby, Application security, Memory safety
  ruby2shell (CVE-2026-132825) is a heap buffer overflow in Ruby's string case conversion: in 14 legacy single-byte encodings, uppercasing the German ß writes two bytes (SS) but reserves room for one, so 21 sharp s characters overflow by a byte, with proofs of concept reaching remote code execution.
- [php2shell: patching PHP is easy, finding it is the hard part](https://swe.quest/articles/php2shell-patching-php-is-easy-finding-it-is-the-hard-part-9a45e6f935b2d2f4.md): Sourcegraph · 2026-10-21 · Medium · 5 min read · PHP, Vulnerability research, Supply chain security, Incidents & postmortems, Memory safety
  PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35 fix two unauthenticated RCE memory-safety bugs (CVE-2026-109618/109619, dubbed php2shell) in the request lifecycle, reachable on mod\_php via a crafted multipart POST before application code runs.
- [How Cloudflare WAF helps protect against Java4Shell (CVE-2026-114938)](https://swe.quest/articles/how-cloudflare-waf-helps-protect-against-java4shell-cve-2026-114938-001767259b988fdd.md): Cloudflare · 2026-11-18 · Medium · 9 min read · Vulnerability research, Memory safety, Java & JVM, Application security
  Java4Shell (CVE-2026-114938, CVSS 9.2) is a memory-corruption bug in OpenJDK's AVX-512 Base64 decoder intrinsic.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
