Arbitrary Code Execution Affecting org.scala-lang:scala-compiler package, versions [,2.10.7)[2.11,2.11.12)[2.12,2.12.4)


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.04% (12th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Arbitrary Code Execution vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JAVA-ORGSCALALANG-31592
  • published28 Nov 2017
  • disclosed2 Oct 2017
  • creditUnknown

Introduced: 2 Oct 2017

CVE-2017-15288  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

Upgrade org.scala-lang:scala-compiler to version 2.12.4 or higher.

Overview

Affected versions of org.scala-lang:scala-compiler are vulnerable to Arbitrary Code Execution.

The compilation daemon in Scala before 2.10.7, 2.11.x before 2.11.12, and 2.12.x before 2.12.4 uses weak permissions for private files in /tmp/scala-devel/${USER:shared}/scalac-compile-server-port, which allows local users to write to arbitrary class files and consequently gain privileges.

CVSS Scores

version 3.1