CVE-2018-15801 Authorization Bypass During JWT Issuer Validation with spring-security

Low 3.3 Published Updated

Attackers can bypass authorization checks in Spring Security if a shared private key is used, allowing forged JWTs to be accepted as valid.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2018-15801?

CVE-2018-15801 is a low-severity authentication bypass vulnerability in Vmware Spring Framework, published on 19 Dec 2018. An attacker needs administrator access to exploit it, with no action from the victim.

Official description

Spring Security versions 5.1.x prior to 5.1.2 contain an authorization bypass vulnerability during JWT issuer validation. In order to be impacted, the same private key for an honest issuer and a malicious user must be used when signing JWTs. In that case, a malicious user could fashion signed JWTs with the malicious issuer URL that may be granted for the honest issuer.

Weakness: CWE-345

Which versions are affected by CVE-2018-15801?

4 open source packages ship an affected version, including org.springframework.security:spring-security-core and org.springframework.security:spring-security-oauth2-jose. It affects 1 product.

PackageAffectedFixed in
org.springframework.security:spring-security-core MavenFrom 5.1.05.1.2
org.springframework.security:spring-security-core MavenFrom 5.1.05.1.2
org.springframework.security:spring-security-oauth2-jose MavenFrom 5.1.05.1.2
org.springframework.security:spring-security-oauth2-jose MavenFrom 5.1.05.1.2

Products include Vmware Spring Framework.

How do I fix CVE-2018-15801?

Upgrade org.springframework.security:spring-security-core to 5.1.2 or later.

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

Is CVE-2018-15801 being exploited?

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

All Vmware Spring Framework vulnerabilities

Sources

Also known as GHSA-27xw-p8v6-9jjr.

Is CVE-2018-15801 in your software?

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

Check your SBOMs for free