CVE-2025-11148: OS Command Injection
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.
Other sources
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
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2025-11148?
CVE-2025-11148 is classified as a high severity vulnerability due to potential command injection risks.
How do I fix CVE-2025-11148?
To fix CVE-2025-11148, upgrade to the latest version of the check-branches package which addresses this vulnerability.
What types of systems are affected by CVE-2025-11148?
CVE-2025-11148 affects all versions of the check-branches package used in command-line tools and CI environments.
What is the impact of CVE-2025-11148 on my applications?
Applications using the vulnerable version of check-branches may allow attackers to execute arbitrary commands through crafted branch names.
Is my data at risk due to CVE-2025-11148?
Yes, CVE-2025-11148 could potentially compromise data integrity by allowing remote command execution, impacting sensitive information.