Skip to main content

OpenClaw CVE-2026-41391

| EUVDEUVD-2026-26099 MEDIUM
Incomplete List of Disallowed Inputs (CWE-184)
2026-04-28 VulnCheck GHSA-7ggg-pvrf-458v
5.8
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Set malicious index URL in environment variable
  2. Delivery
    Invoke OpenClaw with overridden PIP_INDEX_URL or UV_INDEX_URL
  3. Exploit
    OpenClaw passes unsanitized variable to package manager
  4. Execution
    Package manager queries attacker-controlled index
  5. Persist
    Receive trojanized packages
  6. Impact
    Execute 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

OpenClaw 0 <2026.3.31

Affected Packages

npm openclaw fix: 2026.3.31

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

Vendor (VulnCheck) PRIMARY 5.8 MEDIUM
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

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
High
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

3
CVSS changed
Apr 28, 2026 - 19:52 NVD
5.3 (MEDIUM) 5.8 (MEDIUM)
Patch released
Apr 28, 2026 - 19:30 nvd
Patch available
CVE Published
Apr 28, 2026 - 18:09 nvd
MEDIUM 5.8

DescriptionCVE.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
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 1 npm packages depend on openclaw (1 direct, 0 indirect)

Ecosystem-wide dependent count for version 2026.3.31.

Threat Intelligence Overview

EPSS Score
0.0%
Top 97% exploitable
Threat Intel
1
1 source
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA CIRCL GitHub VulDB

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

29
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +29
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

CVE-2026-28446 CRITICAL POC
9.4 Mar 05

Auth bypass in OpenClaw voice-call extension before 2026.2.1. EPSS 0.68%. PoC and patch available.

CVE-2026-33579 CRITICAL POC
9.4 Mar 31

Privilege escalation in OpenClaw (pre-2026.3.28) allows unauthenticated remote attackers to gain administrative access b

CVE-2026-32042 HIGH POC
8.8 Mar 21

OpenClaw versions 2026.2.22 through 2026.2.24 contain a privilege escalation vulnerability that allows authenticated att

CVE-2026-32051 HIGH POC
8.8 Mar 21

An authorization mismatch vulnerability in OpenClaw versions prior to 2026.3.1 allows authenticated users with operator.

CVE-2026-25253 HIGH POC
8.8 Feb 01

OpenClaw versions prior to 2026.1.29 automatically establish WebSocket connections to attacker-controlled gateway URLs e

CVE-2026-32846 HIGH POC
8.7 Mar 26

Path traversal in OpenClaw through version 2026.3.23 enables unauthenticated remote attackers to read arbitrary files in

CVE-2026-53857 HIGH POC
8.6 Jun 16

Authentication bypass in OpenClaw before 2026.5.3 allows remote attackers with low privileges to receive agent responses

CVE-2026-100530 HIGH POC
8.5 Sep 26

Directory-context bypass in OpenClaw before 2026.8.1 allows authenticated attackers with user interaction to reuse an 'a

CVE-2026-32064 HIGH POC
8.5 Mar 21

Unauthenticated access to the noVNC observer interface in OpenClaw's Docker sandbox browser allows anyone who can reach

CVE-2026-44118 HIGH POC
8.5 May 06

Authentication bypass in OpenClaw's MCP loopback interface allows local low-privilege attackers to escalate to owner-lev

CVE-2026-32055 HIGH POC
7.6 Mar 21

OpenClaw versions before 2026.2.26 allow authenticated attackers to write arbitrary files outside the workspace director

CVE-2026-32056 HIGH POC
7.5 Mar 21

OpenClaw versions prior to 2026.2.22 contain a shell environment variable injection vulnerability in the system.run func

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy