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

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

                               ESB-2019.0074
                         Jenkins Security Advisory
                              9 January 2019

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

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

Product:           Jenkins plugins
Publisher:         Jenkins
Operating System:  Windows
                   UNIX variants (UNIX, Linux, OSX)
Impact/Access:     Execute Arbitrary Code/Commands -- Existing Account
Resolution:        Patch/Upgrade

Original Bulletin: 
   https://jenkins.io/security/advisory/2019-01-08/

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

Jenkins Security Advisory 2019-01-08

This advisory announces vulnerabilities in the following Jenkins deliverables:

  o Pipeline: Declarative Plugin
  o Pipeline: Groovy Plugin
  o Script Security Plugin

Descriptions

Sandbox Bypass in Script Security and Pipeline Plugins

SECURITY-1266 / CVE pending

Script Security sandbox protection could be circumvented during the script
compilation phase by applying AST transforming annotations such as @Grab to
source code elements.

Both the pipeline validation REST APIs and actual script/pipeline execution are
affected.

This allowed users with Overall/Read permission, or able to control Jenkinsfile
or sandboxed Pipeline shared library contents in SCM, to bypass the sandbox
protection and execute arbitrary code on the Jenkins master.

All known unsafe AST transformations in Groovy are now prohibited in sandboxed
scripts.

Severity

  o SECURITY-1266: High

Affected Versions

  o Pipeline: Declarative Plugin up to and including 1.3.4
  o Pipeline: Groovy Plugin up to and including 2.61
  o Script Security Plugin up to and including 1.49

Fix

  o Pipeline: Declarative Plugin should be updated to version 1.3.4.1
  o Pipeline: Groovy Plugin should be updated to version 2.61.1
  o Script Security Plugin should be updated to version 1.50

These versions include fixes to the vulnerabilities described above. All prior
versions are considered to be affected by these vulnerabilities unless
otherwise indicated.

Credit

The Jenkins project would like to thank the reporters for discovering and
reporting these vulnerabilities:

  o Orange Tsai(@orange_8361) from DEVCORE for SECURITY-1266

- --------------------------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

iQIVAwUBXDWBqWaOgq3Tt24GAQjzoBAAgOqsklweGtOt4SZrL046FO7mYULlQXlS
BMaXd9+elIigCiuD0Jfx7itVnFenHjHdm742YeZxvQlRW0jHAslMFwPvhntOBq/E
yAjQheszLgJUbeTtELyKNZP3U8ZRgIVxJzqvp1WDmOGkmvRvnEqSBKXfsjJkHVLR
2sppmDrxI649faNHpAdwIA0tul3arNCr1mIYj2p6CSJ020htWQn3rPPKrqCuQaY/
YtMbmVzydO8ZmASD8EP4ybuVR9vqqY5NYHZCSEz6BCyLfA46NiDBEf1k7I++Tkom
YmGC0BfyAWOscdVxv+238JBM7xuo3ubNhF2ZBttxQW3KhciqFg8hDphKAZSV+rMN
2h5ELBF5bO8D/sRGnwLCQkpisMn9F85/lz3FiCBQpbFlTJ2ZjNvM8XrmXrK//BNl
LjYpTLLWElC8/4b34Wc4PtURNpirFMdCfvTObiQJW/dQy+8UimhHWlFkhHF/aJNQ
LSHNxxTECKQ3GllMsTrrUQEb9IC9ssE3OKmxsbB94dLhT8AtKxxXnv+LChqTRknZ
kjHK/U/o/3lNEO8ULlz0NquiDw91TGkJ2XrXzE3Lz4yaQI+ByaxzbE4aAm2vNLjd
cv0kFW+Hna316XpkFqUhDqdoE98P12KiAla04qFOs6vktfCNDOwgjZo9ou4x7diY
Lw6jGHcQ1I8=
=WaEp
-----END PGP SIGNATURE-----