MaaAssistantArknights GitHub Actions Expression Injection Vulnerability Allowing Remote Code Execution

Vulnerability

A vulnerability has been identified in the GitHub Actions workflow of MaaAssistantArknights, specifically in the release-preparation.yml file. This issue arises from the improper handling of pull request titles, which are injected into shell commands without proper sanitization. As a result, a non-draft pull request from a forked repository, titled 'Release v', could execute arbitrary shell commands on the GitHub Actions runner during the changelog generation job. The vulnerability affects the latest version of MaaAssistantArknights.

Impact

Exploitation of this vulnerability allows for arbitrary code execution on the GitHub Actions runner, with the executed commands running in the context of the repository.

Reproduction

To reproduce this vulnerability, fork the MaaAssistantArknights repository and open a non-draft pull request with a title that starts with 'Release v'. The title should include a command injection payload, such as one that uses command substitution to execute a command, like 'touch /tmp/pwned'. Once the pull request is opened, the 'generate-changelog' job will run and execute the injected command on the runner.

Remediation

The vulnerability can be remediated by binding the pull request title via the 'env' directive and quoting it, preventing GitHub from re-parsing it as shell code. Additionally, a guard can be added to ensure the pull request is from the same repository.

Added: Jul 15, 2026, 10:26 PM
Updated: Jul 15, 2026, 10:26 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
10.0
exploitability
8.4
remediation
0.0
relevance
9.6
threat
4.8
urgency
2.9
incentive
4.2

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.