Skip to content
RCE Advisory Intermediate

GHSL-2025-102_GHSL-2025-103: Code injection in acl-anthology

Two GitHub Actions workflows in the acl-anthology repository directly interpolated untrusted pull request titles and bodies into shell commands, allowing an attacker to inject arbitrary commands. Because the workflows used the privileged pull_request_target trigger, an external contributor could execute code with write permissions and access to repository secrets.

p Follow

Originally disclosed on GitHub Security Lab

The latest changeset of acl-anthology was vulnerable to code injection in two GitHub Actions workflows, link-to-checklist and print-info, which could have allowed attackers to execute arbitrary commands during CI processes.

p-, 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

Root cause

The workflows used direct expression interpolation of untrusted pull request fields inside shell commands, so the values were evaluated as code before the script ran.

Impact

This could lead to code execution with high privileges, including access to repository secrets and write permissions, though the report only states this as a possibility.

What the attacker needed

Ability to open a pull request; workflow triggered by pull_request_target

The fix

The workflows were fixed by the maintainers on the same day the report was sent.

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 are automated scripts that run when something happens in a repository, like a new pull request. If a script puts user-controlled text (like a pull request title) directly into a command without cleaning it, an attacker can sneak in extra commands. Here, the scripts ran with high privileges, so an outsider could potentially take over parts of the repository.

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 p

View all

49 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.