CVE-2025-54416 tj-actions/branch-names Contains Command Injection Vulnerability
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: partial
Description
tj-actions/branch-names is a Github actions repository that contains workflows to retrieve branch or tag names with support for all events. In versions 8.2.1 and below, a critical vulnerability has been identified in the tj-actions/branch-names' GitHub Action workflow which allows arbitrary command execution in downstream workflows. This issue arises due to inconsistent input sanitization and unescaped output, enabling malicious actors to exploit specially crafted branch names or tags. While internal sanitization mechanisms have been implemented, the action outputs remain vulnerable, exposing consuming workflows to significant security risks. This is fixed in version 9.0.0
Upgrade path
2 packages: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| tj-actions/branch-names(GitHub Actions) | <= 8.2.1 | after 8.2.1 | Fixed |
| tj-actions/branch-names | = < 9.0.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| tj-actions/branch-names(GitHub Actions) | <= 8.2.1 | No fix listed |
| tj-actions/branch-names | = < 9.0.0 | No fix listed |
References
- github.com vendor-advisory
- https://github.com/tj-actions/branch-names/security/advisories/GHSA-gq52-6phf-x2r6 exploit vendor-advisory
- github.com vendor-advisory
- https://github.com/tj-actions/branch-names/commit/e497ceb8ccd43fd9573cf2e375216625bc411d1f patch
- github.blog
- https://github.com/tj-actions/branch-names/releases/tag/v9.0.0
- securitylab.github.com
- nvd.nist.gov third-party-advisory
- github.com