Skip to content
OpenAdvisories

Description

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
OSS6.1.x
6.1.20
OSS6.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.

Affected products

VendorProductAffectedFixed
Spring 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 6.2.7

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 libspring-java No fix yet —
Debian 13 libspring-java No fix yet —
Debian 12 libspring-java No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 libspring-java No fix yet —
Ubuntu 26.04 LTS libspring-java No fix yet —
Ubuntu 25.10 libspring-java No fix yet —
Show 6 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 24.04 LTS libspring-java No fix yet —
Ubuntu Pro 22.04 LTS libspring-java No fix yet —
Ubuntu Pro 20.04 LTS libspring-java No fix yet —
Ubuntu Pro 18.04 LTS libspring-java No fix yet —
Ubuntu Pro 16.04 LTS libspring-java No fix yet —
Ubuntu Pro 14.04 LTS libspring-java No fix yet —

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling apache-nifi +2 2.4.0-r3 —
Wolfi rolling apache-nifi-registry +1 2.4.0-r2 —
Wolfi rolling keycloak-config-cli +2 6.4.0-r42 —
Wolfi rolling thingsboard +4 4.0.1-r5 —

Affected packages

EcosystemPackageAffectedFixedRecord
Maven org.springframework:spring-context >= 6.2.0, < 6.2.7 6.2.7 GHSA-4wp7-92pw-q264
Maven org.springframework:spring-context >= 6.1.0, < 6.1.20 6.1.20 GHSA-4wp7-92pw-q264
Maven org.springframework:spring-context >= 6.0.0, <= 6.0.23 — GHSA-4wp7-92pw-q264
Maven org.springframework:spring-context <= 5.3.39 — GHSA-4wp7-92pw-q264

Advisories 4

References