{"schemaVersion":3,"id":"CVE-2021-22112","aliases":["GHSA-gq28-h5vg-8prx"],"status":"published","duplicateOf":null,"title":null,"description":"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.","dates":{"published":"2021-02-23T18:48:02.000Z","modified":"2024-08-03T18:30:24.008Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":9,"severity":"high","version":"2.0","versionLabel":"v2.0","source":"NVD","vector":"AV:N/AC:L/Au:S/C:C/I:C/A:C","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"OSV · Maven","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":7.2,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":9,"severity":"high","vector":"AV:N/AC:L/Au:S/C:C/I:C/A:C","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.03286,"percentile":0.88315,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0.08900000000000019,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.03197},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.03197,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.03197,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.03197,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.03197,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.03197,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.03197,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.03197,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.03197,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.03197,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.03197,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.03197,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.03197,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.03197,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.03197,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.03197,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.03197,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.03197,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.03197,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.03286,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.03286,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.03286,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.03286,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.03286,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.03286,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.03286,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.03286,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.03286,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.03286,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.03286,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.03286,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.03286,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.03286,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.03286,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.03286,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.03286,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.03286,"percentile":0.88315}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.03197,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.03197,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.03197,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.03197,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.03197,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.03197,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.03197,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.03197,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.03197,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.03197,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.03197,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.03197,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.03197,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.03286,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.03286,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.03286,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.03286,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.03286,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.03286,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.03286,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.03286,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.03286,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.03286,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.03286,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.03286,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.03286,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.03286,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.03286,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.03286,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.03286,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.03286,"percentile":0.88315}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[],"affected":[{"vendor":"org.springframework.security","product":"spring-security-bom","name":"org.springframework.security:spring-security-bom","label":"spring-security-bom","ecosystem":"Maven","cpePart":null,"purl":"pkg:maven/org.springframework.security/spring-security-bom","purlType":"maven","versions":[{"text":"≥ 5.4.0, < 5.4.4","noFixRecorded":false,"fixedIn":null},{"text":"≥ 5.3.0, < 5.3.8","noFixRecorded":false,"fixedIn":null},{"text":"< 5.2.9","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 5.4.0, < 5.4.4 | ≥ 5.3.0, < 5.3.8 | < 5.2.9","eol":null,"hubHref":null},{"vendor":"org.springframework.security","product":"spring-security-web","name":"org.springframework.security:spring-security-web","label":"spring-security-web","ecosystem":"Maven","cpePart":null,"purl":"pkg:maven/org.springframework.security/spring-security-web","purlType":"maven","versions":[{"text":"≥ 5.4.0, < 5.4.4","noFixRecorded":false,"fixedIn":null},{"text":"≥ 5.3.0, < 5.3.8","noFixRecorded":false,"fixedIn":null},{"text":"< 5.2.9","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 5.4.0, < 5.4.4 | ≥ 5.3.0, < 5.3.8 | < 5.2.9","eol":{"isEol":null,"eolDate":null,"matchMethod":"purl","cycle":null,"product":{"name":"spring-security","label":"Spring Security","category":"framework"}},"hubHref":null},{"vendor":"oracle","product":"communications_element_manager","name":"communications element manager","label":"communications_element_manager","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 8.2.0, ≤ 8.2.4.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 8.2.0, ≤ 8.2.4.0","eol":null,"hubHref":"/vendor/oracle/communications_element_manager"},{"vendor":"oracle","product":"communications_interactive_session_recorder","name":"communications interactive session recorder","label":"communications_interactive_session_recorder","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"6.3","noFixRecorded":false,"fixedIn":null},{"text":"6.4","noFixRecorded":false,"fixedIn":null}],"versionsText":"6.3 | 6.4","eol":null,"hubHref":"/vendor/oracle/communications_interactive_session_recorder"},{"vendor":"oracle","product":"communications_unified_inventory_management","name":"communications unified inventory management","label":"communications_unified_inventory_management","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"7.4.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"7.4.1","eol":null,"hubHref":"/vendor/oracle/communications_unified_inventory_management"},{"vendor":"oracle","product":"hospitality_cruise_shipboard_property_management_system","name":"hospitality cruise shipboard property management system","label":"hospitality_cruise_shipboard_property_management_system","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"20.1.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"20.1.0","eol":null,"hubHref":"/vendor/oracle/hospitality_cruise_shipboard_property_management_system"},{"vendor":"oracle","product":"insurance_policy_administration","name":"insurance policy administration","label":"insurance_policy_administration","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"11.2.0","noFixRecorded":false,"fixedIn":null},{"text":"11.3.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"11.2.0 | 11.3.0","eol":null,"hubHref":"/vendor/oracle/insurance_policy_administration"},{"vendor":"oracle","product":"mysql_enterprise_monitor","name":"mysql enterprise monitor","label":"mysql_enterprise_monitor","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≤ 8.0.25","noFixRecorded":false,"fixedIn":null}],"versionsText":"≤ 8.0.25","eol":null,"hubHref":"/vendor/oracle/mysql_enterprise_monitor"},{"vendor":"pivotal_software","product":"spring_security","name":"spring security","label":"spring_security","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 5.2.9","noFixRecorded":false,"fixedIn":null},{"text":"≥ 5.3.0, < 5.3.8","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 5.2.9 | ≥ 5.3.0, < 5.3.8","eol":null,"hubHref":"/vendor/pivotal_software/spring_security"},{"vendor":"vmware","product":"spring_security","name":"spring security","label":"spring_security","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 5.4.0, < 5.4.4","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 5.4.0, < 5.4.4","eol":null,"hubHref":"/vendor/vmware/spring_security"}],"affectedCount":10,"eol":{"hasEol":false,"count":0},"references":[{"url":"http://www.openwall.com/lists/oss-security/2021/02/19/7","label":"www.openwall.com/lists/oss-security/2021/02/19/7","hostname":"www.openwall.com","tags":["Mailing List","X Refsource MLIST","WEB","Third Party Advisory"]},{"url":"https://lists.apache.org/thread.html/redbd004a503b3520ae5746c2ab5e93fd7da807a8c128e60d2002cd9b%40%3Cissues.nifi.apache.org%3E","label":"lists.apache.org/thread.html/…","hostname":"lists.apache.org","tags":["Mailing List","X Refsource MLIST"]},{"url":"https://www.oracle.com/security-alerts/cpuApr2021.html","label":"www.oracle.com/security-alerts/cpuApr2021.html","hostname":"www.oracle.com","tags":["X Refsource MISC","WEB","Patch","Third Party Advisory"]},{"url":"https://tanzu.vmware.com/security/cve-2021-22112","label":"tanzu.vmware.com/security/cve-2021-22112","hostname":"tanzu.vmware.com","tags":["X Refsource MISC","WEB","Vendor Advisory"]},{"url":"https://lists.apache.org/thread.html/r37423ec7eea340e92a409452c35b649dce02fdc467f0b3f52086c177%40%3Cpluto-dev.portals.apache.org%3E","label":"lists.apache.org/thread.html/…","hostname":"lists.apache.org","tags":["Mailing List","X Refsource MLIST"]},{"url":"https://lists.apache.org/thread.html/ra6389b1b82108a3b6bbcd22979f7665fd437c2a3408c9509a15a9ca1%40%3Cpluto-dev.portals.apache.org%3E","label":"lists.apache.org/thread.html/…","hostname":"lists.apache.org","tags":["Mailing List","X Refsource MLIST"]},{"url":"https://lists.apache.org/thread.html/r2cb05e499807900ba23e539643eead9c5f0652fd271f223f89da1804%40%3Cpluto-scm.portals.apache.org%3E","label":"lists.apache.org/thread.html/…","hostname":"lists.apache.org","tags":["Mailing List","X Refsource MLIST"]},{"url":"https://lists.apache.org/thread.html/r163b3e4e39803882f5be05ee8606b2b9812920e196daa2a82997ce14%40%3Cpluto-dev.portals.apache.org%3E","label":"lists.apache.org/thread.html/…","hostname":"lists.apache.org","tags":["Mailing List","X Refsource MLIST"]},{"url":"https://lists.apache.org/thread.html/r390783b3b1c59b978131ac08390bf77fbb3863270cbde59d5b0f5fde%40%3Cpluto-dev.portals.apache.org%3E","label":"lists.apache.org/thread.html/…","hostname":"lists.apache.org","tags":["Mailing List","X Refsource MLIST"]},{"url":"https://lists.apache.org/thread.html/r3868207b967f926819fe3aa8d33f1666429be589bb4a62104a49f4e3%40%3Cpluto-dev.portals.apache.org%3E","label":"lists.apache.org/thread.html/…","hostname":"lists.apache.org","tags":["Mailing List","X Refsource MLIST"]},{"url":"https://lists.apache.org/thread.html/r413e380088c427f56102968df89ef2f336473e1b56b7d4b3a571a378%40%3Cpluto-dev.portals.apache.org%3E","label":"lists.apache.org/thread.html/…","hostname":"lists.apache.org","tags":["Mailing List","X Refsource MLIST"]},{"url":"https://lists.apache.org/thread.html/r89aa1b48a827f5641310305214547f1d6b2101971a49b624737c497f%40%3Cpluto-dev.portals.apache.org%3E","label":"lists.apache.org/thread.html/…","hostname":"lists.apache.org","tags":["Mailing List","X Refsource MLIST"]},{"url":"https://lists.apache.org/thread.html/ra53677224fe4f04c2599abc88032076faa18dc84b329cdeba85d4cfc%40%3Cpluto-scm.portals.apache.org%3E","label":"lists.apache.org/thread.html/…","hostname":"lists.apache.org","tags":["Mailing List","X Refsource MLIST"]},{"url":"https://www.oracle.com//security-alerts/cpujul2021.html","label":"www.oracle.com//security-alerts/cpujul2021.html","hostname":"www.oracle.com","tags":["X Refsource MISC","WEB","Third Party Advisory"]},{"url":"https://www.oracle.com/security-alerts/cpuoct2021.html","label":"www.oracle.com/security-alerts/cpuoct2021.html","hostname":"www.oracle.com","tags":["X Refsource MISC","WEB","Patch","Third Party Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-22112","label":"nvd.nist.gov/vuln/detail/CVE-2021-22112","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://www.jenkins.io/security/advisory/2021-02-19","label":"www.jenkins.io/security/advisory/2021-02-19","hostname":"www.jenkins.io","tags":["WEB"]},{"url":"https://lists.apache.org/thread.html/redbd004a503b3520ae5746c2ab5e93fd7da807a8c128e60d2002cd9b@%3Cissues.nifi.apache.org%3E","label":"lists.apache.org/thread.html/…","hostname":"lists.apache.org","tags":["WEB"]},{"url":"https://lists.apache.org/thread.html/ra6389b1b82108a3b6bbcd22979f7665fd437c2a3408c9509a15a9ca1@%3Cpluto-dev.portals.apache.org%3E","label":"lists.apache.org/thread.html/…","hostname":"lists.apache.org","tags":["WEB"]},{"url":"https://lists.apache.org/thread.html/ra53677224fe4f04c2599abc88032076faa18dc84b329cdeba85d4cfc@%3Cpluto-scm.portals.apache.org%3E","label":"lists.apache.org/thread.html/…","hostname":"lists.apache.org","tags":["WEB"]},{"url":"https://lists.apache.org/thread.html/r89aa1b48a827f5641310305214547f1d6b2101971a49b624737c497f@%3Cpluto-dev.portals.apache.org%3E","label":"lists.apache.org/thread.html/…","hostname":"lists.apache.org","tags":["WEB"]},{"url":"https://lists.apache.org/thread.html/r413e380088c427f56102968df89ef2f336473e1b56b7d4b3a571a378@%3Cpluto-dev.portals.apache.org%3E","label":"lists.apache.org/thread.html/…","hostname":"lists.apache.org","tags":["WEB"]},{"url":"https://lists.apache.org/thread.html/r390783b3b1c59b978131ac08390bf77fbb3863270cbde59d5b0f5fde@%3Cpluto-dev.portals.apache.org%3E","label":"lists.apache.org/thread.html/…","hostname":"lists.apache.org","tags":["WEB"]},{"url":"https://lists.apache.org/thread.html/r3868207b967f926819fe3aa8d33f1666429be589bb4a62104a49f4e3@%3Cpluto-dev.portals.apache.org%3E","label":"lists.apache.org/thread.html/…","hostname":"lists.apache.org","tags":["WEB"]},{"url":"https://lists.apache.org/thread.html/r37423ec7eea340e92a409452c35b649dce02fdc467f0b3f52086c177@%3Cpluto-dev.portals.apache.org%3E","label":"lists.apache.org/thread.html/…","hostname":"lists.apache.org","tags":["WEB"]},{"url":"https://lists.apache.org/thread.html/r2cb05e499807900ba23e539643eead9c5f0652fd271f223f89da1804@%3Cpluto-scm.portals.apache.org%3E","label":"lists.apache.org/thread.html/…","hostname":"lists.apache.org","tags":["WEB"]},{"url":"https://lists.apache.org/thread.html/r163b3e4e39803882f5be05ee8606b2b9812920e196daa2a82997ce14@%3Cpluto-dev.portals.apache.org%3E","label":"lists.apache.org/thread.html/…","hostname":"lists.apache.org","tags":["WEB"]},{"url":"https://github.com/spring-projects/spring-security/releases/tag/5.4.4","label":"github.com/spring-projects/spring-security/releases/tag/5.4.4","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/spring-projects/spring-security","label":"github.com/spring-projects/spring-security","hostname":"github.com","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2021-02-23T18:48:02.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-03T18:30:24.008Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":70,"level":"high","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T22:50:03.974Z","stale":false,"partial":false}}