A Leader in the 2025 Gartner® Magic Quadrant™ for Endpoint Protection Platforms. Five years running.A Leader in the Gartner® Magic Quadrant™Read the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI Security Portfolio
      Leading the Way in AI-Powered Security Solutions
    • 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
      Digital Forensics, IRR & Breach Readiness
    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
    • 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-0166

CVE-2022-0166: McAfee Agent Privilege Escalation Flaw

CVE-2022-0166 is a privilege escalation vulnerability in McAfee Agent that allows low-privilege users to execute code with SYSTEM privileges. This article covers technical details, affected versions, and mitigation.

Published: February 11, 2026

CVE-2022-0166 Overview

A privilege escalation vulnerability exists in McAfee Agent prior to version 5.7.5 that allows a low-privileged local user to execute arbitrary code with SYSTEM privileges. The vulnerability stems from how McAfee Agent handles the OpenSSL configuration file path during the build process, specifically by specifying the OPENSSLDIR variable as a subdirectory within the installation directory that can be manipulated by unprivileged users.

Critical Impact

Local attackers with low privileges can escalate to SYSTEM-level access by creating a malicious openssl.cnf file in a specifically crafted directory path, enabling complete system compromise.

Affected Products

  • McAfee Agent for Windows (versions prior to 5.7.5)

Discovery Timeline

  • 2022-01-19 - CVE-2022-0166 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2022-0166

Vulnerability Analysis

This vulnerability is classified as CWE-427 (Uncontrolled Search Path Element), a weakness that occurs when an application searches for critical resources in locations where an attacker can place malicious alternatives. In the case of McAfee Agent, the build process hardcodes the OPENSSLDIR environment variable to point to a subdirectory within the installation directory. This directory path is accessible to low-privileged users on the system.

When OpenSSL-dependent operations are executed by the McAfee Agent service (which runs with SYSTEM privileges), the application searches for and potentially loads the openssl.cnf configuration file from the attacker-controlled location. This configuration file can specify arbitrary OpenSSL engine modules to be loaded, allowing an attacker to inject and execute malicious code in the context of the SYSTEM account.

Root Cause

The root cause of this vulnerability lies in the insecure build configuration of McAfee Agent. During the build process, the OPENSSLDIR variable is set to a subdirectory within the McAfee Agent installation path. On Windows systems, this directory may have weak access controls that permit low-privileged users to create subdirectories and files. The application fails to validate or restrict access to the OpenSSL configuration file location, creating an uncontrolled search path vulnerability.

Attack Vector

The attack requires local access to the affected system with low-privilege user credentials. An attacker would need to:

  1. Identify the OPENSSLDIR path used by McAfee Agent
  2. Create the necessary directory structure within that path
  3. Place a crafted openssl.cnf file containing malicious OpenSSL engine directives
  4. Wait for or trigger an OpenSSL operation by the McAfee Agent service running as SYSTEM

The malicious configuration file can specify a custom OpenSSL engine library (DLL) that will be loaded when the McAfee Agent performs cryptographic operations. This allows arbitrary code execution with SYSTEM privileges, achieving a local privilege escalation attack.

Detection Methods for CVE-2022-0166

Indicators of Compromise

  • Unexpected directory creation within the McAfee Agent installation path, particularly directories leading to an openssl.cnf file
  • Presence of suspicious openssl.cnf files in non-standard locations within the McAfee installation directory
  • Unusual DLL files appearing in McAfee Agent-related directories that could be malicious OpenSSL engine modules

Detection Strategies

  • Monitor file system changes within the McAfee Agent installation directory for creation of new subdirectories or configuration files
  • Implement endpoint detection rules to alert on low-privileged processes creating files in protected application directories
  • Use SentinelOne's behavioral AI to detect anomalous process behavior when McAfee Agent loads unexpected modules

Monitoring Recommendations

  • Enable auditing on the McAfee Agent installation directory to track file and folder creation events
  • Monitor for processes spawned by the McAfee Agent service that exhibit suspicious behavior or load unexpected DLLs
  • Review Windows Security Event logs for evidence of privilege escalation attempts

How to Mitigate CVE-2022-0166

Immediate Actions Required

  • Upgrade McAfee Agent to version 5.7.5 or later immediately
  • Audit the McAfee Agent installation directory for any unauthorized subdirectories or openssl.cnf files
  • Implement application whitelisting to prevent loading of unauthorized DLLs by the McAfee Agent service
  • Restrict file system permissions on the McAfee Agent installation directory to prevent low-privileged user modifications

Patch Information

McAfee has released version 5.7.5 of McAfee Agent to address this vulnerability. The patch modifies how the application handles OpenSSL configuration paths to prevent exploitation. Administrators should apply this update through their standard McAfee ePO management console or manual installation procedures. For detailed patching instructions, refer to the McAfee Security Bulletin SB10378. Additional technical information is available from CERT Vulnerability ID 287178.

Workarounds

  • Manually restrict NTFS permissions on the McAfee Agent installation directory to prevent non-administrative users from creating subdirectories
  • Deploy endpoint protection solutions like SentinelOne to detect and block exploitation attempts through behavioral analysis
  • Implement the principle of least privilege to minimize the number of users with local access to systems running McAfee Agent

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

  • Vulnerability Details
  • TypePrivilege Escalation

  • Vendor/TechMcafee

  • SeverityHIGH

  • CVSS Score7.8

  • EPSS Probability0.06%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-427
  • Technical References
  • McAfee Security Bulletin SB10378

  • CERT Vulnerability ID 287178
  • Related CVEs
  • CVE-2021-31854: McAfee Agent Privilege Escalation Flaw

  • CVE-2021-31843: McAfee Endpoint Security Privilege Escalation

  • CVE-2021-23874: McAfee Total Protection Privilege Escalation

  • CVE-2022-1256: McAfee Agent Privilege Escalation Flaw
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
  • English
  • 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