The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
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
    • 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-2022-29226

CVE-2022-29226: Envoyproxy Envoy Auth Bypass Vulnerability

CVE-2022-29226 is an authentication bypass flaw in Envoyproxy Envoy's OAuth filter that allows unauthorized access with any access token. This article covers the technical details, affected versions, and mitigation steps.

Published: February 11, 2026

CVE-2022-29226 Overview

CVE-2022-29226 is a critical authentication bypass vulnerability in Envoy, a cloud-native high-performance proxy. In versions prior to 1.22.1, the OAuth filter implementation does not include a mechanism for validating access tokens. By design, when the HMAC signed cookie is missing, a full authentication flow should be triggered. However, the flawed implementation assumes that access tokens are always validated, allowing unauthorized access in the presence of any access token attached to the request—regardless of its validity.

Critical Impact

This vulnerability allows attackers to bypass OAuth authentication entirely by simply providing any arbitrary access token in the Authorization header or query string, granting unauthorized access to protected resources without legitimate credentials.

Affected Products

  • Envoyproxy Envoy versions prior to 1.22.1
  • Any service mesh or API gateway deployment using Envoy's OAuth2 filter
  • Cloud-native applications relying on Envoy for OAuth-based authentication

Discovery Timeline

  • 2022-06-09 - CVE-2022-29226 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2022-29226

Vulnerability Analysis

This vulnerability is classified as CWE-306 (Missing Authentication for Critical Function). The OAuth2 filter in Envoy was designed to protect resources by validating authentication tokens. However, the implementation contained a critical flaw in its token validation logic. The filter would accept any request containing a bearer token in the Authorization header or a token query parameter without actually validating whether the token was legitimate, properly signed, or associated with an authorized user session.

The vulnerability exists because the extractAccessToken function would extract tokens from incoming requests and the filter would treat the mere presence of a token as proof of authentication, rather than triggering the full OAuth flow when proper HMAC-signed cookies were missing.

Root Cause

The root cause lies in the OAuth2 filter's flawed assumption about access token validation. The found_bearer_token_ flag was set when any token was detected in the request, and the filter would subsequently grant access based on this flag alone. The code failed to implement actual token validation, signature verification, or checks against the OAuth provider. This design flaw meant that attackers could craft requests with arbitrary tokens to bypass authentication entirely.

Attack Vector

The attack vector is network-based with low complexity and requires no privileges or user interaction. An attacker can exploit this vulnerability by:

  1. Sending a request to an OAuth-protected endpoint with an arbitrary bearer token in the Authorization header (e.g., Authorization: Bearer malicious_token)
  2. Alternatively, appending a token query parameter with any value to the request URL
  3. The Envoy OAuth2 filter extracts this fake token and incorrectly assumes authentication is valid
  4. The attacker gains unauthorized access to protected resources

The security patch addresses this by removing the extractAccessToken function and the found_bearer_token_ flag that allowed this bypass:

text
   CONSTRUCT_ON_FIRST_USE(std::string, "bearer ");
 }
 
-std::string OAuth2Filter::extractAccessToken(const Http::RequestHeaderMap& headers) const {
-  ASSERT(headers.Path() != nullptr);
-
-  // Start by looking for a bearer token in the Authorization header.
-  const Http::HeaderEntry* authorization = headers.getInline(authorization_handle.handle());
-  if (authorization != nullptr) {
-    const auto value = StringUtil::trim(authorization->value().getStringView());
-    const auto& bearer_prefix = bearerPrefix();
-    if (absl::StartsWithIgnoreCase(value, bearer_prefix)) {
-      const size_t start = bearer_prefix.length();
-      return std::string(StringUtil::ltrim(value.substr(start)));
-    }
-  }
-
-  // Check for the named query string parameter.
-  const auto path = headers.Path()->value().getStringView();
-  const auto params = Http::Utility::parseQueryString(path);
-  const auto param = params.find("token");
-  if (param != params.end()) {
-    return param->second;
-  }
-
-  return EMPTY_STRING;
-}
-
 /**
  * primary cases:

Source: GitHub Commit

The header file also removes the vulnerable flag:

c
   std::string new_expires_;
   absl::string_view host_;
   std::string state_;
-  bool found_bearer_token_{false};
   Http::RequestHeaderMap* request_headers_{nullptr};
 
   std::unique_ptr<OAuth2Client> oauth_client_;

Source: GitHub Commit

Detection Methods for CVE-2022-29226

Indicators of Compromise

  • Unusual access patterns to OAuth-protected endpoints from unexpected sources
  • Requests containing malformed or arbitrary bearer tokens that still result in successful authentication
  • Access logs showing requests with Authorization: Bearer headers that don't correspond to legitimate OAuth token issuance
  • Requests with token query parameters containing random or suspicious values

Detection Strategies

  • Audit Envoy proxy logs for requests to protected endpoints that bypass the expected OAuth redirect flow
  • Monitor for successful access to protected resources without corresponding OAuth provider token validation events
  • Implement application-level logging to track authentication state discrepancies
  • Review request patterns for anomalies where tokens appear valid but lack proper OAuth session establishment

Monitoring Recommendations

  • Enable detailed access logging on Envoy proxies to capture Authorization headers
  • Correlate Envoy access logs with OAuth provider logs to identify authentication bypasses
  • Set up alerts for access to sensitive endpoints without proper OAuth session cookies
  • Monitor for unusual spikes in access to OAuth-protected resources

How to Mitigate CVE-2022-29226

Immediate Actions Required

  • Upgrade Envoy to version 1.22.1 or later immediately
  • Audit access logs for any signs of exploitation prior to patching
  • Review all OAuth-protected endpoints to ensure proper authentication after upgrade
  • Consider implementing additional application-level authentication validation as defense-in-depth

Patch Information

The vulnerability has been addressed in Envoy version 1.22.1. The fix removes the vulnerable extractAccessToken function and the found_bearer_token_ flag that allowed the authentication bypass. Users should upgrade to version 1.22.1 or later to receive the security patch. The specific commit addressing this vulnerability is available at GitHub Commit 7ffda4e809dec74449ebc330cebb9d2f4ab61360. Additional details are available in the GitHub Security Advisory GHSA-h45c-2f94-prxh.

Workarounds

  • There is no known workaround for this vulnerability; upgrading is required
  • Implement additional authentication layer at the application level as temporary mitigation
  • Consider placing affected endpoints behind additional access controls until upgrade is complete
  • Monitor and restrict access to OAuth-protected resources to known-good IP ranges if possible
bash
# Verify Envoy version after upgrade
envoy --version

# Check for vulnerable Envoy installations in Kubernetes
kubectl get pods -A -o jsonpath='{range .items[*]}{.metadata.namespace}{"\t"}{.metadata.name}{"\t"}{.spec.containers[*].image}{"\n"}{end}' | grep envoy

# Review Envoy OAuth filter configuration
cat /etc/envoy/envoy.yaml | grep -A 20 "oauth2"

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

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechEnvoy

  • SeverityCRITICAL

  • CVSS Score9.1

  • EPSS Probability0.08%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-306
  • Technical References
  • GitHub Security Advisory
  • Vendor Resources
  • GitHub Commit Change
  • 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
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