GHSL-2025-093: Code Injection in PraisonAI claude-code-action GitHub Actions Workflow
The GitHub Actions workflow directly interpolated user-controlled issue body and title into shell commands, allowing code injection. An attacker could execute arbitrary code with high privileges and exfiltrate the ANTHROPIC_API_KEY secret.
PraisonAI repository was vulnerable to code injection in the claude-code-action GitHub Actions workflow (GHSL-2025-093).
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 used GitHub Actions expression syntax to insert untrusted issue body and title directly into shell script variables, enabling command injection.
Impact
This issue may lead to code execution with high privileges and secret exfiltration.
What the attacker needed
Ability to create or edit an issue
The fix
The vulnerability was fixed in commit [redacted].
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.
GitHub Actions workflows run automated tasks when events like new issues occur. If a workflow puts text from an issue directly into a shell command without sanitising it, an attacker can craft the issue text to run their own commands. Here, that could let them steal a secret API key.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.