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-1097: CWE-20 Improper Input Validation in kubernetes ingress-nginx

0
High
VulnerabilityCVE-2025-1097cvecve-2025-1097cwe-20
Published: Mon Mar 24 2025 (03/24/2025, 23:29:05 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-tls-match-cn` 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:23:55 UTC

Technical Analysis

CVE-2025-1097 is a vulnerability classified under CWE-20 (Improper Input Validation) found in the Kubernetes ingress-nginx controller, specifically in versions up to 1.12.0. The flaw stems from insufficient validation of the auth-tls-match-cn Ingress annotation, which is intended to match client TLS certificate common names for authentication purposes. An attacker with at least limited privileges to create or modify Ingress resources can exploit this by injecting malicious configuration directives into the nginx configuration generated by ingress-nginx. This injection can lead to arbitrary code execution within the ingress-nginx controller's runtime environment, which typically runs with elevated privileges and has access to all Kubernetes Secrets cluster-wide by default. Consequently, an attacker could exfiltrate sensitive data stored in Secrets, such as credentials, tokens, or certificates. The vulnerability is remotely exploitable over the network without user interaction, and the attack complexity is low given the ability to create or modify Ingress resources. The CVSS v3.1 base score is 8.8, reflecting high impact on confidentiality, integrity, and availability. No patches were linked at the time of publication, and no known exploits have been reported in the wild, but the risk remains significant due to the widespread use of ingress-nginx in Kubernetes environments.

Potential Impact

The impact of CVE-2025-1097 is substantial for organizations running Kubernetes clusters with ingress-nginx controllers. Successful exploitation allows attackers to execute arbitrary code within the ingress-nginx controller, potentially leading to full compromise of the controller pod and lateral movement within the cluster. The ability to access all Kubernetes Secrets accessible to the controller can result in leakage of sensitive credentials, tokens, and certificates, enabling further attacks against cluster components or integrated services. This compromises confidentiality and integrity of the cluster and can disrupt availability if the ingress-nginx controller is manipulated or destabilized. Given ingress-nginx's role as a critical entry point for external traffic, attackers can leverage this vulnerability to bypass security controls, intercept or redirect traffic, and undermine the security posture of cloud-native applications. The widespread adoption of Kubernetes and ingress-nginx in enterprise and cloud environments amplifies the potential global impact.

Mitigation Recommendations

To mitigate CVE-2025-1097, organizations should immediately restrict permissions to create or modify Ingress resources, limiting this capability to trusted administrators only. Implement strict admission controls and validation policies using Kubernetes Admission Controllers or Open Policy Agent (OPA) to detect and block malicious or unexpected annotations such as auth-tls-match-cn. Monitor ingress-nginx controller logs and Kubernetes audit logs for suspicious Ingress resource changes. Isolate the ingress-nginx controller by running it with the least privileges necessary, including restricting access to Secrets via Kubernetes RBAC policies and using service accounts with minimal permissions. Consider deploying network policies to limit ingress-nginx communication scope. Stay alert for official patches or updates from the Kubernetes ingress-nginx project and apply them promptly once available. Additionally, employ runtime security tools to detect anomalous behavior within ingress-nginx pods. Regularly review and rotate Secrets to minimize exposure if compromise occurs.

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-02-07T00:11:49.551Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 69091a49c28fd46ded81d02f

Added to database: 11/3/2025, 9:10:33 PM

Last enriched: 2/26/2026, 11:23:55 PM

Last updated: 3/28/2026, 10:50:46 AM

Views: 108

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