CVE-2026-59438 — Spring Integration
One of 12 Spring Integration vulnerabilities published together by NVD: our article covers all of them.
JavaDatabasesVulnerabilitiesSummary
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.
Severity breakdown
Medium · 6.6
An attacker with administrator rights can exploit this over the network, without any user action, but only under specific conditions.
- Attack from
- the network (remotely)
- Attack complexity
- high (only works under specific conditions)
- Login needed
- yes, an administrator account
- User action needed
- no
- Scope
- stays within the vulnerable component
- Impact
- high on confidentiality, integrity and availability
Weakness
- CWE-502: Deserialization of Untrusted Data
Affected and fixed versions
| Product | Affected versions | Fixed in |
|---|---|---|
| Spring Integration | ≥ 7.1.0, < 7.1.2.1 | 7.1.2.1 |
| ≥ 7.0.0, < 7.0.7.1 | 7.0.7.1 | |
| ≥ 6.5.0, < 6.5.12 | 6.5.12 | |
| ≥ 6.4.0, < 6.4.14 | 6.4.14 | |
| < 5.5.23 | 5.5.23 | |
| ≥ 7.1.0, < 7.1.3 | 7.1.3 | |
| ≥ 7.0.0, < 7.0.8 | 7.0.8 |
References by type
Other references
Affected
- Spring Integration
What to do
- Follow the vendor advisory and the references below for fixed versions and workarounds.
Frequently asked questions
What is CVE-2026-59438?
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. Weakness type: Deserialization of Untrusted Data (CWE-502).
How severe is CVE-2026-59438?
CVE-2026-59438 has a CVSS 3.1 base score of 6.6 (medium), from the CNA (vmware.com). An attacker with administrator rights can exploit this over the network, without any user action, but only under specific conditions.
Is CVE-2026-59438 being exploited?
Not as far as is known: CVE-2026-59438 is not in CISA's Known Exploited Vulnerabilities catalog as of December 3, 2026. EPSS estimates a 1.1% chance that it is exploited in the next 30 days.
Which versions are affected by CVE-2026-59438?
Spring Integration ≥ 7.1.0, < 7.1.2.1 (fixed in 7.1.2.1); Spring Integration ≥ 7.0.0, < 7.0.7.1 (fixed in 7.0.7.1); Spring Integration ≥ 6.5.0, < 6.5.12 (fixed in 6.5.12); Spring Integration ≥ 6.4.0, < 6.4.14 (fixed in 6.4.14); and more, listed on this page.
How do I fix CVE-2026-59438?
Update to a fixed release: Spring Integration 7.1.2.1; Spring Integration 7.0.7.1; Spring Integration 6.5.12.