CVE-2026-59438
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.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
No mitigations published for this CVE yet.
The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or — if you've already worked around this in production — publish your fix to the community-verified tier.
Propose a mitigation on Community Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here withsource_tier=community-verified.
Application impact
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| spring | spring_integration | {"startIncluding":"7.1.0","endExcluding":"7.1.2.1"} | 7.1.2.1 |
| spring | spring_integration | {"startIncluding":"7.0.0","endExcluding":"7.0.7.1"} | 7.0.7.1 |
| spring | spring_integration | {"startIncluding":"6.5.0","endExcluding":"6.5.12"} | 6.5.12 |
| spring | spring_integration | {"startIncluding":"6.4.0","endExcluding":"6.4.14"} | 6.4.14 |
| spring | spring_integration | {"endExcluding":"5.5.23"} | 5.5.23 |
| spring | spring_integration | {"startIncluding":"7.1.0","endExcluding":"7.1.3"} | 7.1.3 |
| spring | spring_integration | {"startIncluding":"7.0.0","endExcluding":"7.0.8"} | 7.0.8 |
References
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.