Cyber Posture

CVE-2025-1097

HighPublic PoC

Published: 25 March 2025

Published
25 March 2025
Modified
15 April 2026
KEV Added
Patch
CVSS Score 8.8 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS Score 0.6686 98.6th percentile
Risk Priority 58 60% EPSS · 20% KEV · 20% CVSS

Description

Adversaries may abuse command and script interpreters to execute commands, scripts, or binaries.

Security Summary

CVE-2025-1097 is a vulnerability in the ingress-nginx controller for Kubernetes, available at https://github.com/kubernetes/ingress-nginx. The flaw resides in the `auth-tls-match-cn` Ingress annotation, which allows attackers to inject arbitrary configuration into the underlying nginx process. This results in arbitrary code execution within the context of the ingress-nginx controller pod and disclosure of Kubernetes Secrets accessible to the controller. In default installations, the controller possesses cluster-wide read access to all Secrets. The issue is classified under CWE-20 (Improper Input Validation) with a CVSS v3.1 base score of 8.8 (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H).

An attacker with low privileges, such as the ability to create or modify Ingress resources in a Kubernetes namespace, can exploit this vulnerability over the network with low complexity and no user interaction. By crafting a malicious `auth-tls-match-cn` annotation in an Ingress object, the attacker injects nginx configuration that executes arbitrary code as the ingress-nginx controller. This grants high-impact access to confidential data like cluster-wide Secrets, enables integrity violations through code injection, and allows availability disruptions, all within the controller's scope.

Advisories and references provide guidance on mitigation. The Kubernetes issue tracker details the problem at https://github.com/kubernetes/kubernetes/issues/131007, NetApp issued a related advisory at https://security.netapp.com/advisory/ntap-20250328-0008/, and a proof-of-concept exploit is publicly available at https://www.exploit-db.com/exploits/52475. Security practitioners should review these sources for patch availability, version-specific fixes, and recommended workarounds like restricting Ingress annotations or controller permissions.

The public exploit on Exploit-DB indicates active interest and potential for real-world abuse targeting Kubernetes clusters using ingress-nginx.

Details

CWE(s)
CWE-20

MITRE ATT&CK Enterprise Techniques

T1190 Exploit Public-Facing Application Initial Access
Adversaries may attempt to exploit a weakness in an Internet-facing host or system to initially access a network.
T1068 Exploitation for Privilege Escalation Privilege Escalation
Adversaries may exploit software vulnerabilities in an attempt to elevate privileges.
T1059 Command and Scripting Interpreter Execution
Adversaries may abuse command and script interpreters to execute commands, scripts, or binaries.
Why these techniques?

Vulnerability in public-facing ingress-nginx allows annotation-based config injection for RCE in controller pod, enabling exploitation of public-facing app (T1190), privilege escalation from low-priv Ingress access to cluster secrets/RCE (T1068), and arbitrary code execution (T1059).

Confidence: HIGH · MITRE ATT&CK Enterprise v19.0

References