NextCloud Cookbook's pull-checks.yml workflow is vulnerable to OS Command Injection
No sign of exploitation. No public exploitation artifact known so far.
NextCloud Cookbook's automated workflow script unsafely uses user-controlled branch names, allowing attackers to inject and execute arbitrary commands during pull requests. This lets attackers with fork access run malicious code in the build pipeline.
The pull-checks.yml GitHub Actions workflow directly interpolates the untrusted github.head_ref variable (attacker-controlled via pull request branch naming) into shell commands without sanitization, enabling OS command injection. An attacker with fork permissions can craft a branch name containing shell metacharacters to execute arbitrary commands with workflow permissions; the issue was remediated by removing unsafe variable interpolation in subsequent commits.