Skip to content
RCE Advisory Intermediate

GHSL-2025-090: Code injection in Github Actions with privileged context in harvester

A GitHub Actions workflow used the pull request title directly in a shell command, allowing an attacker to inject arbitrary code. Because the workflow ran with privileged repository context and a custom token, this could lead to code execution and secret exposure.

m-y-mo Follow

Originally disclosed on GitHub Security Lab

A code injection vulnerability (GHSL-2025-090) was identified in the latest main branch of the harvester/harvester project, where improper handling of inputs in GitHub Actions with privileged context could allow attackers to execute arbitrary code. This poses a significant security risk, especially if exploited in…

m-y-mo, on GitHub Security Lab

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 could lead to code execution in a high-privileged context and potentially expose a custom GitHub token.

What the attacker needed

Ability to open a pull request; pull request targets master or v* branch

The fix

The issue was fixed by the maintainers.

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, like a new pull request. Here, the script took the title of the pull request and put it directly into a command without checking it, so someone could craft a title that runs their own commands. Since the script had special permissions and a secret token, this could let an attacker do harmful things.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

More by m-y-mo

View all

64 more disclosed reports, best first.

More from GitHub Security Lab

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.