# CVE-2026-41336: OpenClaw < 2026.3.31 - Arbitrary Hook Code Execution via OPENCLAW_BUNDLED_HOOKS_DIR Environment Variable Override

- Severity: High 8.5 (CVSS:4.0, scored by VulnCheck) `CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.14%, higher than 3% of CVEs (2026-12-02)
- Published: 2026-04-02T21:00:16.000Z
- Modified: 2026-11-11T23:10:00.263Z
- Also known as: GHSA-3qpv-xf3v-mm45
- Weaknesses: CWE-15, CWE-829
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: VulnCheck

## Description

OpenClaw before 2026.3.31 allows workspace .env files to override the OPENCLAW_BUNDLED_HOOKS_DIR environment variable, enabling loading of attacker-controlled hook code. Attackers can replace trusted default-on bundled hooks from untrusted workspaces to execute arbitrary code.

(As written by CVE List.)

## Affected

- OpenClaw OpenClaw: before 2026.3.31 (not affected: 2026.3.31)
- openclaw (npm): before 2026.3.31

## Every score

- VulnCheck: CVSS:4.0 8.5 High `CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- VulnCheck: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`

## References

- <https://github.com/openclaw/openclaw/security/advisories/GHSA-3qpv-xf3v-mm45> (vendor-advisory, web)
- <https://github.com/openclaw/openclaw/commit/330a9f98cb29c79b1c16a2117e03d6276a0d6289> (patch, web)
- <https://www.vulncheck.com/advisories/openclaw-arbitrary-hook-code-execution-via-openclaw-bundled-hooks-dir-environment-variable-override> (third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-41336> (advisory)
- <https://github.com/openclaw/openclaw> (package)
- <https://github.com/openclaw/openclaw/releases/tag/v2026.3.31> (web)

## Sources

- CVE List: [CVE-2026-41336](https://www.cve.org/CVERecord?id=CVE-2026-41336), CVE Terms of Use, modified 2026-04-24
- GitHub Advisory Database: [GHSA-3qpv-xf3v-mm45](https://github.com/advisories/GHSA-3qpv-xf3v-mm45), CC-BY-4.0, modified 2026-05-06
- NVD: [CVE-2026-41336](https://nvd.nist.gov/vuln/detail/CVE-2026-41336), Public domain, modified 2026-11-11

---

Page: https://cve.day/CVE-2026-41336 · Whole record: https://cve.day/CVE-2026-41336.json · Rebuilt by cve.day 2026-11-25T22:59:19.427Z
