Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. coreshop/core-shop
  4. ›
  5. CVE-2026-41249

CVE-2026-41249: CoreShop Vulnerable to Remote Code Execution (RCE) via Insecure `pull_request_target` Configuration

May 14, 2026 (updated June 9, 2026)

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:

  1. Fork the target repository.
  2. In the forked repository, modify a file that satisfies the paths condition (e.g., src/dummy.php or composer.json) to trigger the workflow.
  3. Modify the bin/console file (which is executed in the workflow steps) with the following malicious payload:

References

  • github.com/advisories/GHSA-q58j-g3f4-h26h
  • github.com/coreshop/CoreShop/blob/5.1.0-beta.1/.github/workflows/static.yml
  • github.com/coreshop/CoreShop/commit/cc1e3f547228ec5ebfc1dc0472f9a3cc5f4137a4
  • github.com/coreshop/CoreShop/security/advisories/GHSA-q58j-g3f4-h26h
  • nvd.nist.gov/vuln/detail/CVE-2026-41249

Code Behaviors & Features

Detect and mitigate CVE-2026-41249 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

Version 5.0.0

Solution

Unfortunately, there is no solution available yet.

Impact 8.2 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-94: Improper Control of Generation of Code ('Code Injection')

Source file

packagist/coreshop/core-shop/CVE-2026-41249.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 23 Jun 2026 12:24:50 +0000.