CVE-2026-59374 in Spring Framework
Summary
by MITRE • 12/02/2026
Spring Framework applications that use DataBinder 's allowedFields / disallowedFields mechanism to restrict which properties may be set through data binding may be vulnerable to a data binding rules bypass when targeting indexed data types.
Specifically, an application is vulnerable when all the following conditions are met:
The application uses Spring's data binding infrastructure to bind user-supplied request parameters onto a target object. The application configures an exact disallowedFields pattern (or a restrictive allowedFields pattern) to exclude one or more nested, map-keyed, or list-indexed properties from binding. The application does not configure any wildcard disallowedFields pattern, or no stricter allowedFields pattern. When all conditions are met, an attacker can submit malicious form fields that will write data on fields that are explicitly excluded from data binding by the application configuration.
If you want to get best quality of vulnerability data, you may have to visit VulDB.
Analysis
by VulDB Data Team • 12/02/2026
Spring Framework applications utilizing the DataBinder mechanism for property restriction face a critical vulnerability when handling indexed or map-keyed target types. This flaw allows attackers to bypass explicit security configurations designed to prevent unauthorized modification of specific object properties. The core issue arises from how Spring's data binding infrastructure processes complex nested structures, specifically those involving lists with indices or maps with keys, against the configured allowedFields and disallowedFields patterns. When an application relies on exact pattern matching for these restricted fields without implementing broader wildcard constraints, it creates a logical gap that can be exploited to write malicious data into protected areas of the target object.
The technical flaw stems from the interaction between Spring's property editor resolution logic and the regular expression evaluation used by DataBinder. In scenarios where an application explicitly disallows or allows specific nested properties using exact names, such as user.address.city, the framework may fail to correctly apply these restrictions when the input targets indexed collections like users[0].address or map-based structures. If the configuration does not include a wildcard pattern that covers all variations of the restricted property path, an attacker can craft HTTP request parameters that exploit this parsing ambiguity. By manipulating the index or key syntax within the parameter names, the binding process may inadvertently bypass the exact match checks and successfully set values on fields that were intended to be immutable by business logic or security policies.
This vulnerability has significant operational impact as it undermines the integrity of data binding controls which are fundamental to preventing unauthorized state changes in web applications. An attacker who exploits this flaw can modify sensitive properties such as administrative flags, financial amounts, or internal system states that should remain read-only or restricted to specific roles. This capability effectively neutralizes a primary defense mechanism employed by developers to secure their endpoints against mass assignment attacks. The consequence is often leading to privilege escalation, data tampering, or complete application compromise depending on the nature of the affected properties and the surrounding business logic context.
To mitigate this risk, organizations must update their Spring Framework configurations to include wildcard patterns in both allowedFields and disallowedFields settings. Instead of relying solely on exact matches for nested paths, developers should employ regex patterns that encompass all possible variations including indexed or keyed accessors. For instance using a pattern like .* instead of specific property names ensures comprehensive coverage against bypass techniques involving array indices or map keys. Additionally upgrading to the latest patched versions of Spring Framework where this logic has been corrected is essential as it provides robust handling for these complex binding scenarios without requiring manual regex engineering by application developers.
From an industry standards perspective this vulnerability aligns with CWE-915 which describes Improper Control of Dynamically-Managed Code Resources specifically regarding object injection and mass assignment flaws. It also relates to ATT&CK technique T1078 Valid Accounts as it often facilitates unauthorized access or privilege escalation after initial foothold establishment through manipulation of application state rather than direct authentication bypass. Security teams should audit their codebases for any usage of DataBinder with indexed collections and verify that wildcard restrictions are consistently applied across all binding configurations to ensure defense in depth against such logic-based exploitation vectors.