GHSL-2026-229: Arbitrary code execution on pull requests in a privileged reusable release-check.yml workflow from ipdxco/unified-github-workflows - CVE-2026-92261
A reusable GitHub Actions workflow read a version string from an attacker-controlled file in a pull request and wrote it to the step output without checking for newlines, allowing the attacker to forge the prefix output. The forged prefix was then interpolated into a sed program whose e flag executed it as a shell command, giving arbitrary command execution in a privileged pull_request_target job.
The release-check.yml reusable workflow reads a version string from a file in the head commit of a pull request and writes it to $GITHUBOUTPUT with a single-line echo. Because the value is attacker-controlled and is not checked for newlines, a pull request author can emit additional step-output records and overwrite…
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 workflow wrote an attacker-controlled value to $GITHUB_OUTPUT without rejecting newlines, letting the attacker forge the prefix output, which was then interpolated unescaped into a sed program that used the e flag.
Impact
An attacker who can open a pull request could run arbitrary commands in a privileged pull_request_target job with contents: write and pull-requests: write, subject to branch protection, and could read any other secrets exposed to the job; first-time external contributors need approval by default, but returning contributors and organisation members with read access do not.
What the attacker needed
Ability to open a pull request; pull request modifies version.json; workflow called from pull_request_target
The fix
The fix was pushed and released as v1.0.44.
How it was found
- Open a pull request that modifies version.json with a version value containing a newline and a forged prefix record.
- The workflow checks out the attacker's version.json and reads the version with yq, which turns the JSON newline escape into a real newline.
- The workflow writes the version to $GITHUB_OUTPUT, so the extra line replaces the trusted prefix output.
- The prev step interpolates the forged prefix into a grep pattern and a sed program.
- The sed e flag executes the crafted replacement as a shell command once per matching tag.
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 reusable workflow is a shared automation script that other repositories call. It ran with extra privileges because it was triggered by pull_request_target, which runs in the context of the base repository. The workflow trusted a version string from the pull request and passed it into a text-processing tool, sed, which can run shell commands when given a special flag. An attacker could therefore run their own commands inside a job that had write access to 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.