{"cve":"CVE-2026-41246","nvd":{"published":"2026-04-23T19:17:29.670","modified":"2026-10-26T22:10:00.163","status":"Modified","description":"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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","score":8.1},"cwes":["CWE-94"],"references":["https://github.com/projectcontour/contour/releases/tag/v1.31.6","https://github.com/projectcontour/contour/releases/tag/v1.32.5","https://github.com/projectcontour/contour/releases/tag/v1.33.4","https://github.com/projectcontour/contour/security/advisories/GHSA-x4mj-7f9g-29h4","https://access.redhat.com/security/cve/CVE-2026-41246"],"products":["projectcontour:contour"],"source":"nvd","synced_at":"2026-10-26T22:26:44.656832877+00:00"},"epss":{"cve":"CVE-2026-41246","score":0.00492,"percentile":0.41975,"date":"2026-10-26"},"kev":null,"osv":[{"id":"GHSA-x4mj-7f9g-29h4","url":"https://osv.dev/vulnerability/GHSA-x4mj-7f9g-29h4","summary":"Contour has Lua code injection via Cookie Path Rewrite Policy","modified":"2026-09-10T03:51:03.970294602Z","packages":[{"ecosystem":"Go","name":"github.com/projectcontour/contour","purl":"pkg:golang/github.com/projectcontour/contour","ranges":[">=1.19.0 <1.31.6"],"fixed":["1.31.6"]},{"ecosystem":"Go","name":"github.com/projectcontour/contour","purl":"pkg:golang/github.com/projectcontour/contour","ranges":[">=1.32.0 <1.32.5"],"fixed":["1.32.5"]},{"ecosystem":"Go","name":"github.com/projectcontour/contour","purl":"pkg:golang/github.com/projectcontour/contour","ranges":[">=1.33.0 <1.33.4"],"fixed":["1.33.4"]}]},{"id":"GO-2026-5738","url":"https://osv.dev/vulnerability/GO-2026-5738","summary":"Contour has Lua code injection via Cookie Path Rewrite Policy in github.com/projectcontour/contour","modified":"2026-06-25T23:11:02.965758209Z","packages":[{"ecosystem":"Go","name":"github.com/projectcontour/contour","purl":"pkg:golang/github.com/projectcontour/contour","ranges":[">=1.19.0 <1.31.6",">=1.32.0 <1.32.5",">=1.33.0 <1.33.4"],"fixed":["1.31.6","1.32.5","1.33.4"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}