(CVE-2026-0830) AWS Kiro GitLab Helper Remote Code Execution
Kiro's GitLab Merge Request helper built shell commands by pasting an unquoted workspace path into a string passed to a shell execution function. A repository whose folder name contained shell metacharacters could therefore run arbitrary commands on the developer's machine when the helper was triggered.
medium.com
Published on medium.com
Trust the Workspace, Own the Developer -Kiro’s GitLab Merge Request helper passes workspace paths to childprocess.exec without quoting, turning folder names into shell commands. This issue has been addressed and fixed in version 0.6.18 and CVE-2026-0830 was assigned from AWS.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Impact
An attacker-controlled repository could run arbitrary commands on the developer's machine once opened in Kiro and the GitLab merge request helper was triggered, which the text says can happen automatically.
What the attacker needed
Kiro before version 0.6.18; victim opens a maliciously named repo; victim trusts the workspace; GitLab MR helper is triggered
The fix
The fix was to stop building shell strings and instead use a non-shell execution API, passing the working directory through the dedicated current-working-directory option; the text says version 0.6.18 addressed it.
How it was found
- Obtain and unzip the proof-of-concept repository so its folder name keeps the embedded shell metacharacters.
- Open the folder in Kiro and trust the workspace.
- In chat type the hash character and select the GitLab Merge Request helper.
- Send any prompt to the helper, which triggers the command construction.
- The calculator application launches, showing arbitrary command execution.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
When a program needs to run another program, it can either call it directly or hand a text command to a shell, which interprets special characters. Here the folder path was pasted into that text without protection, so a folder name containing shell symbols was treated as extra commands. Opening a maliciously named repository and using the GitLab helper was enough to run the attacker's commands with the developer's own permissions.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.