Skip to content
RCE Advisory Intermediate CVE-2026-29075

GHSL-2025-009: Arbitrary Code Execution in Mesa benchmarks.yml workflow - CVE-2026-29075

The benchmarks.yml workflow checks out code from a pull request branch and then runs pip install and a Python script from that branch, so a malicious setup.py or benchmarks/global_benchmark.py could execute arbitrary code in the runner. The runner has write privileges to issues and pull requests, so an attacker could potentially modify those resources.

m-y-mo Follow

Originally disclosed on GitHub Security Lab

Checking out of untrusted code in benchmarks.yml workflow may lead to code execution in privileged runner

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 issue may lead to code execution in the runner with write privileges to issues and pull requests.

What the attacker needed

Ability to open a pull request

How it was found

  1. Create a pull request branch containing a malicious setup.py or benchmarks/global_benchmark.py.
  2. The benchmarks.yml workflow checks out the pull request branch.
  3. The workflow runs pip install and the Python script from the branch, executing the malicious code.

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, like a pull request. This workflow took code from the pull request and ran it, so anyone who opened a pull request could make the workflow run their own commands. Those commands ran with special permissions that allowed changing issues and pull requests.

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.