OpenClaw
CVE-2026-41368
HIGH
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to OpenClaw
-
DeliveryCraft jq program with $ENV filter
-
ExploitSubmit to safe-bin execution endpoint
-
ExecutionExtract environment variables from JSON response
-
ImpactUse stolen credentials for lateral movement
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Resource sphere isolation
MITRE ATT&CK
1 technique across 1 tactic: Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires authenticated access with low privilege level (PR:L per CVSS vector) to OpenClaw instances that execute user-supplied jq programs under safe-bin policy restrictions. The vulnerable code path is triggered when jq programs containing $ENV filter expressions are submitted for execution. No special configuration or non-default settings required - default safe-bin policy in affected versions is inherently vulnerable. Exploitation is limited to environments where OpenClaw actually uses jq safe-bin mode; deployments that disable jq execution entirely or use alternative JSON processing are not exposed via this vector. Network reachability (AV:N) means remote exploitation is possible for any authenticated user, including those accessing via web interfaces or API endpoints. No user interaction required (UI:N) once authentication is obtained. |
| Impact | CVSS 4.0 score of 7.1 reflects high confidentiality impact (VC:H) with network attack vector and low complexity (AV:N/AC:L/AT:N), mitigated by low privilege requirement (PR:L). Real-world risk depends heavily on deployment context: environments storing sensitive credentials in environment variables face immediate exposure risk. The attack requires authenticated access, reducing exposure surface compared to unauthenticated vulnerabilities, but network reachability (AV:N) means any authenticated user across network boundaries can exploit this. No EPSS data available for this 2026 CVE. Absence from CISA KEV suggests no confirmed widespread exploitation, but VulnCheck disclosure indicates professional security researcher identification - these often precede attacker discovery. The low attack complexity (AC:L) means exploitation requires minimal skill once the bypass technique is known. Primary risk is credential theft leading to lateral movement or privilege escalation in broader infrastructure. Organizations using OpenClaw with environment-based secrets management should treat as high priority; those without sensitive environment variables face lower confidentiality risk but should still patch to maintain defense in depth. |
| Exploit ScenarioDerived | An authenticated attacker with low-privilege network access to OpenClaw submits a malicious jq program containing '$ENV.DATABASE_PASSWORD' or '$ENV.AWS_SECRET_ACCESS_KEY' expressions. The safe-bin policy, intended to block such access, fails to filter the $ENV operator. OpenClaw executes the jq program, which extracts the requested environment variables and returns them in the JSON output to the attacker. The attacker now possesses credentials for backend databases, cloud provider APIs, or internal services, enabling lateral movement to compromise additional systems beyond the initial OpenClaw instance. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 28, 2026
Environment variable disclosure in OpenClaw jq safe-bin policy allows authenticated remote attackers to extract sensitive credentials and configuration data. The vulnerability stems from incomplete filter blocking in jq program execution - specifically, the $ENV filter can bypass safe-bin restrictions to read process environment variables. Versions prior to 2026.3.28 are affected. No CISA KEV listing or public POC identified at time of analysis, but disclosure by VulnCheck indicates vendor-confirmed issue with available patch.
RemediationAI
Upgrade to OpenClaw version 2026.3.28 or later, which implements proper $ENV filter blocking in the jq safe-bin policy. Vendor patch available per GitHub security advisory GHSA-jccr-rrw2-vc8h at https://github.com/openclaw/openclaw/security/advisories/GHSA-jccr-rrw2-vc8h. For environments unable to upgrade immediately, implement compensating controls: (1) Remove sensitive credentials from environment variables and migrate to secure secret management systems (HashiCorp Vault, AWS Secrets Manager, Kubernetes Secrets) - this reduces exposure but requires application refactoring and may break existing integrations; (2) Restrict authenticated access to jq execution endpoints using network ACLs or authentication layer controls to trusted users only - reduces attack surface but does not eliminate risk from insider threats or compromised accounts; (3) Implement environment variable filtering at the process level to strip sensitive variables before OpenClaw process initialization - requires container/systemd configuration changes and careful testing to avoid breaking legitimate application functionality. All workarounds trade operational complexity for risk reduction; vendor patch is the definitive solution.
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 implements a safe-bin security policy to restrict jq (a lightweight JSON processor) program execution capabilities. The vulnerability arises from CWE-668 (Exposure of Resource to Wrong Sphere) where the policy's filter allowlist/blocklist fails to account for jq's $ENV operator. In jq, $ENV provides access to the shell environment hash, enabling expressions like '$ENV.AWS_SECRET_ACCESS_KEY' to extract arbitrary environment variables. This breaks the security boundary intended by safe-bin mode, as environment variables commonly store API keys, database credentials, tokens, and internal configuration that should remain isolated from user-controllable jq programs. The flaw represents a classic sandbox escape via insufficient input validation of domain-specific language (DSL) features.
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:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
Primary rating from Vendor (vulncheck) · only source for this CVE.
CVSS VectorVendor: vulncheck
DescriptionCVE.org
OpenClaw before 2026.3.28 contains an environment variable disclosure vulnerability in the jq safe-bin policy that fails to block the $ENV filter. Attackers can bypass safe-bin restrictions by using $ENV in jq programs to access sensitive environment variables that should be restricted.
Blast Radius
ecosystem impact- 3 npm packages depend on openclaw (3 direct, 0 indirect)
Ecosystem-wide dependent count for version 2026.3.28.
Executive ViewAI
CVE-2026-41368 is a credential disclosure vulnerability in OpenClaw jq safe-bin policy that allows authenticated users to extract sensitive environment variables and configuration data through filter bypass. Organizations using OpenClaw jq versions prior to 2026.3.28 face direct risk of unauthorized access to secrets stored in process environment, potentially compromising downstream systems and applications relying on those credentials.
Vendor-released patch: version 2026.3.28. Until patch deployment: (1) Restrict jq program execution to only trusted, pre-validated programs; (2) Remove or redact sensitive credentials from process environment variables, storing them instead in external secrets management systems; (3) Apply principle of least privilege to limit authenticated user access to jq execution interfaces; (4) Implement environment variable access logging and monitoring for anomalous $ENV filter usage patterns.
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
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Affected Products (CPE)CVE.org
Related Vulnerabilities in OpenClaw Multiple Security Flaws
View all 11Auth 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
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
OpenClaw versions prior to 2026.2.22 contain a resource exhaustion vulnerability where the application fails to consiste
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB