{"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-1098 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-1098 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-1098 and fix it if it is affected.\n\nWhat it is: CVE-2025-1098 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-1098 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-1098/ (Markdown: https://insights.sbomify.com/CVE-2025-1098/index.md)","id":"CVE-2025-1098","markdown":"https://insights.sbomify.com/CVE-2025-1098/index.md","name":"CVE-2025-1098","record":{"aliases":["GHSA-vg63-w3p9-jc9m","GO-2025-3568","MINI-4fqr-hxgc-f7x6","MINI-4g73-6j37-whpq","MINI-5wgg-qm6w-pcwc","MINI-5xqr-vmqm-7pmx","MINI-7x44-88gp-wvq7","MINI-85c7-8xp2-jhr7","MINI-fpgp-2j4j-c4wf","MINI-jgc8-xqrq-ch42","MINI-wr68-73h2-m5r3","MINI-xgm9-jvr2-qfmg"],"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 arbitrary nginx configuration via unsanitized mirror annotations, leading to code execution and secret disclosure in the ingress-nginx controller.","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 `mirror-target` and `mirror-host` Ingress annotations can be used to inject arbitrary 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":"2026-02-04","github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":1,"refs":[{"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-1098.yaml","stars":null,"title":"Ingress-Nginx Controller - Configuration Injection via Unsanitized Mirror Annotations"}],"tier":"weaponised"},"has_fix":true,"headline":"ingress-nginx controller - configuration injection via unsanitized mirror annotations","id":"CVE-2025-1098","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":"Information Disclosure Vulnerability in TP-Link Tapo C500 Wi-Fi Camera","id":"CVE-2025-1099"},"packages":[{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"k8s.io/ingress-nginx","purl":"pkg:golang/k8s.io/ingress-nginx","source":"GO-2025-3568"},{"ecosystem":"Go","fixed":["1.11.5"],"introduced":["0"],"last_affected":[],"package":"k8s.io/ingress-nginx","purl":null,"source":"GHSA-vg63-w3p9-jc9m"},{"ecosystem":"Go","fixed":["1.11.5"],"introduced":["0"],"last_affected":[],"package":"k8s.io/ingress-nginx","purl":"pkg:golang/k8s.io/ingress-nginx","source":"GHSA-vg63-w3p9-jc9m"},{"ecosystem":"Go","fixed":["1.12.1"],"introduced":["1.12.0-beta.0"],"last_affected":[],"package":"k8s.io/ingress-nginx","purl":null,"source":"GHSA-vg63-w3p9-jc9m"},{"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-vg63-w3p9-jc9m"}],"prev":{"headline":"ingress-nginx controller - configuration injection via unsanitized auth-tls-match-cn annotation","id":"CVE-2025-1097"},"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"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-02-26","vendors":["kubernetes"]},"summary":"Attackers can inject arbitrary nginx configuration via unsanitized mirror annotations, leading to code execution and secret disclosure in the ingress-nginx controller.","url":"https://insights.sbomify.com/CVE-2025-1098/"}