CVE-2025-59844: SonarSource/sonarqube scan action Argument Injection Vulnerability Vulnerability
HIGHCVE-2025-59844 is a HIGH argument injection vulnerability vulnerability (CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')) affecting SonarSource/sonarqube scan action libraries in the GitHub Actions ecosystem. The issue involves argument injection vulnerability in sonarqube scan action. Remediation is available by upgrading affected packages to version 6.0.0.
CVE-2025-59844 at a Glance
How to Fix CVE-2025-59844
To remediate this vulnerability, upgrade all affected SonarSource/sonarqube scan action dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade SonarSource/sonarqube-scan-action to 6.0.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for SonarSource/sonarqube-scan-action
How to Check if You Are Affected
To determine whether your application is affected by CVE-2025-59844, inspect your project dependencies for SonarSource/sonarqube scan action:
inspect dependencies for SonarSource/sonarqube-scan-action
Analyze the terminal output to locate any version of SonarSource/sonarqube scan action in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 6.0.0), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection'), where the product constructs all or part of an os command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended os command when it is sent to a downstream component. In SonarSource/sonarqube scan action, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-59844 Affected SonarSource/sonarqube scan action Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
SonarSource/sonarqube-scan-action
|
GitHub Actions |
≥ 4.0.0
< 6.0.0
|
6.0.0
|
References
Frequently Asked Questions
What is CVE-2025-59844?
Which SonarSource/sonarqube scan action versions are affected?
What version fixes CVE-2025-59844?
Is SonarSource/sonarqube-scan-action affected?
What CWE is associated with CVE-2025-59844?
How can I check GitHub Actions dependencies for CVE-2025-59844?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-5xq9-5g24-4g6f",
"modified" : "2025-09-29T14:23:15Z",
"published" : "2025-09-26T13:01:10Z",
"aliases" : [ "CVE-2025-59844" ],
"summary" : "Argument injection vulnerability in SonarQube Scan Action",
"details" : "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.\n\n\n### Patches\nThe vulnerability has been fixed in version v6.0.0. Users should upgrade to this version or later.\n\n\n### Credits\nFrancois Lajeunesse-Robert (Boostsecurity.io)\n\n\n### References\n- Community Post: https://community.sonarsource.com/t/sonarqube-scanner-github-action-v6/149281 \n- Fix release: https://github.com/SonarSource/sonarqube-scan-action/releases/tag/v6.0.0",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "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"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "GitHub Actions",
"name" : "SonarSource/sonarqube-scan-action"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.0.0"
}, {
"fixed" : "6.0.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/SonarSource/sonarqube-scan-action/security/advisories/GHSA-5xq9-5g24-4g6f"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-59844"
}, {
"type" : "WEB",
"url" : "https://community.sonarsource.com/t/sonarqube-scanner-github-action-v6/149281"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/SonarSource/sonarqube-scan-action"
}, {
"type" : "WEB",
"url" : "https://github.com/SonarSource/sonarqube-scan-action/releases/tag/v6.0.0"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-78" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2025-09-26T13:01:10Z",
"nvd_published_at" : "2025-09-26T17:15:36Z"
}
}