# CVE-2026-32003: OpenClaw \< 2026.2.22 - Remote Code Execution via SHELLOPTS/PS4 Environment Injection in system.run

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.5
- **CVSS:** 7.5 (v4.0, CNA) `CVSS:4.0/AV:N/AC:H/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: High; Attack requirements: None; Privileges required: High; User interaction: None; Confidentiality impact: High; Integrity impact: High; Availability impact: High; Confidentiality impact on other systems: None; Integrity impact on other systems: None; Availability impact on other systems: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 0.94% (percentile 59, 2026-11-26)
- **CWE:** CWE-78
- **Aliases:** GHSA-2fgq-7j6h-9rm4
- **Published:** 2026-03-03T00:40:56.000Z
- **Modified:** 2026-06-23T16:14:28.997Z

## Who should check

- Projects that depend on npm package openclaw (\< 2026.2.22)
- Anyone running OpenClaw \< 2026.2.22

## Description

OpenClaw versions prior to 2026.2.22 contain an environment variable injection vulnerability in the system.run function that allows attackers to bypass command allowlist restrictions via SHELLOPTS and PS4 environment variables. An attacker who can invoke system.run with request-scoped environment variables can execute arbitrary shell commands outside the intended allowlisted command body through bash xtrace expansion.

## Affected and fixed versions

- npm `openclaw`: affected \< 2026.2.22; fixed 2026.2.22 (osv)
- OpenClaw: \< 2026.2.22 (cvelist)

## Mitigation

- Upgrade openclaw to 2026.2.22 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-32003. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-32003.md
Affected: openclaw < 2026.2.22
Fixed in: 2026.2.22

Steps:
1. Search this machine and project for openclaw (npm), OpenClaw: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-32003 being exploited?

There is no confirmed exploitation: CVE-2026-32003 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.94% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-32003?

High: CVSS 7.5 (v4.0, scored by CNA). Remote, login needed. The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2026-32003?

openclaw \< 2026.2.22.

### Is there a fix for CVE-2026-32003?

Yes. Fixed in 2026.2.22. Upgrade openclaw to 2026.2.22 or later.

### How do I check if I'm affected by CVE-2026-32003?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/openclaw/openclaw/security/advisories/GHSA-2fgq-7j6h-9rm4>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2026-32003>
- patch: <https://github.com/openclaw/openclaw/commit/e80c803fa887f9699ad87a9e906ab5c1ff85bd9a>
- other: <https://www.vulncheck.com/advisories/openclaw-remote-code-execution-via-shellopts-ps4-environment-injection-in-system-run>
- other: <https://github.com/openclaw/openclaw>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-32003>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-2fgq-7j6h-9rm4> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-32003> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-32003>
