{"id":"EUVD-2026-25280","enisaUuid":"444161ba-0cb7-325d-abaf-232dc3b3bcad","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\u0027s 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\u0027s 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\u0027s own route, which they already control. However, since Envoy runs as shared infrastructure, the injected code can also read Envoy\u0027s 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.","datePublished":"Apr 23, 2026, 6:44:39 PM","dateUpdated":"Jul 15, 2026, 12:59:40 AM","baseScore":8.1,"baseScoreVersion":"3.1","baseScoreVector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","references":"https://github.com/projectcontour/contour/security/advisories/GHSA-x4mj-7f9g-29h4\nhttps://github.com/projectcontour/contour/releases/tag/v1.31.6\nhttps://github.com/projectcontour/contour/releases/tag/v1.32.5\nhttps://github.com/projectcontour/contour/releases/tag/v1.33.4\n","aliases":"CVE-2026-41246\n","assigner":"GitHub_M","epss":0.49,"enisaIdProduct":[{"id":"8e884220-18f8-3bf4-9bf0-f3dd65785d5e","product":{"name":"contour","vendor":{"name":"projectcontour"}},"product_version":"1.32.0, \u003c 1.32.5"},{"id":"e8227b45-3040-3cfb-bd22-bd74a62c6cf2","product":{"name":"contour","vendor":{"name":"projectcontour"}},"product_version":"1.19.0, \u003c 1.31.6"},{"id":"f614bb9d-ed5f-3d9f-8572-f1cc108b9cbb","product":{"name":"contour","vendor":{"name":"projectcontour"}},"product_version":"1.33.0, \u003c 1.33.4"}],"enisaIdVendor":[{"id":"98056a6b-26cc-3511-8702-13fdf0203101","vendor":{"name":"projectcontour"}}],"enisaIdVulnerability":[{"id":"4be11507-0cf3-3cf3-b02f-54f19d86893e","vulnerability":{"id":"CVE-2026-41246","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\u0027s 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\u0027s 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\u0027s own route, which they already control. However, since Envoy runs as shared infrastructure, the injected code can also read Envoy\u0027s 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.","datePublished":"Apr 23, 2026, 6:44:39 PM","dateUpdated":"Jul 15, 2026, 12:59:40 AM","status":"PUBLISHED","baseScore":8.1,"baseScoreVersion":"3.1","baseScoreVector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","references":"https://github.com/projectcontour/contour/security/advisories/GHSA-x4mj-7f9g-29h4\nhttps://github.com/projectcontour/contour/releases/tag/v1.31.6\nhttps://github.com/projectcontour/contour/releases/tag/v1.32.5\nhttps://github.com/projectcontour/contour/releases/tag/v1.33.4\n","enisa_id":"EUVD-2026-25280\n","assigner":"GitHub_M","epss":0.49,"dataProcessed":"Nov 1, 2026, 7:18:11 AM","vulnerabilityProduct":[{"id":"35982d93-32e8-3668-88da-4ce5739acfae","product":{"name":"contour","vendor":{"name":"projectcontour"}},"product_version":"1.33.0, \u003c 1.33.4"},{"id":"44df0ba7-1095-3946-ad48-2008215ca5ad","product":{"name":"contour","vendor":{"name":"projectcontour"}},"product_version":"1.19.0, \u003c 1.31.6"},{"id":"ff1852ea-2c89-3b66-b4ad-9661d62d5a6a","product":{"name":"contour","vendor":{"name":"projectcontour"}},"product_version":"1.32.0, \u003c 1.32.5"}],"vulnerabilityVendor":[{"id":"0d5aa945-ff4d-336f-a9ba-2d2027260335","vendor":{"name":"projectcontour"}}]}},{"id":"67340d97-0793-3140-82de-97cfdf6be0d6","vulnerability":{"id":"GHSA-x4mj-7f9g-29h4","description":"Contour has Lua code injection via Cookie Path Rewrite Policy","datePublished":"Apr 24, 2026, 3:19:49 PM","dateUpdated":"Jul 1, 2026, 10:20:13 PM","baseScore":0.0,"references":"https://github.com/projectcontour/contour/security/advisories/GHSA-x4mj-7f9g-29h4\nhttps://nvd.nist.gov/vuln/detail/CVE-2026-41246\nhttps://access.redhat.com/security/cve/CVE-2026-41246\nhttps://bugzilla.redhat.com/show_bug.cgi?id\u003d2461257\nhttps://github.com/projectcontour/contour\nhttps://github.com/projectcontour/contour/releases/tag/v1.31.6\nhttps://github.com/projectcontour/contour/releases/tag/v1.32.5\nhttps://github.com/projectcontour/contour/releases/tag/v1.33.4\nhttps://projectcontour.io/docs/1.33/config/cookie-rewriting\nhttps://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-41246.json\nhttps://www.envoyproxy.io/docs/envoy/latest/configuration/http/http_filters/lua_filter\n","enisa_id":"EUVD-2026-25280\n","aliases":"GHSA-x4mj-7f9g-29h4\nCVE-2026-41246\n","epss":0.0,"dataProcessed":"Nov 1, 2026, 1:59:37 AM","vulnerabilityProduct":[],"vulnerabilityVendor":[]}}],"enisaIdAdvisory":[]}