7.7high
Argument injection vulnerability in SonarQube Scan Action
- Severity
- 7.7high CVSS:4.0 by GitHub_M
- Exploit likelihood
- 3.00% (higher than 88% of CVEs)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-5xq9-5g24-4g6f
Description
SonarQube Server and Cloud is a static analysis solution for continuous code quality and security inspection. A command injection vulnerability exists in SonarQube GitHub Action in version 4.0.0 to before version 6.0.0 when workflows pass user-controlled input to the args parameter on Windows runners without proper validation. This vulnerability bypasses a previous security fix and allows arbitrary command execution, potentially leading to exposure of sensitive environment variables and compromise of the runner environment. The vulnerability has been fixed in version 6.0.0. Users should upgrade to this version or later.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| SonarSource sonarqube-scan-action | >= 4.0.0, < 6.0.0 | CVE List |
| SonarSource/sonarqube-scan-action (GitHub Actions) | from 4.0.0 before 6.0.0 | GitHub Advisory Database |
All scores
| GitHub_M | 7.7high CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N |
| GitHub | high CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
SonarQube Server and Cloud is a static analysis solution for continuous code quality and security inspection. A command injection vulnerability exists in SonarQube GitHub Action in version 4.0.0 to before version 6.0.0 when workflows pass user-controlled input to the args parameter on Windows runners without proper validation. This vulnerability bypasses a previous security fix and allows arbitrary command execution, potentially leading to exposure of sensitive environment variables and compromise of the runner environment. The vulnerability has been fixed in version 6.0.0. Users should upgrade to this version or later.
GitHub Advisory Database
A command injection vulnerability exists in SonarQube GitHub Action prior to v6.0.0 when workflows pass user-controlled input to the args parameter on Windows runners without proper validation. This vulnerability bypasses a previous security fix and allows arbitrary command execution, potentially leading to exposure of sensitive environment variables and compromise of the runner environment.
Patches
The vulnerability has been fixed in version v6.0.0. Users should upgrade to this version or later.
Credits
Francois Lajeunesse-Robert (Boostsecurity.io)
References
NVD (es)
SonarQube Server y Cloud es una solución de análisis estático para la inspección continua de la calidad y seguridad del código. Existe una vulnerabilidad de inyección de comandos en SonarQube GitHub Action en la versión 4.0.0 hasta antes de la versión 6.0.0 cuando los flujos de trabajo pasan entrada controlada por el usuario al parámetro args en ejecutores de Windows sin la validación adecuada. Esta vulnerabilidad elude una corrección de seguridad anterior y permite la ejecución arbitraria de comandos, lo que podría llevar a la exposición de variables de entorno sensibles y al compromiso del entorno del ejecutor. La vulnerabilidad ha sido corregida en la versión 6.0.0. Los usuarios deben actualizar a esta versión o posterior.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-59844 changed 2025-09-26 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-5xq9-5g24-4g6f changed 2025-09-29 | CC-BY-4.0 |
| NVD | CVE-2025-59844 changed 2026-10-09 | Public domain |