nginx2root: five memory corruption flaws in nginx could allow remote code execution
Cloudflare has described five memory corruption bugs in nginx, collectively named nginx2root, that can let an unauthenticated attacker run code on a server. Any administrator running nginx is concerned, and Cloudflare says origin servers behind its proxy are shielded from the most serious of them.
What to do nowCloudflare has published a blog analysis of five vulnerabilities in nginx, the widely deployed web server and reverse proxy. The bugs, grouped under the name nginx2root, are all memory corruption issues. According to Cloudflare, they can allow an attacker with no credentials to execute code on the target server.
For teams running nginx as a front end, load balancer or application server, the stakes are straightforward: an internet-facing server could be compromised without any prior authentication. The available summary does not list affected nginx versions or CVE identifiers, and it does not say whether a fixed release or official workaround exists.
Cloudflare states that origin servers sitting behind its proxy are protected from the most serious of these bugs. That protection only applies to traffic that actually passes through the proxy; an origin that can be reached directly from the internet does not benefit from it. The source also does not spell out which of the five flaws remain reachable through the proxy.
Until fuller details are available, administrators should inventory their nginx deployments, follow announcements from the nginx project and their operating system vendor, and be ready to roll out an update as soon as one ships.
What to do now
- Inventory every nginx instance you operate, starting with those exposed directly to the internet.
- Watch the nginx project and your Linux distribution's security advisories to identify fixed versions as soon as they are published.
- If your origins sit behind a proxy or CDN, confirm they refuse direct connections that bypass it (general good practice).
- Schedule a maintenance window so nginx can be updated quickly once a fix is released.