Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. openclaw
  4. ›
  5. CVE-2026-31997

CVE-2026-31997: OpenClaw: system.run approvals did not bind PATH-token executable identity, enabling post-approval executable rebind

March 2, 2026 (updated March 19, 2026)

For host=node runs, approvals validated command context but did not pin executable identity for non-path-like argv[0] tokens (for example tr). If PATH resolution changed after approval, execution could run a different binary.

References

  • github.com/advisories/GHSA-q399-23r3-hfx4
  • github.com/openclaw/openclaw
  • github.com/openclaw/openclaw/security/advisories/GHSA-q399-23r3-hfx4
  • nvd.nist.gov/vuln/detail/CVE-2026-31997
  • www.vulncheck.com/advisories/openclaw-executable-rebind-via-unbound-path-token-in-system-run-approvals

Code Behaviors & Features

Detect and mitigate CVE-2026-31997 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2026.3.1

Fixed versions

  • 2026.3.1

Solution

Upgrade to version 2026.3.1 or above.

Impact 6 MEDIUM

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

Learn more about CVSS

Weakness

  • CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition
  • CWE-426: Untrusted Search Path

Source file

npm/openclaw/CVE-2026-31997.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 24 Mar 2026 12:17:57 +0000.