Description
A security issue was discovered in ingress-nginx where the `nginx.ingress.kubernetes.io/rewrite-target` 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.)
Problem types
CWE-20 Improper Input Validation
Product status
Any version before 1.13.8
Any version before 1.14.4
Any version before 1.15.0
Credits
Kai Aizen
References
www.openwall.com/lists/oss-security/2026/03/09/8
github.com/kubernetes/kubernetes/issues/137560