SecPod

Learn Search

Search across all Learn content

← Back to Security Research
Ingress NGINX Remote Code Execution Vulnerabilities Discovered – Patch Now!

Ingress NGINX Remote Code Execution Vulnerabilities Discovered – Patch Now!

Critical security vulnerabilities have been discovered in the Ingress-NGINX Controller for Kubernetes. CVE-2025-1097, CVE-2025-1098, CVE-2025-24514, and CVE-2025-1974—collectively known as ‘IngressNightmare’—allow attackers to gain unauthorized access to secrets across all namespaces. This results i...

Mar 24, 2025By Vishal C E4 min read

Critical security vulnerabilities have been discovered in the Ingress-NGINX Controller for Kubernetes. CVE-2025-1097, CVE-2025-1098, CVE-2025-24514, and CVE-2025-1974—collectively known as ‘IngressNightmare’—allow attackers to gain unauthorized access to secrets across all namespaces. This results in unauthenticated remote code execution and ultimately leads to a complete takeover of the Kubernetes cluster.

Understanding the Ingress NGINX Controller

The Ingress-NGINX Controller (not to be confused with the NGINX Ingress Controller by NGINX) is a widely adopted open-source component that manages external access to services within Kubernetes clusters, utilizing NGINX as a reverse proxy and load balancer. It exposes HTTP and HTTPS routes from outside a cluster to services within a cluster and enables traffic mapping to different backends based on rules defined via the Kubernetes API.

Technical Details

  • CVE-2025-1097 : auth-tls-match-cn Annotation InjectionThis vulnerability arises from improper input validation in the CommonNameAnnotationValidator function in the authtls parser. The auth-tls-match-cn annotation requires the value to start with ‘CN=’ and the remaining character to form a valid regular expression. When both these requirements are bypassed by an attacker, they can inject arbitrary NGINX configurations.
  • CVE-2025-1098 : mirror UID InjectionThis vulnerability arises from unsanitized input being inserted into $location.Mirror.Source in the temporary NGINX configuration. The mirror annotation parser, which processes the UID from the ingress object, is the cause for this insertion—the ing. The UID field in the UID parameter is not a Kubernetes annotation, and hence, the input is not sanitized by the annotations’ regex rules. This allows the context to be escaped and arbitrary NGINX configuration directives to be injected.
  • CVE-2025-1974: NGINX Configuration Code ExecutionThis vulnerability arises from executing the NGINX configuration code that has been compromised/injected using the other CVEs mentioned. The NGINX configuration is tested by nginx-t. A directive that executes arbitrary code in nginx-t will compromise the pod and allow attackers to attain its highly privileged Kubernetes role.
  • CVE-2025-24514: auth-url Annotation InjectionThis vulnerability arises from improper input sanitization of a URL field inserted into the temporary configuration. The author parser requires auth-url fields to be set, among which the URL field is fetched as $externalAuth.URL without proper sanitization, which allows attackers to inject arbitrary NGINX configuration directives that are run by nginx-t

Another Vulnerability in Ingress-NGINX

  • CVE-2025-24513: auth secret file Path Traversal VulnerabilityThis vulnerability arises due to the inclusion of attacker-provided data in a file name by the ingress-nginx Admission Controller feature. This results in directory traversal within the container, enabling the attacker to access auth secret files.

All the above vulnerabilities take advantage of the fact that admission controllers are accessible over the network without authentication. Attackers can thus send malicious ingress objects ( AdmissionReview requests) directly to the admission controller.

Affected Products

This issue affects Ingres-nginx. Clusters that don’t have an ingress-nginx installer are not affected by the above vulnerabilities. This can be verified by running the below command:

kubectl get pods --all-namespaces --selector app.kubernetes.io/name=ingress-nginx

Affected ingress-nginx Versions:

  • Versions before 1.11.0
  • Version from 1.11.0 to 1.11.4
  • Version 1.12.0

Mitigation and Workarounds

Kubernetes has released ingress-nginx versions 1.11.5 and 1.12.1 to address the above vulnerabilities. We strongly recommend users upgrade to the fixed versions or later to mitigate the identified vulnerabilities.

We also strongly recommend disabling the Validating Admission Controller functionality of ingress-nginx to mitigate this vulnerability.

Instantly Fix Risks with SanerNow Patch Management

SanerNow patch management is a continuous, automated, and integrated software that instantly fixes risks exploited in the wild. The software supports major operating systems like Windows, Linux, and macOS, as well as 550+ third-party applications.

It also allows you to set up a safe testing area to test patches before deploying them in a primary production environment. SanerNow patch management additionally supports a patch rollback feature in case of patch failure or a system malfunction.

Experience the fastest and most accurate patching software here.

Featured Posts

Open StyleSmuggler: Inside the Unpatched Magento Zero-Day Backdooring Live Stores
StyleSmuggler: Inside the Unpatched Magento Zero-Day Backdooring Live Stores

CVE Research

StyleSmuggler: Inside the Unpatched Magento Zero-Day Backdooring Live Stores

StyleSmuggler, an unpatched Magento and Adobe Commerce flaw letting attackers execute code without authentication via log poisoning, installing a persistent Linux backdoor that has already compromised live stores with no vendor patch available.

Sep 7, 2026

Open CVE-2026-6471: 12-Year-Old PostgreSQL PostGREShell Flaw Enables Server Takeover
CVE-2026-6471: 12-Year-Old PostgreSQL PostGREShell Vulnerability

CVE Research

CVE-2026-6471: 12-Year-Old PostgreSQL PostGREShell Flaw Enables Server Takeover

Sep 7, 2026

Open Root-Level RCE Flaw in Cisco Nexus 9000 Series Switches Exposes Networks to Complete Compromise — CVE-2026-20212
Root-Level RCE Flaw in Cisco Nexus 9000 Series Switches Exposes Networks to Complete Compromise — CVE-2026-20212

CVE Research

Root-Level RCE Flaw in Cisco Nexus 9000 Series Switches Exposes Networks to Complete Compromise — CVE-2026-20212

CVE-2026-20212 is a critical vulnerability in Cisco Nexus 9000 Series Switches that use Silicon One ASICs. It allows an unauthenticated remote attacker to execute code with root privileges by sending crafted input to TCP ports 43210 and 43211, which are reachable in the default Layer 3 VRF. Exploitation can also crash the S1HAL process and force a device reload. This article covers how the vulnerability works, the affected product identifiers, its potential impact, available workarounds, and how to identify fixed software using the Cisco Software Checker.

Sep 4, 2026

Open SonicWall SMA 1000 Under Active Attack: Two Zero-Days Enable SSRF and Remote Code Execution
SonicWall SMA 1000 Under Active Attack: Two Zero-Days Enable SSRF and Remote Code Execution

CVE Research

SonicWall SMA 1000 Under Active Attack: Two Zero-Days Enable SSRF and Remote Code Execution

Sep 3, 2026