Spring Integration MongoDbMessageStore allow-list API silently loses effect after startup
Summary
| CVE | CVE-2026-59438 |
|---|---|
| State | PUBLISHED |
| Assigner | vmware |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-12-02 08:17:47 UTC |
| Updated | 2026-12-02 15:17:27 UTC |
| Description | MongoDbMessageStore exposes an addAllowedPatterns() API that restricts which classes may be deserialized from stored ErrorMessage payloads. Its Javadoc does not state that it must be called before the store is initialized. The allow-list is copied by value into the internal converter only once, when the store is initialized. If addAllowedPatterns() is called after initialization, the new patterns are never applied. Because an empty allow-list permits every class, the store continues to deserialize arbitrary classes while the application believes it is restricted. An attacker who can influence the serialized bytes stored in the backing MongoDB collection can cause an arbitrary Java class to be deserialized, which may lead to remote code execution through a gadget chain. Applications that configure the allow-list before the store is initialized are not affected. |
Risk And Classification
Primary CVSS: v3.1 6.6 MEDIUM from [email protected]
CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H
Problem Types: CWE-502 | CWE-502 CWE-502 Deserialization of Untrusted Data
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | [email protected] | Secondary | 6.6 | MEDIUM | CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H |
| 3.1 | CNA | CVSS | 6.6 | MEDIUM | CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H |
CVSS v3.1 Breakdown
Attack Vector
NetworkAttack Complexity
HighPrivileges Required
HighUser Interaction
NoneScope
UnchangedConfidentiality
HighIntegrity
HighAvailability
HighCVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Spring | Spring Integration | affected 7.1.0 7.1.2.1 semver | Not specified |
| CNA | Spring | Spring Integration | affected 7.0.0 7.0.7.1 semver | Not specified |
| CNA | Spring | Spring Integration | affected 6.5.0 6.5.12 semver | Not specified |
| CNA | Spring | Spring Integration | affected 6.4.0 6.4.14 semver | Not specified |
| CNA | Spring | Spring Integration | affected 5.5.23 semver | Not specified |
| CNA | Spring | Spring Integration | affected 7.1.0 7.1.3 OSS | Not specified |
| CNA | Spring | Spring Integration | affected 7.0.0 7.0.8 OSS | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| nvd.nist.gov/vuln-metrics/cvss/v3-calculator | [email protected] | nvd.nist.gov | |
| spring.io/security/cve-2026-59438 | [email protected] | spring.io | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
Vendor Comments And Credit
Discovery Credit
CNA: This vulnerability was discovered and responsibly reported by Yu Bao from PayPal Cyber Security Team. (en)
There are currently no legacy QID mappings associated with this CVE.