# CVE-2026-55249: @rtk-ai/rtk-rewrite: OpenClaw Rewrite Plugin Command Injection via execSync Template String

- Severity: Medium 6.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:L/A: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.33%, higher than 28% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-06-23T18:33:46.014Z
- Modified: 2026-10-25T23:10:00.167Z
- Weaknesses: CWE-78
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

@rtk-ai/rtk-rewrite transparently rewrites shell commands executed via OpenClaw's exec tool to their RTK equivalents. In 1.0.0, the @rtk-ai/rtk-rewrite OpenClaw plugin passes attacker-controlled input directly into a shell-backed execSync() template string without shell-safe escaping. JSON.stringify() wraps the value in double quotes and escapes inner double-quotes and backslashes, but leaves $() and backtick shell metacharacters untouched. Because execSync delegates execution to /bin/sh -c, the shell expands $(...) substitutions even inside double-quoted strings, causing the injected subcommand to execute before rtk is invoked. An attacker who can influence the exec tool's command parameter (e.g., via an LLM agent prompt or gateway/tool-call input) achieves arbitrary OS command execution with the privileges of the plugin/gateway process.

(As written by CVE List.)

## Affected

- rtk-ai rtk: 1.0.0
- rtkai rtk-rewrite: 1.0.0

## Every score

- GitHub_M: CVSS:3.1 6.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:L/A:N`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`

## References

- <https://github.com/rtk-ai/rtk/security/advisories/GHSA-fqgj-m2gp-mr3q> (exploit, patch, third-party-advisory)

## Sources

- CVE List: [CVE-2026-55249](https://www.cve.org/CVERecord?id=CVE-2026-55249), CVE Terms of Use, modified 2026-06-23
- NVD: [CVE-2026-55249](https://nvd.nist.gov/vuln/detail/CVE-2026-55249), Public domain, modified 2026-10-25

---

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