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
    • 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-2022-25165

CVE-2022-25165: AWS Client VPN Race Condition Flaw

CVE-2022-25165 is a TOCTOU race condition in Amazon AWS VPN Client 2.0.0 that enables privilege escalation. Attackers can inject malicious parameters during config validation to gain SYSTEM privileges. Learn the details.

Published: February 17, 2026

CVE-2022-25165 Overview

A Time-of-Check Time-of-Use (TOCTOU) race condition vulnerability was discovered in Amazon AWS VPN Client 2.0.0 that could allow a low-privileged local attacker to escalate privileges to SYSTEM level. The flaw exists in the validation mechanism for VPN configuration files, enabling attackers to inject malicious parameters into configuration files after validation but before processing by the AWS VPN Client service.

Critical Impact

Local privilege escalation to SYSTEM through arbitrary file write, enabling complete system compromise or denial of service on affected Windows endpoints.

Affected Products

  • Amazon AWS Client VPN 2.0.0
  • Windows systems running vulnerable AWS VPN Client versions

Discovery Timeline

  • 2022-04-14 - CVE CVE-2022-25165 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2022-25165

Vulnerability Analysis

This vulnerability is classified as CWE-367, a Time-of-Check Time-of-Use (TOCTOU) race condition. The flaw occurs during the validation of VPN configuration files by the AWS VPN Client. The service validates configuration parameters against an allow list, but a timing window exists between this validation check and the actual processing of the configuration file by the AWS VPN Client service running with SYSTEM privileges.

During this timing window, an attacker with low-level user privileges can modify the configuration file to inject parameters that would normally be blocked by the allow list. This race condition is exploitable because the validation and use operations are not performed atomically, creating an opportunity for malicious manipulation.

Root Cause

The root cause is the lack of atomic operations between the validation phase and the file processing phase. The AWS VPN Client service first validates the configuration file contents against an allow list, then subsequently reads and processes the file as SYSTEM. This two-step process without proper file locking or atomic handling creates a vulnerable time window where file contents can be altered between the check and use operations.

Attack Vector

The attack requires local access to the system and involves the following exploitation technique:

  1. A low-privileged user prepares a legitimate VPN configuration file that passes the allow list validation
  2. The attacker monitors for the validation check to occur
  3. During the timing window after validation but before processing, the attacker swaps or modifies the configuration file to include malicious parameters
  4. The AWS VPN Client service (running as SYSTEM) processes the modified file without re-validation
  5. Dangerous arguments such as log can be injected, allowing arbitrary file destinations for log file writes

The log parameter injection is particularly dangerous as it enables arbitrary file write with SYSTEM privileges. While the attacker has only partial control over the file contents (limited to log data), this can still be abused for privilege escalation through techniques like DLL hijacking or overwriting critical system files, as well as denial of service by corrupting system files.

Detection Methods for CVE-2022-25165

Indicators of Compromise

  • Unexpected modification of VPN configuration files in the AWS VPN Client configuration directory
  • Log files appearing in unusual system locations or sensitive directories
  • Rapid file access patterns indicating race condition exploitation attempts
  • Anomalous process behavior from the AWS VPN Client service

Detection Strategies

  • Monitor file system activity for rapid read/write cycles targeting AWS VPN Client configuration files
  • Implement file integrity monitoring on AWS VPN Client configuration directories
  • Alert on VPN configuration file modifications by non-administrative users
  • Deploy endpoint detection rules for TOCTOU exploitation patterns

Monitoring Recommendations

  • Enable detailed Windows security auditing for file access events in the AWS VPN Client directory
  • Monitor for creation of log files in unexpected locations by the AWS VPN Client service process
  • Implement process monitoring to detect abnormal SYSTEM-level file write operations originating from the VPN client
  • Review endpoint logs for signs of privilege escalation attempts following VPN client activity

How to Mitigate CVE-2022-25165

Immediate Actions Required

  • Update Amazon AWS VPN Client to the latest patched version immediately
  • Restrict local access to systems running AWS VPN Client where possible
  • Implement application whitelisting to prevent unauthorized modifications to VPN configuration files
  • Monitor for exploitation attempts using endpoint detection and response solutions

Patch Information

Amazon has addressed this vulnerability in subsequent versions of the AWS VPN Client. Organizations should consult the Rhino Security Labs Analysis for detailed technical information and verify they are running a patched version of the client. Additional technical details and CVE tracking can be found at the GitHub CVE Repository.

Workarounds

  • Limit VPN client usage to dedicated, hardened systems with restricted local user access
  • Apply strict file system permissions on VPN configuration directories to prevent unauthorized modifications
  • Implement Windows AppLocker or similar application control policies to restrict configuration file access
  • Consider using alternative VPN solutions until patching is complete in sensitive environments
bash
# Configuration example - Restrict VPN configuration directory access
# Run in elevated PowerShell to limit write access to administrators only
icacls "C:\Users\*\AppData\Local\AWS VPN Client" /inheritance:r
icacls "C:\Users\*\AppData\Local\AWS VPN Client" /grant:r Administrators:(OI)(CI)F
icacls "C:\Users\*\AppData\Local\AWS VPN Client" /grant:r SYSTEM:(OI)(CI)F

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

  • Vulnerability Details
  • TypeRace Condition

  • Vendor/TechAmazon Aws Client Vpn

  • SeverityHIGH

  • CVSS Score7.0

  • EPSS Probability0.97%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-367
  • Technical References
  • GitHub CVE Repository

  • Rhino Security Labs Analysis
  • Related CVEs
  • CVE-2024-30165: AWS Client VPN Buffer Overflow Vulnerability

  • CVE-2024-30164: AWS Client VPN Buffer Overflow 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