← Vulnerability feed

Vulnerability record · CVE-2022-0166 · published 19 January 2022

CVE-2022-0166: Mcafee agent uncontrolled search path element vulnerability

MMcafee · Agent

A privilege escalation vulnerability in the McAfee Agent prior to 5.7.5. McAfee Agent uses openssl.cnf during the build process to specify the OPENSSLDIR variable as a subdirectory within the installation directory. A low privilege user could have created subdirectories and executed arbitrary code with SYSTEM privileges by creating the appropriate pathway to the specifically created malicious openssl.cnf file.

7.8 CVSS 3.1 High EPSS 2.9% · top 13.4% CWE-427 · Uncontrolled search path element
7.8CVSS 3.1 base score, v2 7.2
2.9%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
4References
17 Jun 2026Last modified by NVD

Description

A privilege escalation vulnerability in the McAfee Agent prior to 5.7.5. McAfee Agent uses openssl.cnf during the build process to specify the OPENSSLDIR variable as a subdirectory within the installation directory. A low privilege user could have created subdirectories and executed arbitrary code with SYSTEM privileges by creating the appropriate pathway to the specifically created malicious openssl.cnf file.

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

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2022-0166 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.8CVE-2018-6703Mcafee agent use after free vulnerabilityUse After Free in Remote logging (which is disabled by default) in McAfee McAfee Agent (MA) 5.x prior to 5.6.0 allows remote unauthenticated attacker…EPSS 3.2%8.8CVE-2021-1257Cisco catalyst center cross-site request forgery vulnerabilityA vulnerability in the web-based management interface of Cisco DNA Center Software could allow an unauthenticated, remote attacker to conduct a cross…EPSS 0.84%7.8CVE-2022-1256Mcafee agent improper privilege management vulnerabilityA local privilege escalation vulnerability in MA for Windows prior to 5.7.6 allows a local low privileged user to gain system privileges through runn…EPSS 0.26%7.8CVE-2021-31854Mcafee agent os command injection vulnerabilityA command Injection Vulnerability in McAfee Agent (MA) for Windows prior to 5.7.5 allows local users to inject arbitrary shell code into the file cle…EPSS 1.0%7.8CVE-2021-31847Mcafee agent improper privilege management vulnerabilityImproper access control vulnerability in the repair process for McAfee Agent for Windows prior to 5.7.4 could allow a local attacker to perform a DLL…EPSS 0.40%7.8CVE-2018-6705Mcafee agent vulnerabilityPrivilege escalation vulnerability in McAfee Agent (MA) for Linux 5.0.0 through 5.0.6, 5.5.0, and 5.5.1 allows local users to perform arbitrary comma…EPSS 0.38%7.8CVE-2018-6704Mcafee agent vulnerabilityPrivilege escalation vulnerability in McAfee Agent (MA) for Linux 5.0.0 through 5.0.6, 5.5.0, and 5.5.1 allows local users to perform arbitrary comma…EPSS 0.37%7.5CVE-2019-3599Mcafee agent vulnerabilityInformation Disclosure vulnerability in Remote logging (which is disabled by default) in McAfee Agent (MA) 5.x allows remote unauthenticated users to…EPSS 1.8%

Source: NIST National Vulnerability Database (record CVE-2022-0166), CISA KEV, FIRST EPSS (scores of 2026-09-27). This page is refreshed as NVD updates the record.