8.8
HIGH CVSS 3.1
CVE-2026-55249
@rtk-ai/rtk-rewrite: OpenClaw Rewrite Plugin Command Injection via execSync Template String
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.

INFO

Published Date :

June 23, 2026, 7:17 p.m.

Last Modified :

July 1, 2026, 6:47 p.m.

Remotely Exploit :

Yes !
Affected Products

The following products are affected by CVE-2026-55249 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Rtkai rtk-rewrite
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 134c704f-9b21-4f2e-91b3-4a467353bcc0
CVSS 3.1 MEDIUM [email protected]
CVSS 3.1 HIGH [email protected]
Solution
Sanitize user input before passing it to shell commands to prevent command injection.
  • Escape or validate all external inputs used in shell commands.
  • Avoid using shell-backed exec functions with user-controlled data.
  • Update the @rtk-ai/rtk-rewrite plugin to the latest version.
References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2026-55249.

URL Resource
https://github.com/rtk-ai/rtk/security/advisories/GHSA-fqgj-m2gp-mr3q Exploit Patch Third Party Advisory
https://github.com/rtk-ai/rtk/security/advisories/GHSA-fqgj-m2gp-mr3q Exploit Patch Third Party Advisory
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2026-55249 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2026-55249 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2026-55249 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • Initial Analysis by [email protected]

    Jul. 01, 2026

    Action Type Old Value New Value
    Added CVSS V3.1 AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
    Added CPE Configuration OR *cpe:2.3:a:rtkai:rtk-rewrite:1.0.0:*:*:*:*:rust:*:*
    Added Reference Type GitHub, Inc.: https://github.com/rtk-ai/rtk/security/advisories/GHSA-fqgj-m2gp-mr3q Types: Exploit, Patch, Third Party Advisory
    Added Reference Type CISA-ADP: https://github.com/rtk-ai/rtk/security/advisories/GHSA-fqgj-m2gp-mr3q Types: Exploit, Patch, Third Party Advisory
  • CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0

    Jun. 23, 2026

    Action Type Old Value New Value
    Added Reference https://github.com/rtk-ai/rtk/security/advisories/GHSA-fqgj-m2gp-mr3q
    Added SSVC {'id': 'CVE-2026-55249', 'role': 'CISA Coordinator', 'options': [{'exploitation': 'poc'}, {'automatable': 'no'}, {'technicalImpact': 'partial'}], 'version': '2.0.3', 'timestamp': '2026-06-23T18:53:10.248142Z'}
  • New CVE Received by [email protected]

    Jun. 23, 2026

    Action Type Old Value New Value
    Added Affected [{'vendor': 'rtk-ai', 'product': 'rtk', 'versions': [{'status': 'affected', 'version': '1.0.0'}]}]
    Added 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.
    Added CVSS V3.1 AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:L/A:N
    Added CWE CWE-78
    Added Reference https://github.com/rtk-ai/rtk/security/advisories/GHSA-fqgj-m2gp-mr3q
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.