VDB
Sign up
HIGH8.8

GHSA-gq28-h5vg-8prx

Privilege escalation in spring security

Quick fix

GHSA-gq28-h5vg-8prx — org.springframework.security:spring-security-bom: upgrade to the fixed version with the command below.

# pom.xml: bump <version>5.4.4</version> for org.springframework.security:spring-security-bom

Details

Spring Security 5.4.x prior to 5.4.4, 5.3.x prior to 5.3.8.RELEASE, 5.2.x prior to 5.2.9.RELEASE, and older unsupported versions can fail to save the SecurityContext if it is changed more than once in a single request.A malicious user cannot cause the bug to happen (it must be programmed in). However, if the application's intent is to only allow the user to run with elevated privileges in a small portion of the application, the bug can be leveraged to extend those privileges to the rest of the application.

Are you affected?

Enter the version of the package you're using.

Affected packages

Maven/org.springframework.security:spring-security-bom
Introduced in: 5.4.0Fixed in: 5.4.4
Fix# pom.xml: bump <version>5.4.4</version> for org.springframework.security:spring-security-bom
Maven/org.springframework.security:spring-security-bom
Introduced in: 5.3.0Fixed in: 5.3.8
Fix# pom.xml: bump <version>5.3.8</version> for org.springframework.security:spring-security-bom
Maven/org.springframework.security:spring-security-bom
Introduced in: 0Fixed in: 5.2.9
Fix# pom.xml: bump <version>5.2.9</version> for org.springframework.security:spring-security-bom
Maven/org.springframework.security:spring-security-web
Introduced in: 5.4.0Fixed in: 5.4.4
Fix# pom.xml: bump <version>5.4.4</version> for org.springframework.security:spring-security-web
Maven/org.springframework.security:spring-security-web
Introduced in: 5.3.0Fixed in: 5.3.8
Fix# pom.xml: bump <version>5.3.8</version> for org.springframework.security:spring-security-web
Maven/org.springframework.security:spring-security-web
Introduced in: 0Fixed in: 5.2.9
Fix# pom.xml: bump <version>5.2.9</version> for org.springframework.security:spring-security-web

References