⚠️ Remote code execution vulnerability fix
sbt team received a security report GHSA-943m-f264-54p4 from @stasimus that when the serverConnectionType is set to Tcp, an attacker is able to execute arbitrary code remotely via BSP, similar to a recent bug that was found in JSON-RPC. sbt 1.13.0 and 2.0.7 fix this bug.
Builds with the default serverConnectionType are not affected. In affected builds, we recommend removing the serverConnectionType setting, or upgrading to a patched version or later. In an affected build, the setting might look like this:
Global / serverConnectionType := ConnectionType.TcpThe remediation was implemented by @stasimus.
🚀 updates
- perf: Stop re-converting the classpath in
compileOptionsby @hoangmaihuy in #9622
🐛 bug fixes
- fix: Guard diskcache against path traversal by @eed3si9n in #9605
- fix: Name the platform in
CrossVersion(module, scalaModuleInfo)by @kitbellew in #9620 - fix: Avoid rewriting unchanged plugin descriptors by @unkarjedy in #9624
- fix: Fixes
scalacOptionsin BSP using VirtualFileRef by @azdrojowa123 in #9610 - fix: Fixes
-Vparsing in sbt runners by @anatoliykmetyuk in #9626 - fix: Fixes filesystem traversal order affecting cache stability by @christianharrington in #9646
behind the scenes
Full Changelog: v2.0.6...v2.0.7