GHSL-2025-087: Potential code execution in high privilege context in PX4-Autopilot
A GitHub Actions workflow evaluated user-controlled file content using the ${{}} syntax, allowing code injection. An attacker could create a malicious file name in a pull request to execute arbitrary commands in a privileged CI/CD context.
A code injection vulnerability was identified in the PX4/PX4-Autopilot project within the docsprcomment.yml GitHub Actions workflow on the latest main branch. An attacker could exploit this issue in a privileged context to execute arbitrary code, potentially compromising the CI/CD pipeline.
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 in high privilege context.
What the attacker needed
Ability to open a pull request; pull request triggers docs_flaw_checker workflow
The fix
The issue was fixed according to the timeline.
How it was found
- Create a pull request with a file name containing shell metacharacters and commands.
- The docs_flaw_checker workflow runs on pull_request_target and produces errorsFilteredByPrPages.md containing the malicious file name.
- The docs_pr_comment workflow is triggered by workflow_run and reads that file.
- The workflow evaluates the file content in a shell command, executing the injected commands.
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 can run commands automatically. If a workflow inserts untrusted text directly into a command, an attacker can sneak in extra commands. Here, a file name from a pull request was inserted into a shell command, letting an attacker run their own code on the build system.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.