Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-41246

CVE-2026-41246: Contour Kubernetes Ingress RCE Vulnerability

CVE-2026-41246 is a Lua code injection RCE vulnerability in Contour's Kubernetes ingress controller that allows attackers to execute arbitrary code in Envoy proxy. This article covers technical details, affected versions, impact, and mitigation.

Published: April 23, 2026

CVE-2026-41246 Overview

CVE-2026-41246 is a Lua code injection vulnerability affecting Contour, a Kubernetes ingress controller that uses Envoy proxy. The vulnerability exists in Contour's Cookie Rewriting feature, where user-controlled values in HTTPProxy resources are interpolated into Lua source code using Go text/template without sufficient sanitization. An attacker with RBAC permissions to create or modify HTTPProxy resources can exploit this flaw to achieve arbitrary code execution within the Envoy proxy environment.

Critical Impact

Attackers can execute arbitrary Lua code in the Envoy proxy, potentially reading xDS client credentials from the filesystem or causing denial of service for other tenants sharing the Envoy instance.

Affected Products

  • Contour versions from v1.19.0 to before v1.33.4
  • Contour versions from v1.19.0 to before v1.32.5
  • Contour versions from v1.19.0 to before v1.31.6

Discovery Timeline

  • April 23, 2026 - CVE-2026-41246 published to NVD
  • April 23, 2026 - Last updated in NVD database

Technical Details for CVE-2026-41246

Vulnerability Analysis

This vulnerability is classified as Code Injection (CWE-94) and affects the Cookie Rewriting feature in Contour. The root of the issue lies in how Contour processes HTTPProxy custom resources. When users define cookie rewrite policies through spec.routes[].cookieRewritePolicies[].pathRewrite.value or spec.routes[].services[].cookieRewritePolicies[].pathRewrite.value, these values are incorporated directly into Lua code that Envoy's HTTP Lua filter executes.

The vulnerability is exploitable over the network and requires low privileges (RBAC permissions to modify HTTPProxy resources). While the injected code initially runs in the context of the attacker's own route, the shared nature of Envoy infrastructure means the impact extends beyond the attacker's tenant boundary.

Root Cause

The root cause is insufficient input sanitization when using Go's text/template package to interpolate user-controlled values into Lua source code. Contour fails to properly escape or validate the pathRewrite.value field before incorporating it into the Lua script that Envoy will execute. This allows specially crafted input to break out of the intended string context and inject arbitrary Lua statements.

Attack Vector

The attack vector involves an authenticated attacker with Kubernetes RBAC permissions to create or modify HTTPProxy resources. The attacker crafts a malicious HTTPProxy manifest containing Lua code injection payloads within the cookie rewrite policy configuration fields. When Contour processes this HTTPProxy and generates the corresponding Envoy configuration, the malicious Lua code is embedded into Envoy's HTTP Lua filter. Upon receiving traffic matching the attacker's route, Envoy executes the injected code.

The vulnerability allows attackers to:

  • Read sensitive xDS client credentials from the Envoy filesystem
  • Cause denial of service affecting other tenants sharing the same Envoy instance
  • Potentially manipulate traffic processing within the Envoy proxy

Since the exploitation requires RBAC permissions and the injected code executes only when processing traffic on the attacker's route, the attack surface is limited to environments where untrusted users have HTTPProxy modification privileges.

Detection Methods for CVE-2026-41246

Indicators of Compromise

  • Unusual or malformed pathRewrite.value entries in HTTPProxy resources containing Lua syntax characters such as ]], [[, --, or function calls
  • Unexpected file access attempts from Envoy processes, particularly targeting xDS credential files
  • Anomalous CPU or memory consumption in Envoy proxy pods indicating potential denial of service attempts
  • HTTPProxy resources with suspiciously long or encoded values in cookie rewrite policy fields

Detection Strategies

  • Implement Kubernetes admission controllers to validate HTTPProxy resources and reject those with suspicious characters in cookie rewrite policy values
  • Monitor Envoy proxy logs for Lua execution errors or unexpected script behaviors
  • Deploy runtime security monitoring to detect unauthorized filesystem access from Envoy containers
  • Review audit logs for HTTPProxy create/update operations from non-administrative users

Monitoring Recommendations

  • Enable Kubernetes audit logging for all HTTPProxy resource modifications
  • Configure alerts for Envoy proxy crashes or restarts that may indicate exploitation attempts
  • Monitor network traffic patterns for anomalies on routes controlled by non-administrative users
  • Implement resource quotas and limits on Envoy pods to contain denial of service impact

How to Mitigate CVE-2026-41246

Immediate Actions Required

  • Upgrade Contour to patched versions: v1.33.4, v1.32.5, or v1.31.6
  • Review existing HTTPProxy resources for suspicious cookie rewrite policy configurations
  • Audit RBAC policies to ensure only trusted users have permissions to modify HTTPProxy resources
  • Consider temporarily disabling the Cookie Rewriting feature if not required

Patch Information

Project Contour has released patched versions that address this vulnerability. The fixes are available in the following releases:

  • Contour v1.33.4
  • Contour v1.32.5
  • Contour v1.31.6

For complete vulnerability details and remediation guidance, refer to the GitHub Security Advisory GHSA-x4mj-7f9g-29h4.

Workarounds

  • Restrict RBAC permissions for HTTPProxy resources to trusted administrators only using Kubernetes Role and ClusterRole configurations
  • Implement Open Policy Agent (OPA) Gatekeeper or Kyverno policies to validate and reject HTTPProxy resources with potentially malicious cookie rewrite values
  • Deploy network policies to limit Envoy's filesystem access and egress capabilities
  • Consider isolating Envoy instances per tenant to limit the blast radius of potential exploitation
bash
# Example: Restrict HTTPProxy modification to admin namespace only
kubectl create clusterrole httpproxy-admin --verb=create,update,patch,delete --resource=httpproxies.projectcontour.io
kubectl create clusterrolebinding httpproxy-admin-binding --clusterrole=httpproxy-admin --group=system:masters

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechEnvoy

  • SeverityHIGH

  • CVSS Score8.1

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-94
  • Technical References
  • GitHub Release v1.31.6

  • GitHub Release v1.32.5

  • GitHub Release v1.33.4

  • GitHub Security Advisory GHSA-x4mj-7f9g-29h4
  • Related CVEs
  • CVE-2026-26308: Envoyproxy Envoy Auth Bypass Vulnerability

  • CVE-2026-26309: Envoyproxy Envoy Buffer Overflow Flaw

  • CVE-2026-22771: Envoy Gateway Information Disclosure Flaw

  • CVE-2024-30255: Envoyproxy Envoy DoS Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English