GHSL-2025-091: Code injection vulnerability in a GitHub Actions workflow of ansys/pymapdl
A GitHub Actions workflow executed user-supplied comment text inside a script, allowing an attacker to inject code. The workflow ran with write permissions and access to secrets, so an attacker could execute arbitrary code and leak repository secrets.
A code injection vulnerability was identified in the GitHub Actions workflow migrator.yml of the ansys/pymapdl project on the latest main branch, enabling potential attackers to execute arbitrary code with privileged context and leak repository secrets. This could lead to unauthorized access, exposure of sensitive…
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
Impact
This issue may lead to code execution with high privileges and secret exfiltration.
What the attacker needed
Attacker can comment on issues
The fix
The issue was fixed.
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 on GitHub, like a new comment. Here, the workflow took the text of a comment and ran it as code without checking it, so anyone who could comment could make the workflow run their own commands. Because the workflow had special permissions and secret tokens, the attacker could steal those secrets.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.