GHSL-2025-101: Code injection in a GitHub Actions workflow of homeassistant-tapo-control - CVE-2025-55192
The issues.yml GitHub Actions workflow inserted the text of a newly opened issue directly into a bash condition without sanitisation. An attacker who could open an issue could craft its body so that the inserted text was executed as shell commands in the workflow's privileged context.
The homeassistant-tapo-control repository was vulnerable to code injection in the issues.yml GitHub Actions workflow.
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 report has not been written yet. The Original tab links to the source.
How it worked
Root cause
The workflow interpolated the untrusted github.event.issue.body value directly into a bash script instead of passing it through an environment variable or otherwise quoting it.
Impact
This could lead to code execution in a high-privileged context, though the report does not demonstrate a working exploit.
What the attacker needed
Ability to open an issue in the repository
The fix
The maintainer fixed the issue and published a security advisory the day after the report.
How it was found
- Open an issue in the repository with a body crafted to break out of the bash condition.
- The issues workflow triggers on the opened event and runs the bash script.
- The crafted issue body is evaluated as shell code in the privileged workflow context.
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 report has not been written yet. The Original tab links to the source.
A GitHub Actions workflow is an automated script that runs when something happens in a repository, such as a new issue being opened. Here the script pasted the issue's text straight into a shell command, so text that looked like shell syntax could run as commands. Because the workflow ran with elevated permissions, that could let an outsider execute code on the project's automation.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.