Skip to content
RCE Write-up Advanced

Ingress-NGINX Under Siege: A Deep Dive into CVE-2025–1974 and C

The Ingress-NGINX Controller mishandled ingress object annotations, allowing configuration injection into NGINX. An unauthenticated attacker with network access to the admission controller could execute arbitrary code within the controller's pod and potentially compromise the entire cluster.

Anindya Sankar Roy Follow

Published on fr3ak-hacks.medium.com

​In March 2025, a critical set of vulnerabilities, collectively termed IngressNightmare, was disclosed in the Kubernetes Ingress-NGINX Controller. These vulnerabilities, particularly CVE-2025–1974, pose significant security risks, including the potential for unauthenticated remote code execution (RCE) and full cluster…

Anindya Sankar Roy, on fr3ak-hacks.medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

The admission controller improperly handled ingress object annotations, allowing malicious configurations to be injected into NGINX.

Impact

An unauthenticated attacker with network access to the admission controller could execute arbitrary code in the ingress controller pod and potentially take over the entire cluster.

What the attacker needed

Network access to the admission controller

The fix

The vulnerabilities were fixed by upgrading to Ingress-NGINX Controller v1.12.1 or later, or v1.11.5 or later.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

The Ingress-NGINX Controller is a component in Kubernetes that routes incoming web traffic to the right services. It reads configuration from annotations (small notes attached to objects) and passes them to NGINX, the web server it manages. Because it did not properly check these annotations, an attacker could sneak in extra NGINX settings that let them run their own commands on the server.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.