Skip to main content
← All vulnerabilities
CVE-2026-32948GHSA-X4FF-Q6H8-V7GW

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.12.7, 1.12.8
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: total

Summary

sbt is a build tool for Scala, Java, and others. From version 0.9.5 to before version 1.12.7, 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. This issue has been patched in version 1.12.7.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: total

  3. Record last updated

Affected versions

  • sbt sbt

    From 0.9.5 · fixed in 1.12.7

  • org.scala-sbt:sbtMaven

    From 0.9.5 · fixed in 1.12.8

References 4

GitHub · sbt/sbt