main_3 is vulnerable to Remote Code Execution
98
Critical Risk
sbt runs a build server that accepts Language Server Protocol JSON-RPC requests, and it can be configured to listen over TCP by setting serverConnectionType to Tcp. The sbt/exec request handler does not require a completed token-authenticated initialize handshake before acting, so it unconditionally queues the supplied command line for execution. A client that can reach the TCP socket can submit an arbitrary commandLine and have sbt evaluate it without knowing the authentication token. The fix gates the Language Server Protocol calls such as sbt/exec behind successful authentication.
You are affected if you are using a version that falls within the vulnerable range and you configure the sbt server to use TCP by setting serverConnectionType to Tcp.
main_3 is vulnerable to Remote Code Execution in versions 2.0.0 - 2.0.5.
Upgrade the org.scala-sbt:main_3 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