CVE-2026-31997

OpenClaw < 2026.3.1 - Executable Rebind via Unbound PATH-token in system.run Approvals

State
Published
Severity
4.4 Medium
Published
Mar 19, 2026
Updated
Jun 23, 2026
Reserved
Mar 10, 2026

Read the record on cve.org

Description

OpenClaw versions prior to 2026.3.1 fail to pin executable identity for non-path-like argv[0] tokens in system.run approvals, allowing post-approval executable rebind attacks. Attackers can modify PATH resolution after approval to execute a different binary than the operator approved, enabling arbitrary command execution.

Scores

CVSSScoreVectorSource
4.04.4 MediumCVSS:4.0/AV:L/AC:H/AT:N/PR:L/UI:A/VC:N/VI:H/VA:H/SC:N/SI:N/SA:NVulnCheck
3.16.0 MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:NVulnCheck

Weaknesses

  • CWE-367 Time-of-check Time-of-use (TOCTOU) Race Condition

Affected Products

ProductVersions
OpenClawOpenClaw
  • before 2026.3.1Affected
  • 2026.3.1Not affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.