CVE-2026-32948
Received Received - Intake
Command Injection in sbt VCS URI Handling on Windows

Publication date: 2026-03-24

Last updated on: 2026-03-26

Assigner: GitHub, Inc.

Description
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.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-03-24
Last Modified
2026-03-26
Generated
2026-06-16
AI Q&A
2026-03-24
EPSS Evaluated
2026-06-15
NVD
EUVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
scala.epfl sbt From 0.9.5 (inc) to 1.12.7 (exc)
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-78 The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
Attack-Flow Graph
AI Quick Actions
Instant insights powered by AI
Executive Summary

This vulnerability exists in sbt, a build tool for Scala, Java, and others, specifically on Windows versions from 0.9.5 to before 1.12.7. sbt uses the Windows command processor (cmd /c) to run version control system (VCS) commands like git, hg, and svn. The problem arises because the URI fragment (such as branch, tag, or revision), which is user-controlled via the build definition, is passed directly to these commands without any validation.

Since cmd /c interprets special characters like &, |, and ; as command separators, a maliciously crafted URI fragment can inject and execute arbitrary commands on the system. This means an attacker can run unintended commands by exploiting this flaw.

This issue was fixed in sbt version 1.12.7.

Impact Analysis

This vulnerability can allow an attacker to execute arbitrary commands on your Windows system when using vulnerable versions of sbt. Because the user-controlled URI fragment is passed without validation to the command line, an attacker could inject malicious commands that the system would execute.

The impact includes potential unauthorized actions such as modifying files, installing malware, or compromising the system's integrity and confidentiality.

Compliance Impact

I don't know

Detection Guidance

I don't know

Mitigation Strategies

To mitigate this vulnerability, upgrade sbt to version 1.12.7 or later, where the issue has been patched.

Chat Assistant
Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-32948. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70
EPSS Chart