Bug 1620342 (CVE-2018-1999043)

Summary: CVE-2018-1999043 jenkins: Ephemeral user record was created on some invalid authentication attempts
Product: [Other] Security Response Reporter: Sam Fowler <sfowler>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED WONTFIX QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: abenaiss, ahardin, aos-bugs, bleanhar, bmontgom, bparees, ccoleman, dedgar, eparis, java-sig-commits, jburrell, jgoulding, jokerman, mchappel, mizdebsk, mmccomas, msrb, nstielau, obulatov, pbhattac, sponnaga, vbobade, wzheng
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: jenkins 2.138.2 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-06-10 10:36:36 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 1620343, 1644136, 1644137, 1644138, 1644139, 1644140, 1644141    
Bug Blocks: 1620339, 1642893    

Description Sam Fowler 2018-08-23 04:33:09 UTC
Jenkins before LTS version 2.121.3 and weekly version 2.138 have a vulnerability exploitable by unauthenticated users.

When attempting to authenticate using API token, an ephemeral user record was created to validate the token in case an external security realm was used, and the user record in Jenkins not previously saved, as (legacy) API tokens could exist without a persisted user record.

This behavior could be abused to create a large number of ephemeral user records in memory.

External Reference:


Comment 1 Sam Fowler 2018-08-23 04:33:24 UTC
Created jenkins tracking bugs for this issue:

Affects: fedora-all [bug 1620343]

Comment 3 Jason Shepherd 2018-12-18 22:17:00 UTC
OpenShift Container Platform 3.11 shipped with version 2.121.3 of Jenkins, so it was never affected by this issue.

Comment 5 Sam Fowler 2019-01-14 02:12:19 UTC
*** Bug 1642883 has been marked as a duplicate of this bug. ***

Comment 6 Sam Fowler 2019-04-11 06:44:24 UTC
This vulnerability had an incomplete fix in version 2.121.3. It was correctly fixed in 2.138.2:


Comment 7 Sam Fowler 2019-04-11 06:53:08 UTC
Jenkins security policy[0]:

"Any security advisory related updates to Jenkins core or the plugins we include in the OpenShift Jenkins master image will only occur in the v3.11 and v4.x branches of this repository.

We do support running the v3.11 version of the master image against older v3.x (as far back as v3.4) OpenShift clusters if you want to pick up Jenkins security advisory updates."

[0] https://github.com/openshift/jenkins/blob/master/README.md#jenkins-security-advisories-the-master-image-from-this-repository-and-the-oc-binary