CVE-2026-41246: CWE-94: Improper Control of Generation of Code ('Code Injection') in projectcontour contour
CVE-2026-41246 is a high-severity vulnerability in projectcontour's contour Kubernetes ingress controller affecting versions from 1. 19. 0 up to but not including 1. 31. 6, 1. 32. 5, and 1. 33. 4. The issue arises from improper sanitization in the Cookie Rewriting feature, allowing an attacker with RBAC permissions to inject Lua code via HTTPProxy resource configurations.
AI Analysis
Technical Summary
Contour, a Kubernetes ingress controller using Envoy proxy, contains a code injection vulnerability (CWE-94) in its Cookie Rewriting feature in versions >=1.19.0 and <1.31.6, >=1.32.0 and <1.32.5, and >=1.33.0 and <1.33.4. The vulnerability occurs because user-controlled values in HTTPProxy resources are interpolated into Lua code without sufficient sanitization, enabling an attacker with RBAC permissions to inject arbitrary Lua code executed by Envoy's HTTP Lua filter. This can lead to arbitrary code execution within the Envoy proxy process, including reading xDS client credentials or causing denial of service for other tenants. The vulnerability is fixed in versions 1.31.6, 1.32.5, and 1.33.4.
Potential Impact
An attacker with RBAC permissions to create or modify HTTPProxy resources can exploit this vulnerability to execute arbitrary Lua code within the Envoy proxy process. This can compromise the confidentiality of Envoy's xDS client credentials and disrupt service availability for other tenants sharing the Envoy instance. The vulnerability does not allow code execution outside the Envoy process or on routes not controlled by the attacker.
Mitigation Recommendations
This vulnerability is fixed in contour versions 1.31.6, 1.32.5, and 1.33.4. Users should upgrade to one of these fixed versions to remediate the issue. Patch status is not explicitly stated beyond these fixed versions, so verify with the vendor advisory for the latest remediation guidance. No alternative mitigations are provided in the available data.
CVE-2026-41246: CWE-94: Improper Control of Generation of Code ('Code Injection') in projectcontour contour
Description
CVE-2026-41246 is a high-severity vulnerability in projectcontour's contour Kubernetes ingress controller affecting versions from 1. 19. 0 up to but not including 1. 31. 6, 1. 32. 5, and 1. 33. 4. The issue arises from improper sanitization in the Cookie Rewriting feature, allowing an attacker with RBAC permissions to inject Lua code via HTTPProxy resource configurations.
CVSS v3.1
Score 8.1high
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Contour, a Kubernetes ingress controller using Envoy proxy, contains a code injection vulnerability (CWE-94) in its Cookie Rewriting feature in versions >=1.19.0 and <1.31.6, >=1.32.0 and <1.32.5, and >=1.33.0 and <1.33.4. The vulnerability occurs because user-controlled values in HTTPProxy resources are interpolated into Lua code without sufficient sanitization, enabling an attacker with RBAC permissions to inject arbitrary Lua code executed by Envoy's HTTP Lua filter. This can lead to arbitrary code execution within the Envoy proxy process, including reading xDS client credentials or causing denial of service for other tenants. The vulnerability is fixed in versions 1.31.6, 1.32.5, and 1.33.4.
Potential Impact
An attacker with RBAC permissions to create or modify HTTPProxy resources can exploit this vulnerability to execute arbitrary Lua code within the Envoy proxy process. This can compromise the confidentiality of Envoy's xDS client credentials and disrupt service availability for other tenants sharing the Envoy instance. The vulnerability does not allow code execution outside the Envoy process or on routes not controlled by the attacker.
Mitigation Recommendations
This vulnerability is fixed in contour versions 1.31.6, 1.32.5, and 1.33.4. Users should upgrade to one of these fixed versions to remediate the issue. Patch status is not explicitly stated beyond these fixed versions, so verify with the vendor advisory for the latest remediation guidance. No alternative mitigations are provided in the available data.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-04-18T03:47:03.135Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69ea9e7887115cfb686fc39e
Added to database: 4/23/2026, 10:34:32 PM
Last enriched: 5/1/2026, 8:44:16 PM
Last updated: 6/7/2026, 8:04:39 AM
Views: 67
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.