cve.bz

CVE-2026-41246 projectcontour contour: Code Injection

8.1 highEPSS 0.5%Fix available

High (8.1) in projectcontour contour. EPSS 0.5% estimated probability of exploitation activity in the next 30 days. Fixed in github.com/projectcontour/contour 1.31.6, 1.32.5, 1.33.4.

On this page
Contour is a Kubernetes ingress controller using Envoy proxy. From v1.19.0 to before v1.33.4, v1.32.5, and v1.31.6, Contour's Cookie Rewriting feature is vulnerable to Lua code injection. An attacker with RBAC permissions to create or modify HTTPProxy resources can craft a malicious value in spec.routes[].cookieRewritePolicies[].pathRewrite.value or spec.routes[].services[].cookieRewritePolicies[].pathRewrite.value that results in arbitrary code execution in the Envoy proxy. The cookie rewriting feature is internally implemented using Envoy's HTTP Lua filter. User-controlled values are interpolated into Lua source code using Go text/template without sufficient sanitization. The injected code only executes when processing traffic on the attacker's own route, which they already control. However, since Envoy runs as shared infrastructure, the injected code can also read Envoy's xDS client credentials from the filesystem or cause denial of service for other tenants sharing the Envoy instance. This vulnerability is fixed in v1.33.4, v1.32.5, and v1.31.6.

Severity

CVSS 3.1

8.1 high
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
EPSS
0.5% (unchanged from 0.5% a week ago; 0.8% 30 days ago) estimated probability of exploitation activity in the next 30 days; 44th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-04-24. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-94 Improper Control of Generation of Code (Code Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-41246 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-41246?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-41246?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-41246 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
projectcontour:contourfrom 1.19.0 before 1.31.6
projectcontour:contourfrom 1.32.0 before 1.32.5
projectcontour:contourfrom 1.33.0 before 1.33.4

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-x4mj-7f9g-29h4Gogithub.com/projectcontour/contour>=1.19.0 <1.31.61.31.6
GHSA-x4mj-7f9g-29h4Gogithub.com/projectcontour/contour>=1.32.0 <1.32.51.32.5
GHSA-x4mj-7f9g-29h4Gogithub.com/projectcontour/contour>=1.33.0 <1.33.41.33.4
GO-2026-5738Gogithub.com/projectcontour/contour>=1.19.0 <1.31.6
>=1.32.0 <1.32.5
>=1.33.0 <1.33.4
1.31.6, 1.32.5, 1.33.4

Linux distributions

DistributionReleasePackageFixed inAdvisory
openSUSELeap 16.0govulncheck-vulndb0.0.20260723T184607-160000.1.1openSUSE-SU-2026:21483-1

From the distributions' data via OSV.dev: SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: openSUSE.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This is an Important vulnerability in Contour's Cookie Rewriting feature, allowing arbitrary code execution and denial of service. An attacker with Role-Based Access Control (RBAC) permissions to create or modify HTTPProxy resources can inject malicious Lua code into the Envoy proxy. This could lead to unauthorized access to sensitive credentials or disrupt services for other tenants sharing the Envoy instance.

ProductPackageStateAdvisory
ExternalDNS Operatoredo/external-dns-rhel8Not affected
ExternalDNS Operatoredo/external-dns-rhel9Not affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-41246.

Attack patterns (CAPEC)

  • CAPEC-35 Leverage Executable Code in Non-Executable Files Likelihood: High · Severity: Very High
  • CAPEC-77 Manipulating User-Controlled Variables Likelihood: High · Severity: Very High
  • CAPEC-242 Code Injection Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON