{"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-1974 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-1974 is a critical code injection vulnerability in kubernetes ingress-nginx, published on 24 Mar 2025. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-1974 and fix it if it is affected.\n\nWhat it is: CVE-2025-1974 is a critical code injection vulnerability in kubernetes ingress-nginx, published on 24 Mar 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-1974 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-1974/ (Markdown: https://insights.sbomify.com/CVE-2025-1974/index.md)","id":"CVE-2025-1974","markdown":"https://insights.sbomify.com/CVE-2025-1974/index.md","name":"CVE-2025-1974","record":{"aliases":["GHSA-mgvx-rpfc-9mpv","GO-2025-3567","MINI-22gx-v63r-9mwr","MINI-236g-p7hj-q93f","MINI-5w3g-h4pv-c8qw","MINI-88m4-8x6w-2rhh","MINI-g4h6-24f3-mfmh","MINI-gmp8-w4q4-rfr2","MINI-pj7x-rgqj-rrmv","MINI-r29p-pfh8-m32m","MINI-rrpf-hrgf-hfh2","MINI-v5cx-6mxf-fhf6","openSUSE-SU-2025:14941-1","openSUSE-SU-2025:14942-1","openSUSE-SU-2025:14943-1","openSUSE-SU-2025:14944-1","openSUSE-SU-2025:15083-1","openSUSE-SU-2025:15569-1","openSUSE-SU-2026:10050-1","openSUSE-SU-2026:10799-1","openSUSE-SU-2026:11842-1"],"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-nginx","requires_auth":"none","summary":"Unauthenticated attackers with pod network access can achieve remote code execution in the ingress-nginx controller, exposing cluster secrets.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"kubernetes","cpe":[],"cvss":{"score":9.8,"severity":"critical","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-653","name":"Improper Isolation or Compartmentalization"}],"description":"A security issue was discovered in Kubernetes where under certain conditions, an unauthenticated attacker with access to the pod network can achieve arbitrary code execution in the context of the ingress-nginx controller. This can lead to disclosure of Secrets accessible to the controller. (Note that in the default installation, the controller can access all Secrets cluster-wide.)","ecosystems":["Go","openSUSE:Tumbleweed"],"exploits":{"exploitdb":2,"first_seen":"2025-03-24","github_poc":24,"max_poc_stars":98,"metasploit":0,"nuclei":1,"refs":[{"date":"2025-03-26T06:43:36Z","kind":"github_poc","ref":"https://github.com/Esonhugh/ingressNightmare-CVE-2025-1974-exps","stars":98,"title":"IngressNightmare POC. world first non-blind remote execution exploitation with multi-advanced exploitation methods. allow on disk exploitation. CVE-2025-24514 - auth-url injection, CVE-2025-1097 - auth-tls-match-cn injection, CVE-2025-1098 – mirror UID injection -- all available. "},{"date":"2025-03-24T21:51:04Z","kind":"github_poc","ref":"https://github.com/sandumjacob/IngressNightmare-POCs","stars":91,"title":"CVE-2025-1974"},{"date":"2025-03-25T13:23:01Z","kind":"github_poc","ref":"https://github.com/yoshino-s/CVE-2025-1974","stars":53,"title":null},{"date":"2025-03-26T14:49:29Z","kind":"github_poc","ref":"https://github.com/zwxxb/CVE-2025-1974","stars":9,"title":"Poc for Ingress RCE "},{"date":"2025-03-26T16:54:37Z","kind":"github_poc","ref":"https://github.com/hi-unc1e/CVE-2025-1974-poc","stars":4,"title":"PoC of CVE-2025-1974, modified from the world-first PoC~"},{"date":"2025-03-26T09:48:13Z","kind":"github_poc","ref":"https://github.com/1w4y/IngressNightmare-RCE-POC","stars":1,"title":"PoC for CVE-2025-1974: Critical RCE in Ingress-NGINX (\u003cv1.12.1) via unsafe config injection. Exploitable from the pod network without credentials, enabling code execution and potential cluster takeover. Fixed in v1.12.1 and v1.11.5. For research/education only."},{"date":"2025-03-28T16:57:02Z","kind":"github_poc","ref":"https://github.com/rjhaikal/POC-IngressNightmare-CVE-2025-1974","stars":1,"title":"POC IngressNightmare (CVE-2025-1974), modified from https://github.com/yoshino-s/CVE-2025-1974"},{"date":"2025-04-10T07:25:03Z","kind":"github_poc","ref":"https://github.com/Rubby2001/CVE-2025-1974-go","stars":1,"title":"Exploit CVE-2025-1974 with a single file."}],"tier":"weaponised"},"has_fix":true,"headline":"ingress-nginx admission controller RCE escalation","id":"CVE-2025-1974","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"code_injection","year":"2025"},"n_packages":14,"n_references":1,"next":{"headline":"Improper Validation of Array Index in ollama/ollama","id":"CVE-2025-1975"},"packages":[{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"k8s.io/ingress-nginx","purl":"pkg:golang/k8s.io/ingress-nginx","source":"GO-2025-3567"},{"ecosystem":"Go","fixed":["1.11.5"],"introduced":["0"],"last_affected":[],"package":"k8s.io/ingress-nginx","purl":null,"source":"GHSA-mgvx-rpfc-9mpv"},{"ecosystem":"Go","fixed":["1.11.5"],"introduced":["0"],"last_affected":[],"package":"k8s.io/ingress-nginx","purl":"pkg:golang/k8s.io/ingress-nginx","source":"GHSA-mgvx-rpfc-9mpv"},{"ecosystem":"Go","fixed":["1.12.1"],"introduced":["1.12.0-beta.0"],"last_affected":[],"package":"k8s.io/ingress-nginx","purl":null,"source":"GHSA-mgvx-rpfc-9mpv"},{"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-mgvx-rpfc-9mpv"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["1.32.3+rke2r1-1.1"],"introduced":["0"],"last_affected":[],"package":"rke2","purl":"pkg:rpm/opensuse/rke2\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2025:14941-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["1.29.15+rke2r1-1.1"],"introduced":["0"],"last_affected":[],"package":"rke2-1.29","purl":"pkg:rpm/opensuse/rke2-1.29\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2025:14942-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["1.30.11+rke2r1-1.1"],"introduced":["0"],"last_affected":[],"package":"rke2-1.30","purl":"pkg:rpm/opensuse/rke2-1.30\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2025:14943-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["1.31.7+rke2r1-1.1"],"introduced":["0"],"last_affected":[],"package":"rke2-1.31","purl":"pkg:rpm/opensuse/rke2-1.31\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2025:14944-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["1.32.4+rke2r1-1.1"],"introduced":["0"],"last_affected":[],"package":"rke2-1.32","purl":"pkg:rpm/opensuse/rke2-1.32\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2025:15083-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["1.33.5+rke2r1-1.1"],"introduced":["0"],"last_affected":[],"package":"rke2-1.33","purl":"pkg:rpm/opensuse/rke2-1.33\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2025:15569-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["1.34.3+rke2r1-1.1"],"introduced":["0"],"last_affected":[],"package":"rke2-1.34","purl":"pkg:rpm/opensuse/rke2-1.34\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2026:10050-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["1.35.4+rke2r1-1.1"],"introduced":["0"],"last_affected":[],"package":"rke2-1.35","purl":"pkg:rpm/opensuse/rke2-1.35\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2026:10799-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["1.36.4+rke2r1-1.1"],"introduced":["0"],"last_affected":[],"package":"rke2-1.36","purl":"pkg:rpm/opensuse/rke2-1.36\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2026:11842-1"}],"prev":{"headline":"Path traversal in Export and Import Users and Customers","id":"CVE-2025-1973"},"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":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-02-26","vendors":["kubernetes"]},"summary":"Unauthenticated attackers with pod network access can achieve remote code execution in the ingress-nginx controller, exposing cluster secrets.","url":"https://insights.sbomify.com/CVE-2025-1974/"}