Home

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.

PUBLISHED Reserved 2026-06-10 | Published 2026-06-16 | Updated 2026-06-16 | Assigner VulnCheck




HIGH: 7.0CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N

HIGH: 7.1CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N

Problem types

Untrusted Search Path

Product status

Default status
unaffected

Any version before 2026.5.2
affected

2026.5.2 (semver)
unaffected

Credits

侯海飞 (@feynman-hou) reporter

References

github.com/...enclaw/security/advisories/GHSA-wc84-j36w-pw4x (GitHub Security Advisory (GHSA-wc84-j36w-pw4x)) vendor-advisory

www.vulncheck.com/...ia-state-directory-environment-variable (VulnCheck Advisory: OpenClaw < 2026.5.2 - Arbitrary Runtime Dependency Loading via STATE_DIRECTORY Environment Variable) third-party-advisory

cve.org (CVE-2026-53858)

nvd.nist.gov (CVE-2026-53858)

Download JSON