🔍 CVE-2026-41246

8.1
CVSS Score
HIGH
2026-04-23
2026-10-26 22:10
✅ 완료

🇰🇷 한글 설명

Contour Kubernetes ingress controller의 Cookie Rewriting 기능에서 Lua 코드 인젝션 취약점이 존재합니다. HTTPProxy 리소스의 cookieRewritePolicies 필드에 악의적인 값을 삽입하여 Envoy 프록시에서 임의의 코드 실행이 가능하며, 자격증명 유출이나 다른 테넌트에 대한 서비스 거부 공격이 가능합니다.

💡 쉬운 설명

Kubernetes의 Contour 도구에서 설정 값에 악성 코드를 몰래 넣을 수 있는 보안 구멍이 있습니다. 이 코드가 실행되면 시스템 정보를 훔치거나 서비스를 마비시킬 수 있습니다.

🇺🇸 원문 (English)

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.

📍 영향받는 시스템

Contour v1.19.0 ~ v1.33.3, v1.32.4, v1.31.5

⚔️ 공격 벡터

HTTPProxy의 spec.routes[].cookieRewritePolicies[].pathRewrite.value 필드에 Lua 코드를 인젝션하여 Envoy 프록시 실행

🛡️ 대응 방법

Contour를 v1.33.4, v1.32.5, v1.31.6 이상으로 업그레이드

🔧 검증 코드

출력된 버전이 v1.33.4 이상(또는 v1.32.5, v1.31.6)이면 패치됨, 이하이면 취약함

Shell / Script
kubectl get deployment -n projectcontour contour -o jsonpath='{.spec.template.spec.containers[0].image}' 2>/dev/null | grep -oE 'v[0-9]+\.[0-9]+\.[0-9]+'

📊 CVSS Vector String

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H

💻 영향받는 소프트웨어

Kubernetes