GHSA-m866-6qv5-p2fg

Suggest an improvement
Source
https://github.com/advisories/GHSA-m866-6qv5-p2fg
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/03/GHSA-m866-6qv5-p2fg/GHSA-m866-6qv5-p2fg.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-m866-6qv5-p2fg
Aliases
  • CVE-2026-41332
Downstream
Published
2026-03-31T23:57:00Z
Modified
2026-05-06T23:35:35.321865Z
Severity
  • 4.9 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:N CVSS Calculator
Summary
OpenClaw host-env blocklist missing `GIT_TEMPLATE_DIR` and `AWS_CONFIG_FILE` allows code execution via env override
Details

Summary

Host execution env sanitization did not block GIT_TEMPLATE_DIR or AWS_CONFIG_FILE, even though both can redirect trusted tooling to attacker-controlled content.

Impact

An approved exec request could redirect git or AWS CLI behavior through attacker-controlled configuration and execute untrusted code or load attacker-selected credentials.

Affected Component

src/infra/host-env-security-policy.json, src/infra/host-env-security.ts

Fixed Versions

  • Affected: <= 2026.3.24
  • Patched: >= 2026.3.28
  • Latest stable 2026.3.28 contains the fix.

Fix

Fixed by commit 6eb82fba3c (Infra: block additional host exec env keys).

OpenClaw thanks @nicky-cc of Tencent zhuque Lab https://github.com/Tencent/AI-Infra-Guard for reporting.

Database specific
{
    "github_reviewed": true,
    "github_reviewed_at": "2026-03-31T23:57:00Z",
    "cwe_ids": [
        "CWE-184"
    ],
    "severity": "MODERATE",
    "nvd_published_at": null
}
References

Affected packages

npm / openclaw

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2026.3.28

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/03/GHSA-m866-6qv5-p2fg/GHSA-m866-6qv5-p2fg.json"
last_known_affected_version_range
"<= 2026.3.24"