Miggo Logo

CVE-2022-22968: Improper handling of case sensitivity in Spring Framework

7.5

CVSS Score
3.1

Basic Information

EPSS Score
0.9561%
Published
4/15/2022
Updated
5/15/2024
KEV Status
No
Technology
TechnologyJava

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Package NameEcosystemVulnerable VersionsFirst Patched Version
org.springframework:spring-contextmaven>= 5.3.0, < 5.3.195.3.19
org.springframework:spring-contextmaven< 5.2.21.RELEASE5.2.21.RELEASE

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot 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.

Vulnerable functions

Only Mi**o us*rs **n s** t*is s**tion

WAF Protection Rules

WAF Rule

In Sprin* *r*m*work v*rsions *.*.* - *.*.**, *.*.* - *.*.**, *n* ol**r unsupport** v*rsions, t** p*tt*rns *or *is*llow***i*l*s on * **t**in**r *r* **s* s*nsitiv* w*i** m**ns * *i*l* is not *****tiv*ly prot**t** unl*ss it is list** wit* *ot* upp*r *n*

Reasoning

T** vuln*r**ility st*mm** *rom **s*-s*nsitiv* **n*lin* o* *is*llow** *i*l* p*tt*rns. T** pr*-p*t** s*t*is*llow***i*l*s() m*t*o* stor** p*tt*rns in **noni**l *orm wit*out **s* norm*liz*tion, w*il* is*llow**() p*r*orm** **s*-s*nsitiv* m*t**in*. T*is r*