CVE-2022-22968: Improper handling of case sensitivity in Spring Framework
7.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.9561%
CWE
Published
4/15/2022
Updated
5/15/2024
KEV Status
No
Technology
Java
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
org.springframework:spring-context | maven | >= 5.3.0, < 5.3.19 | 5.3.19 |
org.springframework:spring-context | maven | < 5.2.21.RELEASE | 5.2.21.RELEASE |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stemmed from case-sensitive handling of disallowed field patterns. The pre-patch setDisallowedFields() method stored patterns in canonical form without case normalization, while isAllowed() performed case-sensitive matching. This required developers to list both uppercase and lowercase variants of field names for effective protection. The commit shows these functions were modified to add lowercase conversion (setDisallowedFields) and case-insensitive matching (isAllowed), confirming their role in the vulnerability.