CVE-2023-26493 Command Injection in Cocos Engine workflow

High 8.1 Published Updated

Attackers could inject commands via pull request branch names in Cocos Engine's CI workflow to execute code and steal secrets.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2023-26493?

CVE-2023-26493 is a high-severity command injection vulnerability in cocos-engine, published on 27 Mar 2023. Any signed-in user can exploit it over the network, with no action from the victim.

Official 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.

Weakness: CWE-77, CWE-74

Which versions are affected by CVE-2023-26493?

It affects 1 product.

Products include Cocos Cocos-Engine.

How do I fix CVE-2023-26493?

No fix has been published for CVE-2023-26493 yet. Limit exposure of the affected software until one is available.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2023-26493 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-26493 exists.

Public exploit code: 1 proofs of concept on GitHub.

Sources

Is CVE-2023-26493 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free