OSV 1.4.0 · github-reviewed · 修改于 2026-06-09 19:55
发布时间
2026-05-14 21:18
GitHub 审查时间
2026-05-14 21:18
NVD 发布时间
2026-06-05 04:16
源文件
advisories/github-reviewed/2026/05/GHSA-q58j-g3f4-h26h/GHSA-q58j-g3f4-h26h.json
The GitHub Actions workflow (.github/workflows/static.yml) uses the pull_request_target trigger but dangerously checks out the unverified code from the pull request head (ref: ${{ github.event.pull_request.head.ref }}). Subsequently, it executes a script (bin/console) from this untrusted checkout.
This allows any external attacker to achieve Remote Code Execution (RCE) on the GitHub Actions runner simply by submitting a malicious Pull Request. Also known as a "Pwn Request" vulnerability.
Steps to Reproduce:
paths condition (e.g., src/dummy.php or composer.json) to trigger the workflow.bin/console file (which is executed in the workflow steps) with the following malicious payload:#!/bin/bash
echo "=== PWNED ==="
echo "whoami:"
whoami
5.0 or next branch of the base repository.Static Tests workflow will trigger automatically. Navigate to the Actions tab and inspect the logs for the Validate YAML (or any step executing bin/console).whoami (typically runner), proving that the arbitrary code was successfully executed in the runner's context.Impact:
Because pull_request_target runs in the context of the base repository, the runner has access to repository secrets (e.g., PIMCORE_SECRET, PIMCORE_PRODUCT_KEY) loaded in the environment. An attacker can exfiltrate these secrets, modify repository contents (if the token has write permissions), or abuse the runner's computing resources.
Recommended Mitigation: Do not checkout untrusted PR code () when using if the code will be built or executed. Consider adopting a separated architecture using the event:
head.refpull_request_targetworkflow_runpull_request event to safely run the build/tests in an unprivileged sandbox and upload artifacts.workflow_run event (which is privileged) to download the artifacts and perform actions requiring secrets.5.0.0