{"answers":{"affected":"5 open source packages ship an affected version, including k8s.io/ingress-nginx.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-1097 exists.","fix":"Upgrade k8s.io/ingress-nginx to a fixed version for your release line: 1.11.5 or 1.12.1.","what":"CVE-2025-1097 is a high-severity code injection vulnerability in kubernetes ingress-nginx, published on 24 Mar 2025. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-1097 and fix it if it is affected.\n\nWhat it is: CVE-2025-1097 is a high-severity code injection vulnerability in kubernetes ingress-nginx, published on 24 Mar 2025. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-1097 exists.\n\nAffected packages and fixed versions:\n- k8s.io/ingress-nginx (Go): affected all versions; no fix listed\n- k8s.io/ingress-nginx (Go): affected all versions; fixed in 1.11.5\n- k8s.io/ingress-nginx (Go): affected all versions; fixed in 1.11.5\n- k8s.io/ingress-nginx (Go): affected from 1.12.0-beta.0; fixed in 1.12.1\n- k8s.io/ingress-nginx (Go): affected from 1.12.0-beta.0; fixed in 1.12.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2025-1097/ (Markdown: https://insights.sbomify.com/CVE-2025-1097/index.md)","id":"CVE-2025-1097","markdown":"https://insights.sbomify.com/CVE-2025-1097/index.md","name":"CVE-2025-1097","record":{"aliases":["GHSA-823x-fv5p-h7hw","GO-2025-3565","MINI-45p2-p5rg-8m87","MINI-69mc-p3wc-qx7v","MINI-89f9-gcxp-3fg6","MINI-fcj4-p9c9-8fp8","MINI-hw9p-7pr7-46x9","MINI-jwq8-5gx8-x58f","MINI-m7fg-wxwp-xh5j","MINI-mxv2-9r37-769m","MINI-q33q-m362-5qg8","MINI-rp77-j343-6r84"],"analysis":{"component_type":"container_or_infrastructure","fix_type":"upgrade","impacts":["code_execution","data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"Kubernetes ingress controller","requires_auth":"low_privilege","summary":"Attackers can inject nginx configuration via annotations to execute arbitrary code and read cluster secrets in ingress-nginx.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"kubernetes","cpe":[],"cvss":{"score":8.8,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"}],"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.)","ecosystems":["Go"],"exploits":{"exploitdb":1,"first_seen":"2025-03-26","github_poc":2,"max_poc_stars":248,"metasploit":0,"nuclei":1,"refs":[{"date":"2025-03-26T18:52:20Z","kind":"github_poc","ref":"https://github.com/hakaioffsec/IngressNightmare-PoC","stars":248,"title":"This is a PoC code to exploit the IngressNightmare vulnerabilities (CVE-2025-1097, CVE-2025-1098, CVE-2025-24514, and CVE-2025-1974)."},{"date":"2025-03-30T08:32:56Z","kind":"github_poc","ref":"https://github.com/lufeirider/IngressNightmare-PoC","stars":9,"title":"IngressNightmare-PoC： (CVE-2025-1097, CVE-2025-1098, CVE-2025-24514, CVE-2025-1974)  PoC ，One-click script 。 一键脚本 "},{"date":"2026-02-04","kind":"exploitdb","ref":"52475","stars":null,"title":"Ingress-NGINX Admission Controller v1.11.1 - FD Injection to RCE"},{"date":null,"kind":"nuclei","ref":"http/cves/2025/CVE-2025-1097.yaml","stars":null,"title":"Ingress-Nginx Controller - Configuration Injection via Unsanitized `auth-tls-match-cn` Annotation"}],"tier":"weaponised"},"has_fix":true,"headline":"ingress-nginx controller - configuration injection via unsanitized auth-tls-match-cn annotation","id":"CVE-2025-1097","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"code_injection","year":"2025"},"n_packages":5,"n_references":1,"next":{"headline":"ingress-nginx controller - configuration injection via unsanitized mirror annotations","id":"CVE-2025-1098"},"packages":[{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"k8s.io/ingress-nginx","purl":"pkg:golang/k8s.io/ingress-nginx","source":"GO-2025-3565"},{"ecosystem":"Go","fixed":["1.11.5"],"introduced":["0"],"last_affected":[],"package":"k8s.io/ingress-nginx","purl":null,"source":"GHSA-823x-fv5p-h7hw"},{"ecosystem":"Go","fixed":["1.11.5"],"introduced":["0"],"last_affected":[],"package":"k8s.io/ingress-nginx","purl":"pkg:golang/k8s.io/ingress-nginx","source":"GHSA-823x-fv5p-h7hw"},{"ecosystem":"Go","fixed":["1.12.1"],"introduced":["1.12.0-beta.0"],"last_affected":[],"package":"k8s.io/ingress-nginx","purl":null,"source":"GHSA-823x-fv5p-h7hw"},{"ecosystem":"Go","fixed":["1.12.1"],"introduced":["1.12.0-beta.0"],"last_affected":[],"package":"k8s.io/ingress-nginx","purl":"pkg:golang/k8s.io/ingress-nginx","source":"GHSA-823x-fv5p-h7hw"}],"prev":{"headline":"** REJECT ** DO NOT USE THIS CANDIDATE NUMBER.","id":"CVE-2025-1096"},"products":["ingress-nginx"],"published":"2025-03-24","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"attribution","licence":"GPL-2.0-or-later","name":"Exploit-DB"},{"class":"attribution","licence":"MIT","name":"Nuclei templates"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-02-26","vendors":["kubernetes"]},"summary":"Attackers can inject nginx configuration via annotations to execute arbitrary code and read cluster secrets in ingress-nginx.","url":"https://insights.sbomify.com/CVE-2025-1097/"}