LiveActive security incident?Get immediate response
CVE Record

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.

HighCVSS 7.8Not KEV-listedUpdated
Glexia's TakeAutomated analysishigh

Security readout for executives and security teams

Plain-English summary

This flaw lets a local Windows user potentially turn limited access into SYSTEM-level control on hosts running vulnerable Rapid7 Insight Agent versions. It is not described as remote or unauthenticated, but SYSTEM escalation on security-agent hosts can materially increase breach impact.

Executive priority

Treat this as a high-priority endpoint hygiene issue, especially where vulnerable agents run on shared or sensitive Windows systems. The urgency is lower than a remote unauthenticated flaw, but the post-compromise impact can be severe.

Technical view

Rapid7 Insight Agent 3.0.1 through 3.1.2.34 has CWE-427 uncontrolled DLL search path behavior. At startup, its Python interpreter attempts to load python3.dll from C:\DLLs\python3.dll, a location described as normally writable by locally authenticated users. Rapid7 fixed it in 3.1.2.35. The issue is a regression of CVE-2019-5629.

Likely exposure

Exposure is likely limited to Windows endpoints or servers running Rapid7 Insight Agent versions 3.0.1 through 3.1.2.34. The source bundle does not identify other Rapid7 products, non-Windows platforms, or cloud-only exposure.

Exploitation context

No provided source reports active exploitation, and the CVE is not marked as KEV. Exploitation requires local authenticated access and relevant agent startup conditions. Successful abuse could elevate privileges to SYSTEM, affecting confidentiality, integrity, and availability.

Researcher notes

Evidence is limited to the CVE record, Rapid7 release note reference, and the related CVE-2019-5629 reference. Do not assume public exploit availability or active abuse. Focus validation on version range, Windows host exposure, and confirmation that the fixed agent build is deployed.

Mitigation direction

  • Upgrade Rapid7 Insight Agent to 3.1.2.35 or later.
  • Prioritize shared systems, jump hosts, and servers with many local users.
  • Confirm Rapid7 release notes for any environment-specific guidance.
  • Review local-admin and interactive logon access on affected endpoints.

Validation and detection

  • Inventory Rapid7 Insight Agent versions across Windows endpoints and servers.
  • Flag any version from 3.0.1 through 3.1.2.34.
  • Confirm upgraded hosts report version 3.1.2.35 or later.
  • Check whether vulnerable hosts allow local authenticated user access.
  • Review endpoint telemetry for unusual privilege escalation around agent startup.
Prepared
Confidence
high
Sources
4

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · low confidence lookup

CWE-427: Exact CWE lookup

Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
description · low confidence lookup

Privilege behavior lookup

The CVE wording references privilege impact, so privilege escalation and authorization behavior review may help. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2021-4007 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
High
CVSS
7.8 (3.1)
Known Exploited
No
Published

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

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
3Source links

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
7.8CVSS 3.1HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H1.85.9Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

7.8High
CVSS 3.1 vector shape for CVE-2021-4007Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

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

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone

Source materials

Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
Rapid7Insight Agent3.0.1, 3.1.2.34Listed
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-427 · source CWE mapping

Uncontrolled Search Path Element

Uncontrolled Search Path Element represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.