Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSet malicious index URL in environment variable
-
DeliveryInvoke OpenClaw with overridden PIP_INDEX_URL or UV_INDEX_URL
-
ExploitOpenClaw passes unsanitized variable to package manager
-
ExecutionPackage manager queries attacker-controlled index
-
PersistReceive trojanized packages
-
ImpactExecute backdoored code in application context
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V2 - Validation and Business Logic Input validation completeness
|
| Exploitation Conditions | Exploitation requires the following concrete conditions: (1) Local access to the system running OpenClaw with authenticated user privileges (PR:L per CVSS); (2) Ability to set or modify PIP_INDEX_URL or UV_INDEX_URL environment variables in the same shell/process context where OpenClaw is invoked - this typically means the attacker must be the user running OpenClaw, or have environment-variable injection capabilities in a shared execution context (e.g., a CI/CD pipeline where multiple jobs share the same environment); (3) OpenClaw must subsequently invoke Python package managers (pip or uv) in host execution mode (the vulnerability is specific to host contexts, not isolated/containerized execution); (4) The package manager must actually respect the injected environment variables, which is standard behavior for pip and uv. The vulnerability does NOT affect scenarios where package index URLs are hardcoded in OpenClaw configuration, containerized environments with a locked environment, or deployments where local users cannot modify environment variables. |
| Impact | The CVSS 4.0 vector (AV:L/AC:L/PR:L) indicates local access with low attack complexity and low privilege requirements, making exploitation practical for any local user with basic shell access. The integrity impact (VI:H) is high, reflecting the consequence of package substitution - attackers gain ability to inject malicious code into the target system via the package supply chain. However, several factors reduce real-world urgency: (1) exploitation requires local authentication (PR:L), eliminating remote attack vectors; (2) temporal metric AT:P suggests attack-time prerequisites exist, likely requiring the attacker to execute code or set environment variables before OpenClaw runs; (3) EPSS data is not provided, limiting probabilistic exploitation estimates. The CVE appears to be a supply-chain/privilege-escalation vector rather than a standalone critical flaw - an authenticated local attacker with the ability to manipulate environment variables already has significant control. The lack of confirmed active exploitation and POC availability further suggests this is lower-urgency relative to remote code execution vulnerabilities. Defenders should prioritize this lower than network-accessible vulnerabilities, but it remains important for environments where local user isolation is weak or where OpenClaw is used in automated build/CI pipelines with multiple users. |
| Exploit ScenarioDerived | An authenticated local user on a shared build server where OpenClaw is used for dependency management sets the PIP_INDEX_URL environment variable to point to a malicious Python package index server under their control. When OpenClaw subsequently runs pip or uv to install or resolve dependencies, the package manager queries the attacker's index instead of the legitimate PyPI, allowing the attacker to serve trojanized versions of popular packages (e.g., a backdoored numpy or requests library). Any application built using OpenClaw in this scenario will incorporate the compromised packages. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 28, 2026
OpenClaw before version 2026.3.31 allows local authenticated attackers to redirect Python package-index traffic by injecting malicious URLs through unsanitized PIP_INDEX_URL and UV_INDEX_URL environment variables, enabling interception or manipulation of package management operations. The vulnerability requires local access and authentication but can result in high integrity impact through compromised package delivery. No active exploitation has been publicly confirmed, but the attack surface is direct and the remediation is straightforward.
RemediationAI
Upgrade OpenClaw to version 2026.3.31 or later. The vendor has released a patched version confirmed via the GitHub commit 7ae1bb0c7799fd0cbd2d4de7b0f5b8039837ab8d (referenced in the security advisory at https://github.com/openclaw/openclaw/security/advisories/GHSA-7ggg-pvrf-458v). The upstream fix properly sanitizes PIP_INDEX_URL and UV_INDEX_URL environment variables before passing them to package manager invocations. As a temporary compensating control for environments where immediate upgrade is not feasible, restrict the ability of unprivileged local users to set arbitrary environment variables in the execution context where OpenClaw runs - for example, by using OS-level restrictions (AppArmor, SELinux) to deny modification of package-manager-related environment variables, or by running OpenClaw in isolated execution containers with a fixed, trusted environment. Note that these controls may interfere with legitimate use cases where environment customization is required for proxy or mirror configurations, so validate the business impact before deployment.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in npm
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
OpenClaw fails to properly sanitize environment variables commonly used by Python package managers (pip and uv) to specify custom package index URLs. These variables (PIP_INDEX_URL and UV_INDEX_URL) control where the package manager retrieves Python packages during installation or dependency resolution. The root cause is classified as CWE-184 (Improper Neutralization of Characters in an OS Command), indicating that unsanitized user-controllable input is passed to package management operations without validation. This allows an authenticated local user to set or override these environment variables with attacker-controlled URLs, redirecting all package traffic to a malicious index server where packages can be replaced with compromised versions. The vulnerability exists in the host execution context where OpenClaw invokes package managers.
Know when Openclaw gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:L/VI:H/VA:N/SC:N/SI:N/SA:N
Primary rating from Vendor (VulnCheck) · only source for this CVE.
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
3DescriptionCVE.org
OpenClaw before 2026.3.31 fails to properly sanitize PIP_INDEX_URL and UV_INDEX_URL environment variables in host execution contexts, allowing attackers to redirect Python package-index traffic. Attackers can exploit this bypass to intercept or manipulate package management operations by injecting malicious index URLs through unsanitized environment variables.
Blast Radius
ecosystem impact- 1 npm packages depend on openclaw (1 direct, 0 indirect)
Ecosystem-wide dependent count for version 2026.3.31.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
Auth bypass in OpenClaw voice-call extension before 2026.2.1. EPSS 0.68%. PoC and patch available.
Privilege escalation in OpenClaw (pre-2026.3.28) allows unauthenticated remote attackers to gain administrative access b
OpenClaw versions 2026.2.22 through 2026.2.24 contain a privilege escalation vulnerability that allows authenticated att
An authorization mismatch vulnerability in OpenClaw versions prior to 2026.3.1 allows authenticated users with operator.
OpenClaw versions prior to 2026.1.29 automatically establish WebSocket connections to attacker-controlled gateway URLs e
Path traversal in OpenClaw through version 2026.3.23 enables unauthenticated remote attackers to read arbitrary files in
Authentication bypass in OpenClaw before 2026.5.3 allows remote attackers with low privileges to receive agent responses
Directory-context bypass in OpenClaw before 2026.8.1 allows authenticated attackers with user interaction to reuse an 'a
Unauthenticated access to the noVNC observer interface in OpenClaw's Docker sandbox browser allows anyone who can reach
Authentication bypass in OpenClaw's MCP loopback interface allows local low-privilege attackers to escalate to owner-lev
OpenClaw versions before 2026.2.26 allow authenticated attackers to write arbitrary files outside the workspace director
OpenClaw versions prior to 2026.2.22 contain a shell environment variable injection vulnerability in the system.run func
EUVD-2026-26099
GHSA-7ggg-pvrf-458v
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB