CVE-2025-1097: ingress-nginx controller - configuration injection via unsanitized auth-tls-match-cn annotation

8.8 CVSS

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.)

Classification

CVE ID: CVE-2025-1097

CVSS Base Severity: HIGH

CVSS Base Score: 8.8

CVSS Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Problem Types

CWE-20 Improper Input Validation

Affected Products

Vendor: kubernetes

Product: ingress-nginx

Nuclei Template

http/cves/2025/CVE-2025-1097.yaml

Exploit Prediction Scoring System (EPSS)

EPSS Score: 4.82% (probability of being exploited)

EPSS Percentile: 88.89% (scored less or equal to compared to others)

EPSS Date: 2025-04-20 (when was this score calculated)

References

https://nvd.nist.gov/vuln/detail/CVE-2025-1097
https://github.com/kubernetes/kubernetes/issues/131007

Timeline