CVE-2025-58178 Command Injection via sonarqube-scan-action GitHub Action

High 7.8 Published Updated

Attackers can execute arbitrary commands via unsanitized input in the SonarQube Scan GitHub Action, requiring an upgrade to the latest version.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2025-58178?

CVE-2025-58178 is a high-severity command injection vulnerability in SonarSource sonarqube-scan-action, published on 2 Sep 2025. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

SonarQube Server and Cloud is a static analysis solution for continuous code quality and security inspection. In versions 4 to 5.3.0, a command injection vulnerability was discovered in the SonarQube Scan GitHub Action that allows untrusted input arguments to be processed without proper sanitization. Arguments sent to the action are treated as shell expressions, allowing potential execution of arbitrary commands. A fix has been released in SonarQube Scan GitHub Action 5.3.1.

Weakness: CWE-77

Which versions are affected by CVE-2025-58178?

1 open source package ship an affected version, including SonarSource/sonarqube-scan-action.

PackageAffectedFixed in
SonarSource/sonarqube-scan-action GitHub ActionsFrom 4.0.05.3.1

How do I fix CVE-2025-58178?

Upgrade SonarSource/sonarqube-scan-action to 5.3.1 or later.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2025-58178 being exploited?

There is no known exploitation of CVE-2025-58178 in the wild and no public exploit code.

Sources

Also known as GHSA-f79p-9c5r-xg88.

Is CVE-2025-58178 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free