Vulnerability · CVE-2025-54416
tj-actions/branch-names has a Command Injection Vulnerability
Published Jul 25, 2025 · catalog updated Sep 10, 2026 · tj-actions/branch-names has a Command
Check if you run it
No confirmed exploitation is on record for CVE-2025-54416. EPSS is 0.65%. Act only if a listed version of tj-actions/branch-names has a Command is installed.
Gaps on this record
- The stored product name is a package slug. The name on this page is taken from the title (tj-actions/branch-names has a Command).
- No vendor fix or required action is stored. Compare the linked advisory before you change production.
- Severity
- Critical9.1
- Known exploitation
- Not in CISA/VulnCheck KEV
- EPSS
- 0.65%
- Remediation
- Advisory link
- Affected products
- GitHub Actions tj-actions/branch-names
#### **Overview** A critical vulnerability has been identified in the 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. #### **Technical Details** The vulnerability stems from the unsafe use of the pattern within the action's codebase. Although initial sanitization using properly escapes untrusted input, subsequent unescaping via reintroduces command injection risks. This unsafe pattern is demonstrated in the following code snippet: This approach allows attackers to inject arbitrary commands into workflows consuming these outputs, as shown in the Proof-of-Concept (PoC) below. #### **Proof-of-Concept (PoC)** 1. Create a branch with the name . 2. Trigger the vulnerable workflow by opening a pull request into the target repository. 3. Observe arbitrary code execution in the workflow logs. Example output: #### **Impact** This vulnerability enables arbitrary command execution in repositories consuming outputs from . The severity of the impact depends on the permissions granted to the and the context of the triggering event. Potential consequences include: - Theft of sensitive secrets stored in the repository. - Unauthorized write access to the repository. - Compromise of the repository's integrity and security. #### **Mitigation and Resolution** To address this vulnerability, the unsafe pattern must be replaced with safer alternatives. Specifically, direct calls can achieve the same functionality without unescaping shell-unsafe characters. Below is the recommended fix: This approach ensures that all outputs remain properly escaped and safe for downstream consumption. #### **Recommendations** 1. **Immediate Action**: Develo
Are you affected?
Enter the version you run. The result uses only the ranges stored on this record.
The check returns affected, not affected, or incomplete. It does not guess a version that is missing from the record.
- GitHub Actions tj-actions/branch-names0 → 9.0.0
How to fix CVE-2025-54416
Recommended remediation
A patch or advisory reference is linked. Open the original publisher for availability by product version.
Official advisories
What to do
Three questions, each answered from this record only. Confirm the vendor advisory before you patch.
Should you patch?
No confirmed exploitation is on record for CVE-2025-54416. EPSS is 0.65%. Act only if a listed version of tj-actions/branch-names has a Command is installed.
Which versions are affected?
Compare what you have installed with 0 → 9.0.0. Compare the installed version with the linked vendor advisory before you change production.
What should an analyst verify?
CWE-77: Command Injection. EPSS 0.65%. There is no CISA KEV listing. No Exploit-DB or Metasploit reference is linked. Use the source links for the original advisory.
Code
The project this record applies to. Exploit listings stay in References.
Timeline
Detection, updates, and resolution for this record.
Jul 25, 2025 · GitHub Advisory Database
Detected
#### **Overview** A critical vulnerability has been identified in the 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 rema
Sep 10, 2026 · GitHub Advisory Database
Fix available
tj-actions/branch-names fixed in 9.0.0
Sep 10, 2026 · GitHub Advisory Database
Fix available
tj-actions/branch-names fixed in 9.0.0
Sep 10, 2026 · GitHub Advisory Database
Updated
#### **Overview** A critical vulnerability has been identified in the 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 rema
Sources
- CVE.orgVulnerability recordCVE-2025-54416
Official CVE identifier
cve.org - FIRST EPSSExploitation probabilityCVE-2025-54416
30-day exploitation probability 0.7%
first.org - GitHub Advisory DatabasePackage advisoryGHSA-gq52-6phf-x2r6
GitHub Advisory Database record mirrored by OSV.
github.com - OpenSSF OSV / OSV ScannerPackage advisoryGHSA-gq52-6phf-x2r6
tj-actions/branch-names has a Command Injection Vulnerability
osv.dev
References
Freshness
Last verified in this catalog Oct 18, 2026. Significant claims (KEV, EPSS, CVSS, affected ranges) come from the source rows above — open the original publisher for the authoritative advisory.