CVE-2021-4007
CVE-2021-4007 is a high-severity vulnerability in Rapid7 Insight Agent with a CVSS 3.x base score of 7.8. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-427.
Key facts
- Severity: High (CVSS 3.x base score 7.8)
- CVSS v2: 7.2
- EPSS exploit prediction: 0% (24th percentile)
- Actively exploited: Not listed in CISA KEV
- Weakness: CWE-427
- Affected product: Rapid7 Insight Agent
- Published:
- Last modified:
Description
Rapid7 Insight Agent, versions 3.0.1 to 3.1.2.34, suffer from a local privilege escalation due to an uncontrolled DLL search path. Specifically, when Insight Agent versions 3.0.1 to 3.1.2.34 start, the Python interpreter attempts to load python3.dll at "C:\DLLs\python3.dll," which normally is writable by locally authenticated users. Because of this, a malicious local user could use Insight Agent's startup conditions to elevate to SYSTEM privileges. This issue was fixed in Rapid7 Insight Agent 3.1.2.35. This vulnerability is a regression of CVE-2019-5629.
Frequently asked questions
- What is CVE-2021-4007?
- Rapid7 Insight Agent, versions 3.0.1 to 3.1.2.34, suffer from a local privilege escalation due to an uncontrolled DLL search path. Specifically, when Insight Agent versions 3.0.1 to 3.1.2.34 start, the Python interpreter attempts to load python3.dll at "C:\DLLs\python3.dll," which normally is writable by locally authenticated users. Because of this, a malicious local user could use Insight Agent's startup conditions to elevate to SYSTEM privileges. This issue was fixed in Rapid7 Insight Agent 3.1.2.35. This vulnerability is a regression of CVE-2019-5629.
- How severe is CVE-2021-4007?
- CVE-2021-4007 has a CVSS 3.x base score of 7.8, rated high severity. It is exploitable over local access with low attack complexity, requires low privileges and no user interaction. Impact on confidentiality is high, integrity high, and availability high.
- Is CVE-2021-4007 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 0% (24th percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2021-4007?
- CVE-2021-4007 affects Rapid7 Insight Agent. See the affected-products list for the exact vulnerable versions.
- How do I fix CVE-2021-4007?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its high severity, prioritise patching exposed systems.
- When was CVE-2021-4007 published?
- CVE-2021-4007 was published on 2021-12-14 and last updated on 2026-06-17.
References
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=2019-5629
- https://docs.rapid7.com/release-notes/insightagent/20211210/
Affected products (1)
- cpe:2.3:a:rapid7:insight_agent:*:*:*:*:*:*:*:*
More vulnerabilities in Rapid7 Insight Agent
- CVE-2026-6482 — High (CVSS 7.8): The Rapid7 Insight Agent (versions > 4.1.0.2) is vulnerable to a local privilege escalation attack that allows users to…
- CVE-2019-5629 — High (CVSS 7.8): Rapid7 Insight Agent, version 2.6.3 and prior, suffers from a local privilege escalation due to an uncontrolled DLL…
- CVE-2026-4837 — Medium (CVSS 6.6): An eval() injection vulnerability in the Rapid7 Insight Agent beaconing logic for Linux versions could theoretically…
- CVE-2023-2273 — Medium (CVSS 5.8): Rapid7 Insight Agent token handler versions 3.2.6 and below, suffer from a Directory Traversal vulnerability whereby…
- CVE-2026-4482 — Medium (CVSS 5.5): The installer certificate files in the …/bootstrap/common/ssl folder do not seem to have restricted permissions on…
- CVE-2022-0237 — Medium (CVSS 4.0): Rapid7 Insight Agent versions 3.1.2.38 and earlier suffer from a privilege escalation vulnerability, whereby an…
All CVEs affecting Rapid7 Insight Agent →
Other CWE-427 (Uncontrolled Search Path Element) vulnerabilities
- CVE-2025-4981 — Critical (CVSS 9.9): Mattermost versions 10.5.x <= 10.5.5, 9.11.x <= 9.11.15, 10.8.x <= 10.8.0, 10.7.x <= 10.7.2, 10.6.x <= 10.6.5 fail to…
- CVE-2025-69599 — Critical (CVSS 9.8): RayVentory Scan Engine through 12.6 Update 8 allows attackers to gain privileges if they control the value of the PATH…
- CVE-2019-25268 — Critical (CVSS 9.8): NREL BEopt 2.8.0.0 contains a DLL hijacking vulnerability that allows attackers to load arbitrary libraries by tricking…
- CVE-2023-53959 — Critical (CVSS 9.8): FileZilla Client 3.63.1 contains a DLL hijacking vulnerability that allows attackers to execute malicious code by…
- CVE-2025-65741 — Critical (CVSS 9.8): Sublime Text 3 Build 3208 or prior for MacOS is vulnerable to Dylib Injection. An attacker could compile a .dylib file…
- CVE-2024-23054 — Critical (CVSS 9.8): An issue in Plone Docker Official Image 5.2.13 (5221) open-source software that could allow for remote code execution…
Browse all CWE-427 (Uncontrolled Search Path Element) vulnerabilities →