Home / Rapid7 / Insight Agent / CVE-2021-4007
CVE-2021-4007: is it exploited, and which versions of Rapid7 Insight Agent are affected and fixed?
CVE-2021-4007 is an uncontrolled search path (DLL or library hijacking) vulnerability in Rapid7 Insight Agent. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 14:08 UTC). Affected: Insight Agent every 3.0.1 version and Insight Agent from 3.1.2.34 through 3.1.2.34 (CVE record by rapid7). Fixed in 3.1.2.35 (NVD). Severity: High (7.8, CVSS 3.1, from rapid7).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 14:08 UTC, CVE record November 28, 2026, 20:21 UTC and NVD November 19, 2026, 07:52 UTC.
What is CVE-2021-4007?
Rapid7 Insight Agent Privilege Escalation
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.
From the CVE record by rapid7, last updated September 16, 2024, 21:57 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| Rapid7 | Insight Agent | every 3.0.1 version from 3.1.2.34 through 3.1.2.34 |
As the CVE record by rapid7 states it, last updated September 16, 2024. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| rapid7 | insight agent | from 3.0.1 before 3.1.2.35 | application |
NVD analysis (status Modified), last modified June 17, 2026, 04:18 UTC.
How severe is CVE-2021-4007?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 7.8 | CVSS 3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H | rapid7 |
| High 7.8 | CVSS 3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H | NVD |
| High 7.2 | CVSS 2.0 | AV:L/AC:L/Au:N/C:C/I:C/A:C | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2021-4007 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- EPSS
- 0.33% probability of exploitation activity in the next 30 days, percentile 28.1 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-427 Uncontrolled Search Path Element
Where are the vendor advisories and references?
- https://docs.rapid7.com/release-notes/insightagent/20211210/ x_refsource_CONFIRM
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=2019-5629 x_refsource_MISC
Who found and reported it?
- Dawson Medin discovered and disclosed this issue to Rapid7 (finder)
As published in the CVE record; contact details are removed.
When was it published, and where is the official record?
- Reserved
- November 23, 2021
- Published
- December 14, 2021, 14:55 UTC
- CVE record updated
- September 16, 2024, 21:57 UTC by rapid7
- NVD
- Modified, last modified June 17, 2026, 04:18 UTC
- Last checked
- CVE list November 28, 2026, 20:21 UTC; NVD November 19, 2026, 07:52 UTC; KEV December 3, 2026, 14:08 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect Insight Agent?
- Oct 29, 2026CVE-2026-115805 Rapid7 Insight Agent: OS command injection
- Sep 24, 2026CVE-2026-89325 Rapid7 Insight Agent: uncontrolled search path (DLL or library hijacking)
- Jul 24, 2026CVE-2026-14172 Rapid7 InsightVM: runs with more privileges than needed
- Apr 17, 2026CVE-2026-6482 Rapid7 Insight Agent: inclusion of code from an untrusted source
- Apr 10, 2026CVE-2026-4482 Rapid7 Insight Agent: incorrect permissions on a critical resource
- Apr 8, 2026CVE-2026-4837 Rapid7 Insight Agent: code injection through eval
- Apr 23, 2024CVE-2024-3185 Rapid7 Insight Agent: quantity not validated
- Apr 26, 2023CVE-2023-2273 Rapid7 Insight Agent: path traversal (reading or writing files outside the intended folder)
Questions about CVE-2021-4007
Is CVE-2021-4007 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 14:08 UTC. FIRST's EPSS gives it a 0.33% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of Rapid7 Insight Agent are affected by CVE-2021-4007?
Insight Agent every 3.0.1 version and Insight Agent from 3.1.2.34 through 3.1.2.34, per the CVE record by rapid7. The tables above give every range the sources list.
Which version fixes CVE-2021-4007?
3.1.2.35, per the NVD. Check the vendor's advisory before you rely on it.
How severe is CVE-2021-4007?
High (7.8, CVSS 3.1, from rapid7). The severity table above shows each score with its source.
Where is the official record of CVE-2021-4007?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.