Skip to main content
CVE-2025-59844VulnerabilityPublished

CVE-2025-59844: SonarSource sonarqube-scan-action · OS Command Injection

Affects SonarSource sonarqube-scan-actionSource CVE Database V5

0

Not known to be exploited · CVSS 7.7 High · fixed in 6.0.0 : patch SonarSource sonarqube-scan-action soon.

Data as of 26 Oct 2026, 06:26 UTC

CVSS 4.0 base score
7.7High
How severe the flaw is on the 0–10 CVSS scale.
EPSS
1.4% chance of exploitation in 30 days – higher than 73% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 6.0.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

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 26 Sep 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-26.

What to do

AI-suggested

1. Immediate upgrade of the sonarqube-scan-action GitHub Action to version 6.0.0 or later, where the vulnerability is fixed. 2. Review and restrict workflow inputs, especially the 'args' parameter, to ensure only trusted and validated data is passed. Implement strict input validation and sanitization to prevent injection of special characters or commands. 3. Limit permissions of GitHub Actions workflows to the minimum necessary, using GitHub's permission model to restrict access to secrets and environment variables. 4. Use dedicated, isolated runners with minimal privileges and network access to reduce the blast radius of any potential compromise. 5. Monitor CI/CD pipeline logs and environment for unusual command executions or unexpected behavior. 6. Consider implementing additional runtime security controls on build agents, such as endpoint detection and response (EDR) tools, to detect anomalous processes or command executions. 7. Educate developers and DevOps teams about the risks of injecting untrusted input into CI/CD workflows and promote secure coding and pipeline configuration practices.

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.

References

Community reviews

Loading reviews…