SecurityContext

CVE-2026-31997: OpenClaw - Command Injection

  • Cve: CVE-2026-31997
  • Name: OpenClaw - Command Injection
  • 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.
  • Impact: Attackers can execute arbitrary commands by rebinding executables after approval, potentially leading to full system compromise.
  • Remediation: Update to version 2026.3.1 or later.
  • Vulnerability type: command_injection
  • Vulnerability impact: remote_code_execution
  • Requirement type: logged_in
  • Requirements: Attacker needs system.run approval
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 6.7
  • Cvss vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H
  • Epss score: 0.00106
  • Epss percentile: 0.01096
  • Assignee: [email protected]
  • Published at: 2026-03-19T02:16:05Z
  • Age in days: 250
  • Modified at: 2026-06-17T10:34:54Z
  • Patch available: yes
  • References total: 2
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-31997
  • Nvd status: analyzed
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: hackerone

Cwe

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

References

UrlSourceTags
https://github.com/openclaw/openclaw/security/advisories/GHSA-q399-23r3-hfx4nvdMitigation, Vendor Advisory
https://www.vulncheck.com/advisories/openclaw-executable-rebind-via-unbound-path-token-in-system-run-approvalsnvdThird Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
openclaw:openclaw< 2026.3.1nonvd/v1/products/openclaw/openclaw

Projects

RepositoryLink kindsIndexedUrl
openclaw/openclawpackage, security_advisoryyes/v1/repositories/openclaw/openclaw

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Authentication required: yes
  • Exposed hosts: 28014
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports