# CVE-2023-26493: Command Injection in Cocos Engine workflow

- Severity: High 8.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.91%, higher than 87% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2023-03-27T21:35:36.844Z
- Modified: 2026-06-17T05:43:27.577Z
- Weaknesses: CWE-74, CWE-77
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

Cocos Engine is an open-source framework for building 2D & 3D real-time rendering and interactive content. In the github repo for Cocos Engine the `web-interface-check.yml` was subject to command injection. The `web-interface-check.yml` was triggered when a pull request was opened or updated and contained the user controllable field `(${{ github.head_ref }} – the name of the fork’s branch)`. This would allow an attacker to take over the GitHub Runner and run custom commands (potentially stealing secrets such as GITHUB_TOKEN) and altering the repository. The workflow has since been removed for the repository. There are no actions required of users.

(As written by CVE List.)

## Affected

- cocos cocos-engine: < 6d06aefa26; before 2023-02-20

## Every score

- GitHub_M: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://securitylab.github.com/advisories/GHSL-2023-027_Engine_for_Cocos_Creator/> (exploit, third-party-advisory)
- <https://github.com/cocos/cocos-engine/commit/6d06aefa2684e20da79e7ceaf41f728c1a8d7a41> (patch)
- <https://github.com/cocos/cocos-engine/blob/2362df28a4b3016dbda804899041279701929728/.github/workflows/web-interface-check.yml> (product)

## Sources

- CVE List: [CVE-2023-26493](https://www.cve.org/CVERecord?id=CVE-2023-26493), CVE Terms of Use, modified 2025-02-19
- NVD: [CVE-2023-26493](https://nvd.nist.gov/vuln/detail/CVE-2023-26493), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-26493 · Whole record: https://cve.day/CVE-2023-26493.json · Rebuilt by cve.day 2026-11-25T22:58:22.733Z
