Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconFork target repository
-
DeliveryModify bin/console with exfiltration payload
-
ExploitSubmit pull request
-
InstallWorkflow auto-triggers in privileged context
-
C2Malicious script executes on runner
-
ExecuteExfiltrate repository secrets
-
ImpactAttacker obtains credentials
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Attack requires the target CoreShop repository to have the vulnerable .github/workflows/static.yml workflow file configured with pull_request_target trigger and unverified code checkout (ref: github.event.pull_request.head.ref). Exploitation succeeds against repositories accepting pull requests from external contributors (public repositories or private repositories with external collaborators enabled). The workflow must be enabled and not protected by manual approval requirements for external contributors. Attack is limited to GitHub-hosted or self-hosted Actions runners with the workflow enabled; it cannot reach production CoreShop application servers directly. The malicious PR must modify files matching the workflow's paths filter (src/**/*.php, composer.json, composer.lock, or related paths) to trigger execution. No authentication to the CoreShop application itself is required-only a GitHub account capable of forking repositories and submitting pull requests, which is available to any user. The vulnerability is not limited by victim user interaction beyond maintainers having automatic workflow execution enabled (default GitHub setting). Repository secrets must be configured in the workflow environment for high-value exfiltration; repositories without configured secrets have reduced but non-zero impact (runner compromise, potential artifact poisoning). |
| Impact | The CVSS 8.2 score (AV:N/AC:L/PR:N/UI:N) correctly reflects network-based, low-complexity, unauthenticated exploitation with no user interaction required. The attack vector is particularly dangerous because it bypasses traditional application security controls entirely-the vulnerability exists in the development workflow, not production code. Attack complexity is genuinely low: an attacker needs only to fork the repository and submit a PR with modified bin/console file, requiring no specialized knowledge beyond basic GitHub operations. The confidentiality impact is High (C:H) as repository secrets are fully exposed, while integrity impact is Low (I:L) rather than High because the compromise is limited to CI/CD infrastructure rather than production systems directly, though stolen secrets could enable downstream attacks. No EPSS score is available for this recent CVE, and it is not listed in CISA KEV, suggesting no widespread exploitation campaigns detected yet. However, the proof-of-concept is trivially simple (provided in the advisory with step-by-step instructions and screenshot evidence), meaning sophisticated tooling is unnecessary. The primary risk is secret exfiltration rather than service disruption (A:N). Real-world priority is HIGH for organizations using affected CoreShop versions in CI/CD, as the attack surface is permanently exposed to any GitHub user who can submit pull requests. The absence of a vendor patch (fixed in: None) significantly elevates risk, requiring manual workflow remediation. |
| Exploit ScenarioDerived | An external attacker forks the CoreShop repository on GitHub and creates a malicious branch modifying two files: src/dummy.php (to satisfy the workflow's paths trigger filter) and bin/console (replacing it with a bash script containing curl commands to exfiltrate secrets to an attacker-controlled server). The attacker opens a pull request against the 5.0 branch. GitHub automatically triggers the Static Tests workflow using pull_request_target, which executes in the base repository's privileged context. The workflow checks out the attacker's malicious code and runs bin/console during the Validate YAML step. The malicious script executes, accessing environment variables containing PIMCORE_SECRET and PIMCORE_PRODUCT_KEY, and transmits them to the attacker via HTTP POST. The attacker now possesses credentials that could be used to compromise production Pimcore installations or CoreShop deployments. Total time from PR submission to secret exfiltration: under 5 minutes with automated workflow execution. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 14, 2026
Remote code execution in CoreShop's GitHub Actions CI/CD pipeline allows unauthenticated attackers to compromise the build infrastructure and exfiltrate repository secrets by submitting a malicious pull request. The vulnerability stems from the dangerous combination of pull_request_target trigger with unverified code checkout, enabling attackers to execute arbitrary commands (bin/console) on GitHub-hosted runners with access to sensitive credentials including PIMCORE_SECRET and PIMCORE_PRODUCT_KEY. This 'Pwn Request' attack pattern (CWE-94: Code Injection) affects version 5.0.0 with no vendor patch currently released. The attack requires zero authentication (PR:N) and low complexity (AC:L), representing a critical supply chain security risk for organizations using CoreShop.
RemediationAI
No vendor-released patch is available at time of analysis (fixed in: None per advisory metadata). Organizations using CoreShop 5.0.0 must manually remediate the .github/workflows/static.yml workflow file. Primary fix: Remove the dangerous ref parameter from the actions/checkout step so it checks out the base repository's trusted code instead of the PR head, or replace pull_request_target trigger with pull_request for unprivileged execution. Vendor recommends implementing a two-stage workflow architecture: (1) Use pull_request trigger to run tests in an unprivileged sandbox and upload build artifacts, (2) Use workflow_run trigger in a separate privileged workflow to download artifacts and perform actions requiring secrets, ensuring untrusted code never executes in privileged context. Immediate compensating control: Require manual approval for all external contributor pull requests before workflow execution using GitHub's protected branches settings and workflow approval requirements (Settings → Environments → create protection rule requiring reviewer approval for pull_request_target workflows). This prevents automatic exploitation but adds operational friction. Side effect: Manual approval requirement will delay legitimate external contributions. Alternative workaround: Temporarily disable the Static Tests workflow entirely until manual remediation is completed, trading CI/CD automation for security. Organizations should audit all repository secrets (PIMCORE_SECRET, PIMCORE_PRODUCT_KEY) for potential compromise if external PRs were processed before remediation, and rotate credentials if suspicious activity is detected. Reference implementation guidance at https://securitylab.github.com/research/github-actions-preventing-pwn-requests/.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in composer, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
This vulnerability exploits a fundamental GitHub Actions security anti-pattern involving the pull_request_target workflow trigger. Unlike the standard pull_request trigger which executes in an isolated context with limited permissions, pull_request_target runs workflows in the privileged context of the base repository with full access to secrets and write tokens. The CoreShop workflow (.github/workflows/static.yml) compounds this by explicitly checking out untrusted code from the PR head branch (ref: github.event.pull_request.head.ref) and then executing scripts (bin/console) from that checkout. The CPE identifier pkg:composer/coreshop_core-shop indicates this is a Composer-based PHP package, and the bin/console script is a standard PHP/Symfony console entry point. The vulnerability represents CWE-94 (Improper Control of Generation of Code), specifically in the CI/CD automation layer rather than the application code itself. This class of supply chain vulnerability has become increasingly prevalent as attackers target build infrastructure rather than production systems directly.
Know when PHP gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N
Primary rating from Vendor (https://github.com/coreshop/CoreShop) · only source for this CVE.
CVSS VectorVendor: https://github.com/coreshop/CoreShop
DescriptionCVE.org
Summary
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:
- Fork the target repository.
- In the forked repository, modify a file that satisfies the
pathscondition (e.g.,src/dummy.phporcomposer.json) to trigger the workflow. - Modify the
bin/consolefile (which is executed in the workflow steps) with the following malicious payload:
#!/bin/bash
echo "=== PWNED ==="
echo "whoami:"
whoami- Commit the changes and open a Pull Request against the
5.0ornextbranch of the base repository. - The
Static Testsworkflow will trigger automatically. Navigate to the Actions tab and inspect the logs for theValidate YAML(or any step executingbin/console). - You will see the output of
whoami(typicallyrunner), proving that the arbitrary code was successfully executed in the runner's context.
<img width="490" height="87" alt="スクリーンショット 2026-04-14 11 14 56" src="https://github.com/user-attachments/assets/94276033-b989-46dc-b4a1-3dafa1603235" />
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 (head.ref) when using pull_request_target if the code will be built or executed. Consider adopting a separated architecture using the workflow_run event:
- Use the
pull_requestevent to safely run the build/tests in an unprivileged sandbox and upload artifacts. - Use the
workflow_runevent (which is privileged) to download the artifacts and perform actions requiring secrets.
Executive ViewAI
CoreShop versions 5.0.0 contain a remote code execution vulnerability in GitHub Actions CI/CD pipelines that allows unauthenticated attackers to execute arbitrary commands and steal repository secrets by submitting malicious pull requests. This directly compromises build infrastructure and sensitive credentials, creating a critical supply chain risk for any organization using CoreShop in their development pipeline.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Require manual approval for all pull request workflows before execution; (2) Use GitHub branch protection rules to block unapproved PRs; (3) Implement secrets scanning and rotate all CI/CD credentials immediately; (4) Disable pull_request_target trigger and replace with pull_request trigger on default branch checkout; (5) Restrict GitHub Actions permissions to minimum required scope; (6) Audit and revoke any exposed PIMCORE_SECRET and PIMCORE_PRODUCT_KEY values.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it
sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not
(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear
The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by
ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C
Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au
Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c
Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows
The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1
EUVD-2026-34318
GHSA-q58j-g3f4-h26h
NVD
CVE.org
EPSS
Exploit-DB