Stored cross-site scripting in Jenkins and Jenkins LTS - CVE-2020-2223

 

Stored cross-site scripting in Jenkins and Jenkins LTS - CVE-2020-2223

Published: July 16, 2020


Vulnerability identifier: #VU30129
CSH Severity: Low
CVSS v4: 5.1 [CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N]
CVE-ID: CVE-2020-2223
CWE-ID: CWE-79
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The disclosed vulnerability allows a remote attacker to perform cross-site scripting (XSS) attacks.

The vulnerability exists due to the affected software does not escape the "href" attribute of links to downstream jobs displayed in the build console page. A remote authenticated attacker can inject and execute arbitrary HTML and script code in user's browser in context of vulnerable website.

Successful exploitation of this vulnerability may allow a remote attacker to steal potentially sensitive information, change appearance of the web page, perform phishing and drive-by-download attacks.


Affected software

Jenkins
Jenkins LTS
cri-o (Red Hat package)
jenkins (Red Hat package)
jenkins (Alpine package)
container-selinux (Red Hat package)
openshift (Red Hat package)
machine-config-daemon (Red Hat package)
openshift-kuryr (Red Hat package)

How to mitigate CVE-2020-2223

Install updates from vendor's website.

Jenkins - update to 2.245
Jenkins LTS - update to 2.235.2
cri-o (Red Hat package) - addressed in versions 1.17.4-24.rhaos4.4.git73658e6.el7, 1.17.4-24.rhaos4.4.git73658e6.el8
jenkins (Red Hat package) - addressed in versions 2.235.2.1597312065-1.el7, 2.235.2.1597312414-1.el7, 2.235.5.1600415514-1.el7
jenkins (Alpine package) - update to 2.245-r0
container-selinux (Red Hat package) - update to 2.144.0-1.rhaos4.4.el8
openshift (Red Hat package) - addressed in versions 4.3.37-202009120213.p0.git.0.dffefe4.el8, 4.5.0-202008130146.p0.git.0.aaf1d57.el7, 4.5.0-202008130146.p0.git.0.aaf1d57.el8
machine-config-daemon (Red Hat package) - update to 4.4.0-202008130707.p0.git.2357.47d462a.el8
openshift-kuryr (Red Hat package) - update to 4.4.0-202008131757.p0.git.1813.8e0365d.el8

External References

Related Security Bulletins