Track vulnerabilities like this one. Sign up free to get alerted when software you use is affected.
7.0

OpenClaw .env STATE_DIRECTORY can load malicious code

published 4 months ago
Summary

OpenClaw versions before 2026.5.2 contain a security flaw that allows attackers to load malicious code from unintended local paths. This could happen if an attacker manipulates the STATE_DIRECTORY variable in the .env file. To stay secure, update to version 2026.5.2 or later.

What to do
  • Update GitHub Actions openclaw to version 2026.5.2 or later.
Affected software
Ecosystem VendorProductAffected versions
npm GitHub Actions openclaw < 2026.5.2
Original advisory text
Duplicate Advisory: Workspace .env STATE_DIRECTORY could influence bundled runtime dependency roots
## Duplicate Advisory

This advisory has been withdrawn because it is a duplicate of GHSA-wc84-j36w-pw4x. This link is maintained to preserve external references.

## Original Description
OpenClaw before 2026.5.2 contains an environment variable injection vulnerability where workspace .env STATE_DIRECTORY could influence bundled runtime dependency roots. Attackers can manipulate the STATE_DIRECTORY variable to load runtime dependencies from unintended local paths, potentially executing malicious code during dependency resolution.
Fix within
Internet-facing 14 days
Internal At next upgrade
  • Not known to be exploited
  • Needs hands-on effort to exploit (estimated)
  • Gives an attacker full control (estimated)
Severity
7.0 High
Type
CWE-426Untrusted Search Path
Timeline
Published16 Jun 2026
Updated18 Jun 2026
First seen18 Jun 2026
Sources
Track software like this
Free during beta