-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

===========================================================================
             AUSCERT External Security Bulletin Redistribution

                               ESB-2017.2940
            Scala compilation daemon: Arbitrary code execution
                             16 November 2017

===========================================================================

        AusCERT Security Bulletin Summary
        ---------------------------------

Product:           fsc (Scala compilation daemon)
Publisher:         Scala
Operating System:  Windows
                   UNIX variants (UNIX, Linux, OSX)
Impact/Access:     Execute Arbitrary Code/Commands -- Existing Account
Resolution:        Patch/Upgrade
CVE Names:         CVE-2017-15288  

Original Bulletin: 
   http://scala-lang.org/news/security-update-nov17.html

- --------------------------BEGIN INCLUDED TEXT--------------------

A privilege escalation vulnerability has been identified in the Scala compilation daemon.

The compile daemon is started explicitly by the `fsc` command, or implicitly by executing
a Scala source file as a script (e.g `scala MyScript.scala`). Note: Using the `scala`
command to start a REPL or to run a pre-compiled class does not start the compile daemon.

# Impact

While the compile daemon is running, an attacker with local access to the machine can
execute code as the user that started the compile daemon, and can write arbitrary
class files to any location on the filesystem that the user has access to.

# Affected Versions

  - Scala 2.1.6-2.10.6; 2.11.0-2.11.11; 2.12.0-2.12.3

# Mitigation

  - Use `scala -nocompdaemon MyScript.scala` rather than `scala MyScript.scala` to
    disable the implicit startup and use of the daemon. 
  - Avoid explicitly starting `fsc` 
  - Upgrade to Scala 2.10.7 2.11.12, 2.12.4 or higher which restricts the sensitive file to be
    readable only by the owner. These releases also change the location of the sensitive
    file: it is written in the directory `$HOME/.scalac`.

Announcement: http://scala-lang.org/news/security-update-nov17.html

- --------------------------END INCLUDED TEXT--------------------

You have received this e-mail bulletin as a result of your organisation's
registration with AusCERT. The mailing list you are subscribed to is
maintained within your organisation, so if you do not wish to continue
receiving these bulletins you should contact your local IT manager. If
you do not know who that is, please send an email to auscert@auscert.org.au
and we will forward your request to the appropriate person.

NOTE: Third Party Rights
This security bulletin is provided as a service to AusCERT's members.  As
AusCERT did not write the document quoted above, AusCERT has had no control
over its content. The decision to follow or act on information or advice
contained in this security bulletin is the responsibility of each user or
organisation, and should be considered in accordance with your organisation's
site policies and procedures. AusCERT takes no responsibility for consequences
which may arise from following or acting on information or advice contained in
this security bulletin.

NOTE: This is only the original release of the security bulletin.  It may
not be updated when updates to the original are made.  If downloading at
a later date, it is recommended that the bulletin is retrieved directly
from the author's website to ensure that the information is still current.

Contact information for the authors of the original document is included
in the Security Bulletin above.  If you have any questions or need further
information, please contact them directly.

Previous advisories and external security bulletins can be retrieved from:

        https://www.auscert.org.au/bulletins/

===========================================================================
Australian Computer Emergency Response Team
The University of Queensland
Brisbane
Qld 4072

Internet Email: auscert@auscert.org.au
Facsimile:      (07) 3365 7031
Telephone:      (07) 3365 4417 (International: +61 7 3365 4417)
                AusCERT personnel answer during Queensland business hours
                which are GMT+10:00 (AEST).
                On call after hours for member emergencies only.
===========================================================================
-----BEGIN PGP SIGNATURE-----
Comment: http://www.auscert.org.au/render.html?it=1967

iQIVAwUBWg07W4x+lLeg9Ub1AQhlbw//eHJrrYJ2GcVJXrkoW6izrqbeBHZakYN6
b62j22oZ0kvuFqu3oR1qxRA8zgXrA0Hu2zaXRTEIzmXpBm/MYIIIly/1rVtwkb6I
KFCpbkZt28YlAsfgBqrr7q7/rmDt/d4+QWFWsuJCZWL60DPIb9ZyeFhgwA5HvbGh
0EfeRFCGiDT4C3oOvsEXgm0onWUGkDSvVRJoDBCc3lqoQ7gkKo3l+7laAoHQz7uA
FyBAGWc9xyPB/KM2mEA1nXQJ/16RM3fu+GQR4rksF+RNaP7bFixloKYvlA8t/KNj
wmI6dQOJdA3NQxp78/et9zwvGm1N19On/8ebXDKhbYObgNl5AxBBs5hp2SaH9S8Y
adLFNVsgO1sN/dRJjlEIuxy1Ppb7IP+LcH0YmGNk81pisZer2IndHkwpqmmRQIRL
Q7hkE/uvPfHDoDBJDmgyG0wez9db1RbqRQBww+0SohiWtE5ZpTqwS+29yTV5CInQ
Asp/fXC4SMsh6tysiA1OHtULWeP2V2hjAvaSa/Z0OpU9PDHKNEondPKMK5jxlNQB
3o1DUfTJwNR8PRleJ4iNPKkPsW/ATjz+fhZBCxe7+SHITJgawNnECkXVnhe7iphP
LC21++86lLeLcW+8G8iaodsUz3zWQVL7AJgKQ76Szf6P7LlgcB7tZfMVXhhxypQc
lntEosNIiVc=
=EBVz
-----END PGP SIGNATURE-----