{"api_version":"1","generated_at":"2026-04-08T22:41:58+00:00","cve":"CVE-2021-4007","urls":{"html":"https://cve.report/CVE-2021-4007","api":"https://cve.report/api/cve/CVE-2021-4007.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-4007","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-4007"},"summary":{"title":"CVE-2021-4007","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.","state":"PUBLIC","assigner":"cve@rapid7.com","published_at":"2021-12-14 15:15:00","updated_at":"2021-12-21 14:52:00"},"problem_types":["CWE-427"],"metrics":[],"references":[{"url":"https://cve.mitre.org/cgi-bin/cvename.cgi?name=2019-5629","name":"https://cve.mitre.org/cgi-bin/cvename.cgi?name=2019-5629","refsource":"MISC","tags":[],"title":"CVE -\nCVE-2019-5629","mime":"text/xml","httpstatus":"200","archivestatus":"404"},{"url":"https://docs.rapid7.com/release-notes/insightagent/20211210/","name":"https://docs.rapid7.com/release-notes/insightagent/20211210/","refsource":"CONFIRM","tags":[],"title":"Insight Agent Release Notes","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-4007","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-4007","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[{"source":"LEGACY","value":"Dawson Medin discovered and disclosed this issue to Rapid7","lang":""}],"nvd_cpes":[{"cve_year":"2021","cve_id":"4007","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"rapid7","cpe5":"insight_agent","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"data_type":"CVE","data_format":"MITRE","data_version":"4.0","generator":{"engine":"Vulnogram 0.0.9"},"CVE_data_meta":{"ID":"CVE-2021-4007","ASSIGNER":"cve@rapid7.com","TITLE":"Rapid7 Insight Agent Privilege Escalation","STATE":"PUBLIC","DATE_PUBLIC":"2021-12-10T15:00:00.000Z","AKA":""},"source":{"discovery":"UNKNOWN","defect":[],"advisory":""},"affects":{"vendor":{"vendor_data":[{"vendor_name":"Rapid7","product":{"product_data":[{"product_name":"Insight Agent","version":{"version_data":[{"version_name":"3.0.1","version_affected":">=","version_value":"3.0.1","platform":""},{"version_name":"3.1.2.34","version_affected":"<=","version_value":"3.1.2.34","platform":""}]}}]}}]}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-427 Uncontrolled Search Path Element"}]}]},"description":{"description_data":[{"lang":"eng","value":"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."}]},"references":{"reference_data":[{"refsource":"CONFIRM","url":"https://docs.rapid7.com/release-notes/insightagent/20211210/","name":"https://docs.rapid7.com/release-notes/insightagent/20211210/"},{"refsource":"MISC","url":"https://cve.mitre.org/cgi-bin/cvename.cgi?name=2019-5629","name":"https://cve.mitre.org/cgi-bin/cvename.cgi?name=2019-5629"}]},"impact":{"cvss":{"version":"3.1","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH"}},"credit":[{"lang":"eng","value":"Dawson Medin discovered and disclosed this issue to Rapid7"}],"configuration":[],"exploit":[],"work_around":[],"solution":[]},"nvd":{"publishedDate":"2021-12-14 15:15:00","lastModifiedDate":"2021-12-21 14:52:00","problem_types":["CWE-427"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":7.8,"baseSeverity":"HIGH"},"exploitabilityScore":1.8,"impactScore":5.9},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:L/AC:L/Au:N/C:C/I:C/A:C","accessVector":"LOCAL","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"COMPLETE","integrityImpact":"COMPLETE","availabilityImpact":"COMPLETE","baseScore":7.2},"severity":"HIGH","exploitabilityScore":3.9,"impactScore":10,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:rapid7:insight_agent:*:*:*:*:*:*:*:*","versionStartIncluding":"3.0.1","versionEndExcluding":"3.1.2.35","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2021","CveId":"4007","Ordinal":"221840","Title":"CVE-2021-4007","CVE":"CVE-2021-4007","Year":"2021"},"notes":[{"CveYear":"2021","CveId":"4007","Ordinal":"1","NoteData":"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.","Type":"Description","Title":null},{"CveYear":"2021","CveId":"4007","Ordinal":"2","NoteData":"2021-12-14","Type":"Other","Title":"Published"},{"CveYear":"2021","CveId":"4007","Ordinal":"3","NoteData":"2021-12-14","Type":"Other","Title":"Modified"}]}}}