9.8critical
check-branches is vulnerable to command Injection
- Severity
- 9.8critical CVSS:3.1 by snyk
- Exploit likelihood
- 1.40% (higher than 73% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- snyk
- Also known as
- GHSA-9c4g-fp4r-prrv
Description
All versions of the package check-branches are vulnerable to Command Injection check-branches is a command-line tool that is interacted with locally, or via CI, to confirm no conflicts exist in git branches. However, the library follows these conventions which can be abused: 1. It trusts branch names as they are (plain text) 2. It spawns git commands by concatenating user input Since a branch name is potentially a user input - as users can create branches remotely via pull requests, or simply due to privileged access to a repository - it can effectively be abused to run any command.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| check-branches | before * | CVE List |
| check-branches (npm) | up to 0.0.19 | GitHub Advisory Database |
All scores
| snyk | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| GitHub | critical CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N |
Classification
What each source says
CVE List
All versions of the package check-branches are vulnerable to Command Injection check-branches is a command-line tool that is interacted with locally, or via CI, to confirm no conflicts exist in git branches. However, the library follows these conventions which can be abused: 1. It trusts branch names as they are (plain text) 2. It spawns git commands by concatenating user input Since a branch name is potentially a user input - as users can create branches remotely via pull requests, or simply due to privileged access to a repository - it can effectively be abused to run any command.
GitHub Advisory Database
All versions of the package check-branches are vulnerable to Command Injection.
check-branches is a command-line tool that is interacted with locally, or via CI, to confirm no conflicts exist in git branches.
However, the library follows these conventions which can be abused:
- It trusts branch names as they are (plain text)
- It spawns git commands by concatenating user input
Since a branch name is potentially a user input - as users can create branches remotely via pull requests, or simply due to privileged access to a repository - it can effectively be abused to run any command.
NVD (es)
Todas las versiones del paquete check-branches son vulnerables a Inyección de comandos. check-branches es una herramienta de línea de comandos con la que se interactúa localmente, o a través de CI, para confirmar que no existen conflictos en las ramas de git. Sin embargo, la biblioteca sigue estas convenciones que pueden ser explotadas: 1. Confía en los nombres de las ramas tal como están (texto plano) 2. Genera comandos de git concatenando la entrada del usuario Dado que el nombre de una rama es potencialmente una entrada de usuario - ya que los usuarios pueden crear ramas de forma remota a través de solicitudes de extracción (pull requests), o simplemente debido a un acceso privilegiado a un repositorio - puede ser explotado eficazmente para ejecutar cualquier comando.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-11148 changed 2025-09-30 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-9c4g-fp4r-prrv changed 2025-10-03 | CC-BY-4.0 |
| NVD | CVE-2025-11148 changed 2026-06-17 | Public domain |