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

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

                               ESB-2022.4176
                   Jenkins Security Advisory 2022-08-23
                              24 August 2022

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

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

Product:           CollabNet Plugins Plugin
                   Git Plugin
                   Job Configuration History Plugin
                   Kubernetes Continuous Deploy Plugin
Publisher:         Jenkins
Operating System:  Windows
                   UNIX variants (UNIX, Linux, OSX)
Resolution:        Patch/Upgrade
CVE Names:         CVE-2022-38665 CVE-2022-38664 CVE-2022-38663
                   CVE-2021-25738  

Original Bulletin: 
   https://www.jenkins.io/security/advisory/2022-08-23/

Comment: CVSS (Max):  6.7* CVE-2021-25738 (CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H)
         CVSS Source: NVD
         Calculator:  https://www.first.org/cvss/calculator/3.1#CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
         * Not all CVSS available when published

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

Jenkins Security Advisory 2022-08-23  

This advisory announces vulnerabilities in the following Jenkins deliverables:

  o CollabNet Plugins Plugin
  o Git Plugin
  o Job Configuration History Plugin
  o Kubernetes Continuous Deploy Plugin

Descriptions  

Improper masking of credentials in Git Plugin  

SECURITY-2796 / CVE-2022-38663
Severity (CVSS): Medium
Affected plugin: git
Description:

Git Plugin 4.11.4 and earlier does not properly mask (i.e., replace with
asterisks) credentials in the build log provided by the Git Username and
Password (gitUsernamePassword) credentials binding. Usernames are masked
instead of passwords in cases when usernames are not set to be treated as
secret.

Git Plugin 4.11.5 properly masks credentials in the build log provided by the
Git Username and Password (gitUsernamePassword) credentials binding. As a side
effect of the fix, usernames currently set to be not masked will lose their
current (unintentional) masking.

Stored XSS vulnerability in Job Configuration History Plugin  

SECURITY-2765 / CVE-2022-38664
Severity (CVSS): High
Affected plugin: jobConfigHistory
Description:

Job Configuration History Plugin 1165.v8cc9fd1f4597 and earlier does not escape
the job name on the System Configuration History page.

This results in a stored cross-site scripting (XSS) vulnerability exploitable
by attackers able to configure job names.

Job Configuration History Plugin 1166.vc9f255f45b_8a escapes the job name on
the System Configuration History page.

RabbitMQ password stored in plain text by CollabNet Plugins Plugin  

SECURITY-2157 / CVE-2022-38665
Severity (CVSS): Low
Affected plugin: collabnet
Description:

CollabNet Plugins Plugin 2.0.8 and earlier stores a RabbitMQ password
unencrypted in its global configuration file
hudson.plugins.collabnet.share.TeamForgeShare.xml on the Jenkins controller as
part of its configuration.

This password can be viewed by users with access to the Jenkins controller file
system.

CollabNet Plugins Plugin 2.0.9 no longer includes the EventQ feature that
accepts RabbitMQ credentials. The RabbitMQ password will be removed from the
configuration file once it is saved again.

RCE vulnerability in Kubernetes Continuous Deploy Plugin  

SECURITY-2448 / CVE-2021-25738
Severity (CVSS): High
Affected plugin: kubernetes-cd
Description:

Kubernetes Continuous Deploy Plugin 2.3.1 and earlier bundles a version of
Kubernetes Java Client library with the vulnerability CVE-2021-25738 that does
not configure its YAML parser to prevent the instantiation of arbitrary types.

This results in a remote code execution (RCE) vulnerability exploitable by
users able to provide YAML input files to Kubernetes Continuous Deploy Plugin's
build step.

As of publication of this advisory, there is no fix.

Severity  

  o SECURITY-2157: Low
  o SECURITY-2448: High
  o SECURITY-2765: High
  o SECURITY-2796: Medium

Affected Versions  

  o CollabNet Plugins Plugin up to and including 2.0.8
  o Git Plugin up to and including 4.11.4
  o Job Configuration History Plugin up to and including 1165.v8cc9fd1f4597
  o Kubernetes Continuous Deploy Plugin up to and including 2.3.1

Fix  

  o CollabNet Plugins Plugin should be updated to version 2.0.9
  o Git Plugin should be updated to version 4.11.5
  o Job Configuration History Plugin should be updated to version
    1166.vc9f255f45b_8a

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

As of publication of this advisory, no fixes are available for the following
plugins:

  o Kubernetes Continuous Deploy Plugin

Learn why we announce these issues.

Credit  

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

  o Jordy Versmissen for SECURITY-2448
  o Kevin Guerroudj, CloudBees, Inc. for SECURITY-2765
  o Peter Darton, i2group.com, and independently, Stefano Mazzucco, Mindera for
    SECURITY-2796
  o Son Nguyen (@s0nnguy3n_) for SECURITY-2157

- --------------------------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: https://auscert.org.au/gpg-key/

iQIVAwUBYwWYW8kNZI30y1K9AQj9FhAAlBmBGtiDma2icmQxQRqU2uBcXsV7BEoQ
0OowmPv2YW46ys/Tc1+3GMVZRIsKxb2UfmYCnswp46P0rWL3KaC1v43eWN/NTig7
tm06Q/CI7toihydYaws/OE75eXXG5d/GZ+b/luuhys353FzL2ao1vuJRjDq80mai
EavlSqHyfGrW/H+1NBlRaGdp3dbSYF8at8lYC2wjW1ZHcTi64gjPezGommm7/25C
XXIgSPvtYxOCsmRXAlpEUTTuyziiZ7ciz6aYiKnql4QEh2wh/A8x5FvEH98RtEtv
Yve5mrAVHiQuvuQqrhUjMM/7wH1Bda61jwNEQ5kUQe8G27vgVsxGV34lWA9sO7QF
MaOAdv/srhe8JRI44isq+WuPoO339Kwwcu4beXSBGPF/JRwEGTbNLGQ+eJ6b0M+z
R1dKzEPvn6aAqks9lcwG9J9TGKhVADhfQyefk+NwMj1FTbXoOlZiYePwUfMPeoPz
2Z3FRLZ9b/1xOsk3x2lq6G3ST02LH5n8nKGBs+qz8s4qzB/08j+VdIt3bkdTwxh1
Q3Xi9U+dfTRi0ddqoEnnuEKOxdOjqVPN1z8Ef25H3nVvv++OJfo6pt/LtfQ5fNJc
7Y1k2K4mhGyKMfZJLlK6MySL1ISZqxH45u0QFfPp8PR5apPWW1KMEJZGJUEJ0YtI
xxk7zKbkO9A=
=GFoT
-----END PGP SIGNATURE-----