CVE-2026-3288: CWE-20 Improper Input Validation in Kubernetes ingress-nginx
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.)
AI Analysis
Technical Summary
This vulnerability arises from improper input validation (CWE-20) in the ingress-nginx Kubernetes controller's handling of the `nginx.ingress.kubernetes.io/rewrite-target` annotation. An attacker with at least limited privileges can craft ingress resources that inject arbitrary nginx configuration directives. This can lead to arbitrary code execution within the ingress-nginx controller process and unauthorized disclosure of Kubernetes Secrets accessible to the controller. The default ingress-nginx installation typically grants the controller cluster-wide access to Secrets, amplifying the impact. The CVSS 3.1 base score is 8.8 (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H), reflecting network attack vector, low attack complexity, required privileges, no user interaction, and high impact on confidentiality, integrity, and availability. No patch or official fix is currently documented, and no exploits are known in the wild.
Potential Impact
Successful exploitation can lead to arbitrary code execution in the ingress-nginx controller context, allowing an attacker to execute commands with the controller's privileges. It also enables disclosure of Kubernetes Secrets accessible to the controller, which by default includes all cluster Secrets. This compromises confidentiality, integrity, and availability of the Kubernetes cluster resources managed by ingress-nginx.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, restrict who can create or modify ingress resources with the `nginx.ingress.kubernetes.io/rewrite-target` annotation to trusted users only. Consider applying admission controls or validating ingress annotations to prevent malicious configuration injection. Monitor official Kubernetes ingress-nginx advisories for updates and patches.
CVE-2026-3288: CWE-20 Improper Input Validation in Kubernetes ingress-nginx
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.)
CVSS v3.1
Score 8.8high
Affected software
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
This vulnerability arises from improper input validation (CWE-20) in the ingress-nginx Kubernetes controller's handling of the `nginx.ingress.kubernetes.io/rewrite-target` annotation. An attacker with at least limited privileges can craft ingress resources that inject arbitrary nginx configuration directives. This can lead to arbitrary code execution within the ingress-nginx controller process and unauthorized disclosure of Kubernetes Secrets accessible to the controller. The default ingress-nginx installation typically grants the controller cluster-wide access to Secrets, amplifying the impact. The CVSS 3.1 base score is 8.8 (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H), reflecting network attack vector, low attack complexity, required privileges, no user interaction, and high impact on confidentiality, integrity, and availability. No patch or official fix is currently documented, and no exploits are known in the wild.
Potential Impact
Successful exploitation can lead to arbitrary code execution in the ingress-nginx controller context, allowing an attacker to execute commands with the controller's privileges. It also enables disclosure of Kubernetes Secrets accessible to the controller, which by default includes all cluster Secrets. This compromises confidentiality, integrity, and availability of the Kubernetes cluster resources managed by ingress-nginx.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, restrict who can create or modify ingress resources with the `nginx.ingress.kubernetes.io/rewrite-target` annotation to trusted users only. Consider applying admission controls or validating ingress annotations to prevent malicious configuration injection. Monitor official Kubernetes ingress-nginx advisories for updates and patches.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- kubernetes
- Date Reserved
- 2026-02-26T16:47:50.459Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 69af3955ea502d3aa8c59c87
Added to database: 3/9/2026, 9:19:17 PM
Last enriched: 5/1/2026, 2:06:58 AM
Last updated: 6/12/2026, 12:13:54 PM
Views: 507
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.