PoC Monitor
← All CVEs
CVE-2025-1097published 24 Mar 2025 23:29 UTCData: JSON · API

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

First public PoC 1.8 daysafter publication · 26 Mar 2025
Public PoCs53 on GitHub · 2 Exploit-DB, Metasploit or nuclei
CVSS8.8high · scored by CNA · CWE-20
CISA KEV Not listednot known exploited

Affected versions and mitigation

From the CVE record, GitHub Security Advisories and the vendor's references.

Affected

kubernetes ingress-nginx
  • <= 1.11.4
  • 1.12.0
k8s.io/ingress-nginx (Go)
  • < 1.11.5

Fixed in 1.11.5

from GitHub Security Advisory GHSA-823x-fv5p-h7hw

k8s.io/ingress-nginx (Go)
  • >= 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 publication
-2t=0+2+4+6+8CVE published24 Mar 2025 · t = 0First public PoC26 Mar 2025 · t+1.8d

First 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
RepositoryCreatedStarsAssessment
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
RepositoryCreatedStarsAssessment
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
RepositoryCreatedStarsAssessment
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.

PoC characteristics

What to hunt for in your logs · from 3 PoC repos

Regex

Generated from PoC characteristics; not yet reviewed. Matches the request path and query.

POST /admission
(?i)^/admission(?:[?#].*)?$

Suricata

Template generated from PoC characteristics. Review before deploying.

POST /admission
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.

POST /admission
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