A flaw was found in Scala versions 2.1.6-2.10.6; 2.11.0-2.11.11; 2.12.0-2.12.3. An insecure use of temporary files may permit privilege escalation through the compile daemon leading to code execution and arbitrary class files writing as the user that started the daemon. Upstream bug: https://github.com/scala/scala/pull/6108 Upstream patch: https://github.com/scala/scala/pull/6108/commits/b64ad85d1cfdfff29d0836a66736d6d2b0830c0e References: http://scala-lang.org/news/security-update-nov17.html
Created scala tracking bugs for this issue: Affects: fedora-all [bug 1516916]
Mitigation: 1. Use "scala -nocompdaemon MyScript.scala" rather than "scala MyScript.scala" to disable the implicit startup and use of the daemon. 2. Avoid explicitly starting fsc. This text is borrowed from the upstream security advisory.