{"id":"EUVD-2026-25280","revision":null,"records":[{"revision":"7a44f354442b4312a36bf058ebf20879","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-41246","aliases":[],"title":"Contour: Lua code injection via Cookie Path Rewrite Policy","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.","state":0,"publishedAt":"2026-04-23T18:44:39.907+00:00","modifiedAt":"2026-07-15T00:59:40.254+00:00","affected":[{"ecosystem":"Vendor product","name":"contour","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"projectcontour\",\n                    \"product\": \"contour\",\n                    \"versions\": [\n                        {\n                            \"version\": \">= 1.33.0, < 1.33.4\",\n                            \"status\": \"affected\"\n                        },\n                        {\n                            \"version\": \">= 1.32.0, < 1.32.5\",\n                            \"status\": \"affected\"\n                        },\n                        {\n                            \"version\": \">= 1.19.0, < 1.31.6\",\n                            \"status\": \"affected\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 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,"severity":"HIGH"}],"references":["https://github.com/projectcontour/contour/security/advisories/GHSA-x4mj-7f9g-29h4","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"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-41246","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-41246","identifiers":["CVE-2026-41246"]},"retained":false,"historicalAffected":[]},{"revision":"d63537ab83c3404c890fa8b7fd4b2aab","observedAt":"2026-11-01T07:06:14.651+00:00","statement":{"source":"euvd","id":"EUVD-2026-25280","aliases":["CVE-2026-41246"],"title":"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 modif…","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.","state":0,"publishedAt":null,"modifiedAt":null,"affected":[],"metrics":[{"system":"EUVD CVSS 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,"severity":null}],"references":["https://github.com/projectcontour/contour/security/advisories/GHSA-x4mj-7f9g-29h4","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"],"sourceUrl":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-25280","license":"ENISA EUVD · source terms and attribution apply","enrichment":{"sourceStatus":null,"weaknesses":[],"productCriteria":[],"sourceDates":{"datePublished":"Apr 23, 2026, 6:44:39 PM","dateUpdated":"Jul 15, 2026, 12:59:40 AM"},"relatedAdvisories":[],"note":"EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON."},"key":"euvd:EUVD-2026-25280","identifiers":["EUVD-2026-25280","CVE-2026-41246"]},"retained":false,"historicalAffected":[]},{"revision":"5f51945a74f64e759666f4640eaeb12f","observedAt":"2026-10-27T10:10:07.342+00:00","statement":{"source":"nvd","id":"CVE-2026-41246","aliases":[],"title":"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 modif…","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.","state":0,"publishedAt":"2026-04-23T19:17:29.67+00:00","modifiedAt":"2026-10-26T22:10:00.163+00:00","affected":[],"metrics":[{"system":"CVSS 3.1 · security-advisories@github.com · Secondary","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","score":8.1,"severity":"HIGH"},{"system":"CVSS 3.1 · 0b0ca135-0b70-47e7-9f44-1890c2a1c46c · Secondary","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","score":8.1,"severity":"HIGH"}],"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","https://bugzilla.redhat.com/show_bug.cgi?id=2461257","https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-41246.json"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2026-41246","license":"NIST NVD usage terms; underlying source attribution retained","enrichment":{"sourceStatus":"Modified","weaknesses":["CWE-94"],"productCriteria":["cpe:2.3:a:projectcontour:contour:*:*:*:*:*:kubernetes:*:*"],"sourceDates":{"published":"2026-04-23T19:17:29.670","lastModified":"2026-10-26T22:10:00.163"},"relatedAdvisories":[],"note":"NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON."},"key":"nvd:CVE-2026-41246","identifiers":["CVE-2026-41246"]},"retained":false,"historicalAffected":[]},{"revision":"5b2e140f1ada43979242140a4ed824ff","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GHSA-x4mj-7f9g-29h4","aliases":["BIT-contour-2026-41246","CVE-2026-41246","GO-2026-5738"],"title":"Contour has Lua code injection via Cookie Path Rewrite Policy","description":"### Impact\n\nContour's [Cookie Rewriting](https://projectcontour.io/docs/1.33/config/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 the following fields that results in arbitrary code execution in the Envoy proxy:\n\n- `spec.routes[].cookieRewritePolicies[].pathRewrite.value`\n- `spec.routes[].services[].cookieRewritePolicies[].pathRewrite.value`\n\nThe cookie rewriting feature is internally implemented using Envoy's [HTTP Lua filter](https://www.envoyproxy.io/docs/envoy/latest/configuration/http/http_filters/lua_filter). User-controlled values are interpolated into Lua source code using Go `text/template` without sufficient sanitization.\n\nThe 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:\n\n- Read Envoy's xDS client credentials from the filesystem, which could be used to read all Contour xDS configuration, including TLS certificates and private keys of other tenants.\n- Cause denial of service for other tenants sharing the Envoy instance.\n\nOther use cases of Lua filter are not vulnerable.\n\n### Patches\n\nThe fix is available in Contour [v1.33.4](https://github.com/projectcontour/contour/releases/tag/v1.33.4), [v1.32.5](https://github.com/projectcontour/contour/releases/tag/v1.32.5), and [v1.31.6](https://github.com/projectcontour/contour/releases/tag/v1.31.6).\n\n- v1.33.4: User-provided values are no longer interpolated into Lua code. Use of `text/template` is removed. Requires Envoy 1.35.0 or later.\n- v1.32.5, v1.31.6: User-provided values are escaped before interpolation into Lua code.\n\n### Workarounds\n\nThere are no workarounds. Users should upgrade to a patched version.","state":0,"publishedAt":"2026-04-24T15:19:49+00:00","modifiedAt":"2026-09-10T03:51:03.9702946+00:00","affected":[{"ecosystem":"Go","name":"github.com/projectcontour/contour","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"1.19.0"},{"kind":"fixed","version":"1.31.6"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"Go","name":"github.com/projectcontour/contour","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"1.32.0"},{"kind":"fixed","version":"1.32.5"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"Go","name":"github.com/projectcontour/contour","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"1.33.0"},{"kind":"fixed","version":"1.33.4"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"HIGH"}],"references":["https://github.com/projectcontour/contour/security/advisories/GHSA-x4mj-7f9g-29h4","https://nvd.nist.gov/vuln/detail/CVE-2026-41246","https://access.redhat.com/security/cve/CVE-2026-41246","https://bugzilla.redhat.com/show_bug.cgi?id=2461257","https://github.com/projectcontour/contour","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://projectcontour.io/docs/1.33/config/cookie-rewriting","https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-41246.json","https://www.envoyproxy.io/docs/envoy/latest/configuration/http/http_filters/lua_filter"],"sourceUrl":"https://github.com/advisories/GHSA-x4mj-7f9g-29h4","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-x4mj-7f9g-29h4","identifiers":["GHSA-x4mj-7f9g-29h4","BIT-contour-2026-41246","CVE-2026-41246","GO-2026-5738"]},"retained":false,"historicalAffected":[]},{"revision":"ab70e4b470b544e0b7be61744a0815a5","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GO-2026-5738","aliases":["BIT-contour-2026-41246","CVE-2026-41246","GHSA-x4mj-7f9g-29h4"],"title":"Contour has Lua code injection via Cookie Path Rewrite Policy in github.com/projectcontour/contour","description":"Contour has Lua code injection via Cookie Path Rewrite Policy in github.com/projectcontour/contour","state":0,"publishedAt":"2026-06-25T22:34:38+00:00","modifiedAt":"2026-06-25T23:11:02.9657582+00:00","affected":[{"ecosystem":"Go","name":"github.com/projectcontour/contour","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"1.19.0"},{"kind":"fixed","version":"1.31.6"},{"kind":"introduced","version":"1.32.0"},{"kind":"fixed","version":"1.32.5"},{"kind":"introduced","version":"1.33.0"},{"kind":"fixed","version":"1.33.4"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[],"references":["https://github.com/projectcontour/contour/security/advisories/GHSA-x4mj-7f9g-29h4","https://nvd.nist.gov/vuln/detail/CVE-2026-41246","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://projectcontour.io/docs/1.33/config/cookie-rewriting","https://www.envoyproxy.io/docs/envoy/latest/configuration/http/http_filters/lua_filter"],"sourceUrl":"https://osv.dev/vulnerability/GO-2026-5738","license":"OSV · upstream source license applies","key":"osv:GO-2026-5738","identifiers":["GO-2026-5738","BIT-contour-2026-41246","CVE-2026-41246","GHSA-x4mj-7f9g-29h4"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-01T16:57:22.1666445+00:00","complete":true,"records":1766,"lastAttemptAt":"2026-11-01T16:57:22.1666445+00:00","lastSuccessAt":"2026-11-01T16:57:22.3213113+00:00","error":null,"lastVerifiedAt":"2026-11-01T16:57:22.3213122+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-aece262bb10a694367a43c24d730aa8e8dc171723eaec4c15cdd32f04bda103f-585642db5fd5f5a045fdfca4b18984aef177ee17d65cc7f04f45379403194285","complete":true,"records":417664,"lastAttemptAt":"2026-11-01T16:57:21.0753446+00:00","lastSuccessAt":"2026-11-01T16:57:21.0470885+00:00","error":null,"lastVerifiedAt":"2026-11-01T16:57:21.0753446+00:00","snapshotPublishedAt":"2026-11-01T16:32:09+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-685085c4892748379b5c3bdc2838a2e2","complete":false,"records":13568,"lastAttemptAt":"2026-11-01T17:08:01.2788143+00:00","lastSuccessAt":"2026-11-01T17:08:01.3570919+00:00","error":null,"lastVerifiedAt":"2026-11-01T17:08:01.3570919+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-01T16:57:22.1666445+00:00","complete":true,"records":1095,"lastAttemptAt":"2026-11-01T16:57:22.1666445+00:00","lastSuccessAt":"2026-11-01T16:57:22.3220592+00:00","error":null,"lastVerifiedAt":"2026-11-01T16:57:22.3220593+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-86ffd04e61a14524b2bdedd1ba2e339d","complete":true,"records":13580,"lastAttemptAt":"2026-11-01T16:57:47.7627092+00:00","lastSuccessAt":"2026-11-01T16:57:47.759+00:00","error":null,"lastVerifiedAt":"2026-11-01T16:57:47.759+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13637,"expectedIdentifiers":13637,"failedIdentifiers":0},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-21dcd6662970dfea02e4ea60ee637115e8d92664947484d2b9276b3f6568a84f","complete":true,"records":9815,"lastAttemptAt":"2026-11-01T16:57:21.7362922+00:00","lastSuccessAt":"2026-10-30T23:47:34.1817587+00:00","error":null,"lastVerifiedAt":"2026-11-01T16:57:21.7362922+00:00","snapshotPublishedAt":"2026-10-30T23:33:17+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-2de9ccc5290f060c7aa63f89c25dd76f655a64ba1aba7c05c97fa3bee4f09899","complete":true,"records":1967,"lastAttemptAt":"2026-11-01T16:57:21.2364439+00:00","lastSuccessAt":"2026-10-28T20:55:34.2982937+00:00","error":null,"lastVerifiedAt":"2026-11-01T16:57:21.2364439+00:00","snapshotPublishedAt":"2026-10-28T20:03:08+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-f95f76cd406ae5bae3de632ad37fd2d5160b44f5e6b51748ac6f8f0c0c88e72b","complete":true,"records":3028,"lastAttemptAt":"2026-11-01T16:57:22.1252506+00:00","lastSuccessAt":"2026-10-30T23:47:38.4914494+00:00","error":null,"lastVerifiedAt":"2026-11-01T16:57:22.1252506+00:00","snapshotPublishedAt":"2026-10-30T23:18:12+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-55acacd40a7aab88cf530cfddf98233a5d800cfc6bb1883653ecf5bee50f4426","complete":true,"records":230996,"lastAttemptAt":"2026-11-01T16:57:21.6223649+00:00","lastSuccessAt":"2026-11-01T09:06:49.6961926+00:00","error":null,"lastVerifiedAt":"2026-11-01T16:57:21.6223649+00:00","snapshotPublishedAt":"2026-11-01T08:33:39+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}