Skip to content
OpenAdvisories
Medium · 5.4 Public exploit CVE-2020-2231 BIT-jenkins-2020-2231EUVD-2022-4412GHSA-jpvq-v729-7j2h

Improper Neutralization of Input During Web Page Generation in Jenkins

Published Aug 12, 2020 · Updated Aug 4, 2024 · Assigned by jenkins

Description

Jenkins 2.251 and earlier, LTS 2.235.3 and earlier does not escape the remote address of the host starting a build via 'Trigger builds remotely', resulting in a stored cross-site scripting (XSS) vulnerability exploitable by users with Job/Configure permission or knowledge of the Authentication Token.

Affected products

VendorProductAffectedFixed
Jenkins project Jenkins unspecified – ≤ 2.251, unspecified – ≤ LTS 2.235.3 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Red Hat OpenShift 4 jenkins 2.235.5.1600414805-1.el7 RHSA-2020:3841, RHSA-2020:3808
Red Hat OpenShift 4 openshift +1 4.3.37-202009120213.p0.git.0.dffefe4.el8 RHSA-2020:3808
Red Hat OpenShift 3 jenkins 2.235.5.1600415953-1.el7 RHSA-2020:4223

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

Exploit-DB 1

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
Maven org.jenkins-ci.main:jenkins-core < 2.235.4 2.235.4 GHSA-jpvq-v729-7j2h
Maven org.jenkins-ci.main:jenkins-core >= 2.237, < 2.252 2.252 GHSA-jpvq-v729-7j2h

Advisories 3

References