Spring Framework DataBinder Case Sensitive Match Exception
Published 16 May 2025 · Updated 10 Sept 2026
Is your project on an affected org.springframework:spring-context?
Look after several Java apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected packages
- Affected
- >=6.2.0 <6.2.7
- Fixed in
- 6.2.7
mvn versions:use-dep-version -Dincludes=org.springframework:spring-context -DdepVersion=6.2.7 -DforceVersion=true- Affected
- >=6.1.0 <6.1.20
- Fixed in
- 6.1.20
mvn versions:use-dep-version -Dincludes=org.springframework:spring-context -DdepVersion=6.1.20 -DforceVersion=true- Affected
- >=6.0.0 <=6.0.23
- Fixed in
- No fix released
- Affected
- <=5.3.39
- Fixed in
- No fix released
Details
CVE-2024-38820 ensured Locale-independent, lowercase conversion for both the configured disallowedFields patterns and for request parameter names. However, there are still cases where it is possible to bypass the disallowedFields checks.
Affected Spring Products and Versions
Spring Framework:
- 6.2.0 - 6.2.6
- 6.1.0 - 6.1.19
- 6.0.0 - 6.0.27
- 5.3.0 - 5.3.42
- Older, unsupported versions are also affected
Mitigation
Users of affected versions should upgrade to the corresponding fixed version.
| Affected version(s) | Fix Version | Availability | | - | - | - | | 6.2.x | 6.2.7 | OSS | | 6.1.x | 6.1.20 | OSS | | 6.0.x | 6.0.28 | Commercial https://enterprise.spring.io/ | | 5.3.x | 5.3.43 | Commercial https://enterprise.spring.io/ |
No further mitigation steps are necessary.
Generally, we recommend using a dedicated model object with properties only for data binding, or using constructor binding since constructor arguments explicitly declare what to bind together with turning off setter binding through the declarativeBinding flag. See the Model Design section in the reference documentation.
For setting binding, prefer the use of allowedFields (an explicit list) over disallowedFields.
Credit
This issue was responsibly reported by the TERASOLUNA Framework Development Team from NTT DATA Group Corporation.
Is GHSA-4wp7-92pw-q264 in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected org.springframework:spring-context, and gives you the command that fixes it.
More advisories for org.springframework:spring-context
- MediumCVE-2024-38820Spring Framework DataBinder Case Sensitive Match Exception · 18 Oct 2024
- HighCVE-2022-22968Improper handling of case sensitivity in Spring Framework · 15 Apr 2022
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2025-22233
- Linkgithub.com/spring-projects/spring-framework/issues/34801
- Linkgithub.com/spring-projects/spring-framework/commit/edfcc6ffb188e4614ec9b212e3208b666981851c
- Linkgithub.com/spring-projects/spring-framework/commit/ee62701f5634e904e42e218baad142cea2bcd332
- Packagegithub.com/spring-projects/spring-framework
- Linkspring.io/security/cve-2025-22233
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.