CVE-2025-1098: ingress-nginx controller - configuration injection via unsanitized mirror annotations
A security issue was discovered in 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.)
Published Mar 25, 2025 · Updated Nov 3, 2025
Affected packages
k8s.io/ingress-nginx
- Ecosystem
- Go
- Affected
- < 1.11.5
- Fixed in
- 1.11.5
- Check
go list -m k8s.io/ingress-nginx
k8s.io/ingress-nginx
- Ecosystem
- Go
- Affected
- >= 1.12.0-beta.0, < 1.12.1
- Fixed in
- 1.12.1
- Check
go list -m k8s.io/ingress-nginx
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
A security issue was discovered in 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.)
Credited to dor-hayun.
References
- https://nvd.nist.gov/vuln/detail/CVE-2025-1098
- https://github.com/kubernetes/kubernetes/issues/131008
- https://github.com/kubernetes/ingress-nginx/releases/tag/controller-v1.11.5
- https://github.com/kubernetes/ingress-nginx/releases/tag/controller-v1.12.1
- https://groups.google.com/g/kubernetes-security-announce/c/2qa9DFtN0cQ
- https://security.netapp.com/advisory/ntap-20250328-0008
- https://github.com/advisories/GHSA-vg63-w3p9-jc9m
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Go vulnerabilities
All Go entriesCVE-2026-4342
ingress-nginx comment-based nginx configuration injection
high8.8Mar 20, 2026CVE-2026-1580
ingress-nginx's `nginx.ingress.kubernetes.io/auth-method` Ingress annotation can be used to inject configuration into nginx
high8.8Feb 4, 2026CVE-2026-24512
ingress-nginx's `rules.http.paths.path` Ingress field can be used to inject configuration into nginx
high8.8Feb 4, 2026CVE-2026-24513
ingress-nginx has Improper Check for Unusual or Exceptional Conditions
low3.1Feb 4, 2026CVE-2026-24514
ingress-nginx vulnerable to Allocation of Resources Without Limits or Throttling
medium6.5Feb 4, 2026CVE-2025-1097
ngress-nginx controller - configuration injection via unsanitized auth-tls-match-cn annotation
high8.8Mar 25, 2025
