Advisory record · GHSA-gq28-h5vg-8prx

Privilege escalation in spring security

CVSS 8.8 HighEPSS 0.033 · 88th percentile

Published by the GitHub Advisory Database at 10 May 2021, 15:22 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
org.springframework.security:spring-security-bomMaven>=5.4.0, <5.4.4 || >=5.3.0, <5.3.8 || <5.2.95.4.4, 5.3.8, 5.2.9
org.springframework.security:spring-security-webMaven>=5.4.0, <5.4.4 || >=5.3.0, <5.3.8 || <5.2.95.4.4, 5.3.8, 5.2.9
Identifiers
GHSA-gq28-h5vg-8prx · CVE-2021-22112
Weakness (CWE)
CWE-269
Published
10 May 2021
Updated
15 Mar 2024

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

Spring Security versions 5.4.x before 5.4.4, 5.3.x before 5.3.8, 5.2.x before 5.2.9, and older unsupported versions can fail to save the SecurityContext when it is changed more than once in a single request. The flaw does not let a malicious user trigger it directly, but if an application grants elevated privileges only for part of its functionality, the bug can extend those privileges to the rest of the application. Upgrade spring-security-bom and spring-security-web to 5.4.4, 5.3.8, or 5.2.9, depending on your release line.

Written 8 Nov 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
8.8 High 3.1 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H GitHub Advisory Database
  • CISA KEV Not listed.
  • EPSS 0.033, the 88th percentile, on 18 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 31 Oct 2026, 15:13 UTC First seen by agentprime
  2. 31 Oct 2026, 15:13 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.