Skip to content
Heist/ feed
Back to feed
High

Command Injection via sonarqube-scan-action GitHub Action

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2025-58178
Confirmed fixed CVEs
Not specified
Updated in this feed
7 Nov 2026, 05:34 UTC · Revision 1

Source evidence

Command Injection via sonarqube-scan-action GitHub Action

core-osv · Original source

Published 2 Sept 2025, 00:51 UTC

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.

osv:CVE-2025-58178
Complete source record
{
  "id": "405dfd5208c0db2d0bfd741d1b7cf9eeb7d254e37d59ba3649f45149291efb55",
  "url": "https://osv.dev/vulnerability/CVE-2025-58178",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Command Injection via sonarqube-scan-action GitHub Action",
    "summary": "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.",
    "evidence": "osv:CVE-2025-58178",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2025-58178",
      "aliases": [
        "CVE-2025-58178",
        "GHSA-f79p-9c5r-xg88"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/sonarsource/sonarqube-scan-action",
              "type": "GIT",
              "events": [
                {
                  "introduced": "689fb39b34b9aa95ebc5f8f119343ddd51542402"
                },
                {
                  "fixed": "1a6d90ebcb0e6a6b1d87e37ba693fe453195ae25"
                },
                {
                  "fixed": "016cabf33a6b7edf0733e179a03ad408ad4e88ba"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "4"
                      },
                      {
                        "fixed": "5.3.1"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "range": [
                      {
                        "fixed": "016cabf33a6b7edf0733e179a03ad408ad4e88ba"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-58178.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:49.894881026Z",
      "provider": "osv",
      "references": [
        "https://sonarsource.atlassian.net/browse/SQSCANGHA-101",
        "https://community.sonarsource.com/t/security-advisory-sonarqube-scanner-github-action/147696",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/58xxx/CVE-2025-58178.json",
        "https://github.com/SonarSource/sonarqube-scan-action/security/advisories/GHSA-f79p-9c5r-xg88",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-58178",
        "https://github.com/SonarSource/sonarqube-scan-action/commit/016cabf33a6b7edf0733e179a03ad408ad4e88ba",
        "https://github.com/SonarSource/sonarqube-scan-action/pull/200"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-77"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/58xxx/CVE-2025-58178.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-58178",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 518385,
  "published_at": "2025-09-02T00:51:24.579+00:00"
}