CVE-2018-1999045 Improper Authentication in Jenkins

Medium 5.4 Published Updated

Attackers with valid cookies can maintain unauthorized access in Jenkins even when the remember-me feature is disabled.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2018-1999045?

CVE-2018-1999045 is a medium-severity authentication bypass vulnerability in Jenkins Jenkins, published on 23 Aug 2018. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

A improper authentication vulnerability exists in Jenkins 2.137 and earlier, 2.121.2 and earlier in SecurityRealm.java, TokenBasedRememberMeServices2.java that allows attackers with a valid cookie to remain logged in even if that feature is disabled.

Weakness: CWE-287

Which versions are affected by CVE-2018-1999045?

4 open source packages ship an affected version, including org.jenkins-ci.main:jenkins-core. It affects 1 product.

PackageAffectedFixed in
org.jenkins-ci.main:jenkins-core MavenAll versions2.121.3
org.jenkins-ci.main:jenkins-core MavenAll versions2.121.3
org.jenkins-ci.main:jenkins-core MavenFrom 2.1222.138
org.jenkins-ci.main:jenkins-core MavenFrom 2.1222.138

Products include Jenkins Jenkins.

How do I fix CVE-2018-1999045?

Upgrade org.jenkins-ci.main:jenkins-core to a fixed version for your release line: 2.121.3 or 2.138.

Upgrade, and rotate credentials and sessions that may have been exposed. More about Authentication bypass.

Is CVE-2018-1999045 being exploited?

There is no known exploitation of CVE-2018-1999045 in the wild and no public exploit code.

All Jenkins Jenkins vulnerabilities

Sources

Also known as GHSA-q4cq-r7hg-pxqq.

Is CVE-2018-1999045 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free