Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. org.scala-sbt/sbt
  4. ›
  5. CVE-2026-32948

CVE-2026-32948: sbt: Source dependency feature (via crafted VCS URL) leads to arbitrary code execution on Windows

March 24, 2026

On Windows, sbt uses Process("cmd", "/c", ...) to run VCS commands (git, hg, svn). The URI fragment (branch, tag, revision) is user-controlled via the build definition and passed to these commands without validation. Because cmd /c interprets &, |, and ; as command separators, a malicious fragment can execute arbitrary commands.

References

  • github.com/advisories/GHSA-x4ff-q6h8-v7gw
  • github.com/sbt/sbt
  • github.com/sbt/sbt/commit/1ce945b6b79cbe3cef6c0fe9efbbd2904e0f479e
  • github.com/sbt/sbt/commit/3a474ab060df4dbfa825a7e7bc97e00056519800
  • github.com/sbt/sbt/releases/tag/v1.12.7
  • github.com/sbt/sbt/security/advisories/GHSA-x4ff-q6h8-v7gw
  • nvd.nist.gov/vuln/detail/CVE-2026-32948

Code Behaviors & Features

Detect and mitigate CVE-2026-32948 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 0.9.5 before 1.12.7

Fixed versions

  • 1.12.7

Solution

Upgrade to version 1.12.7 or above.

Impact 5.5 MEDIUM

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Source file

maven/org.scala-sbt/sbt/CVE-2026-32948.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 25 Mar 2026 12:18:29 +0000.