sbt is vulnerable to Improper Authorization
98
Critical Risk
The sbt build server exposes Language Server-style JSON-RPC methods such as sbt/exec over its network channel. When the server is configured with serverConnectionType set to Tcp, the sbt/exec handler queues and evaluates the supplied command line without first requiring the token-authenticated initialize handshake. A client able to reach the server socket can submit an arbitrary sbt command line and force the build to evaluate it, achieving remote code execution without knowing the authentication token. The fix gates the language-server methods behind the authentication check so unauthenticated requests are rejected.
You are affected if you are using a version that falls within the vulnerable range and you configure the sbt server with serverConnectionType set to Tcp.
sbt is vulnerable to Improper Authorization in versions 1.1.0 - 1.12.14 and 2.0.0 - 2.0.5.
Upgrade the org.scala-sbt:sbt library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant