Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2025-24514: CWE-20 Improper Input Validation in kubernetes ingress-nginx

0
High
VulnerabilityCVE-2025-24514cvecve-2025-24514cwe-20
Published: Mon Mar 24 2025 (03/24/2025, 23:29:36 UTC)
Source: CVE Database V5
Vendor/Project: kubernetes
Product: ingress-nginx

Description

A security issue was discovered in ingress-nginx https://github.com/kubernetes/ingress-nginx where the `auth-url` Ingress annotation can be used to inject configuration into nginx. This can lead to arbitrary code execution in the context of the ingress-nginx controller, and disclosure of Secrets accessible to the controller. (Note that in the default installation, the controller can access all Secrets cluster-wide.)

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 02/26/2026, 23:53:41 UTC

Technical Analysis

CVE-2025-24514 is a vulnerability classified under CWE-20 (Improper Input Validation) found in the Kubernetes ingress-nginx controller, specifically affecting versions from initial releases up to 1.12.0. The issue stems from insufficient validation of the 'auth-url' annotation in Ingress resources, which is intended to specify an external authentication URL. An attacker with the ability to create or modify Ingress resources can craft malicious 'auth-url' values that inject arbitrary configuration directives into the nginx configuration managed by the ingress-nginx controller. Because the ingress-nginx controller runs with elevated privileges and has access to all Kubernetes Secrets by default, this injection can lead to arbitrary code execution within the controller's process context. Furthermore, attackers can leverage this to disclose sensitive Secrets stored in the cluster, potentially compromising credentials, tokens, or other confidential data. The vulnerability is exploitable remotely over the network without requiring user interaction, but it does require some level of privileges to create or modify Ingress resources (PR:L). The CVSS 3.1 base score of 8.8 reflects high impact on confidentiality, integrity, and availability, with low attack complexity and no user interaction needed. No patches or fixes are linked yet, and no known exploits have been reported in the wild as of the publication date. This vulnerability highlights the risks of insufficient input validation in Kubernetes controllers that manage critical cluster components and secrets.

Potential Impact

The impact of CVE-2025-24514 is severe for organizations running Kubernetes clusters with ingress-nginx versions up to 1.12.0. Successful exploitation can lead to full compromise of the ingress-nginx controller, allowing attackers to execute arbitrary code within the controller's context. Since the controller typically has cluster-wide access to Secrets, attackers can exfiltrate sensitive data such as credentials, tokens, and certificates, potentially enabling further lateral movement and privilege escalation within the cluster. This can result in data breaches, service disruption, and loss of trust in the affected infrastructure. The ability to inject configuration also threatens the integrity and availability of services exposed via ingress-nginx, potentially allowing attackers to redirect traffic, cause denial of service, or manipulate application behavior. Given the widespread adoption of Kubernetes and ingress-nginx as a common ingress controller, the vulnerability poses a significant risk to cloud-native environments globally, especially those relying on default configurations that grant broad Secret access to the controller.

Mitigation Recommendations

To mitigate CVE-2025-24514, organizations should immediately upgrade ingress-nginx to a version where this vulnerability is patched once available. Until a patch is released, consider the following specific mitigations: 1) Restrict permissions to create or modify Ingress resources with the 'auth-url' annotation by applying strict Role-Based Access Control (RBAC) policies limiting who can define or alter Ingress objects. 2) Implement admission controllers or validating webhooks to enforce strict validation on Ingress annotations, particularly 'auth-url', to prevent injection of malicious configuration. 3) Reduce the ingress-nginx controller's access scope by limiting its permissions to only necessary Secrets rather than cluster-wide access, using Kubernetes RBAC best practices. 4) Monitor ingress-nginx logs and Kubernetes audit logs for suspicious Ingress creation or modification activities. 5) Employ network segmentation and isolate the ingress-nginx controller to limit the blast radius of potential compromise. 6) Regularly scan cluster configurations and deployed resources for anomalous or unexpected Ingress annotations. These targeted mitigations go beyond generic advice by focusing on controlling the attack vector and minimizing privileges to reduce exploitability and impact.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
kubernetes
Date Reserved
2025-01-23T00:50:17.929Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 69091e18c28fd46ded86986d

Added to database: 11/3/2025, 9:26:48 PM

Last enriched: 2/26/2026, 11:53:41 PM

Last updated: 3/23/2026, 9:44:51 PM

Views: 105

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses