Kubernetes ingress-nginx
ingress-nginx controller - configuration injection via unsanitized auth-tls-match-cn annotation
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.)
Affected versions and mitigation
From the CVE record, GitHub Security Advisories and the vendor's references.Affected
- <= 1.11.4
- 1.12.0
- < 1.11.5
Fixed in 1.11.5
from GitHub Security Advisory GHSA-823x-fv5p-h7hw
- >= 1.12.0-beta.0, < 1.12.1
Fixed in 1.12.1
from GitHub Security Advisory GHSA-823x-fv5p-h7hw
Mitigation
Upgrade k8s.io/ingress-nginx to 1.11.5 or later.
Upgrade k8s.io/ingress-nginx to 1.12.1 or later.
Timeline
Days relative to CVE publicationFirst public PoC 1.8 days after publication; not in CISA KEV. First PoC: hakaioffsec/IngressNightmare-PoC (created 26 Mar 2025, found by us: backfilled).
PoC repositories
Found on GitHub.3 PoCs · 2 not a PoC · 1 suspicious or fake
PoCs 3
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| hakaioffsec/IngressNightmare-PoC | 26 Mar 2025 +1.8 d | 248 | PoC via PoC Index |
| gian2dchris/ingress-nightmare-poc | 29 Mar 2025 +4.6 d | 0 | PoC via PoC Index |
| I3r1h0n/IngressNightterror | 2 Nov 2025 +223 d | 2 | PoC via PoC Index |
Not a PoC 2
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| lufeirider/IngressNightmare-PoC | 30 Mar 2025 +5.4 d | 9 | Not a PoC · unrelated |
| salt318/CVE-2025-1974 | 27 Apr 2025 +33 d | 0 | Not a PoC · unrelated |
Suspicious or fake 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| Esonhugh/ingressNightmare-CVE-2025-1974-exps | 26 Mar 2025 +1.3 d | 98 | Fake |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
Other public exploits
Exploit-DB, Metasploit and nuclei count as public PoCs. Exploit-tagged references from the CVE record and NVD are links only. None of these are analysed by us.| Source | Title | Published | Found by us |
|---|---|---|---|
| Exploit-DB | Ingress-NGINX Admission Controller v1.11.1 - FD Injection to RCE | 4 Feb 2026 | 14 Nov 2026 |
| nuclei template | nuclei template: Ingress-Nginx Controller - Configuration Injection via Unsanitized `auth-tls-match-cn` Annotation | 9 Apr 2025 | 14 Nov 2026 |
PoC characteristics
What to hunt for in your logs · from 3 PoC reposPOST /admission
- Content-Type
application/json- Seen in
- 2 repos: I3r1h0n/IngressNightterror, hakaioffsec/IngressNightmare-PoC
- Evidence
- I3r1h0n/IngressNightterror/exploit/src/main.py:60 hakaioffsec/IngressNightmare-PoC/exploit.py:43
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/admission(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2025-1097 kubernetes ingress-nginx exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/admission"; reference:url,poc.griffinguard.io/cve/CVE-2025-1097; classtype:web-application-attack; sid:9636769; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: kubernetes ingress-nginx exploit attempt (CVE-2025-1097)
id: gg-pocmon-cve-2025-1097-9636769
status: experimental
description: Request pattern taken from public PoCs for CVE-2025-1097. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2025-1097
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/admission'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2025.1097