CVE-2026-59438: Spring Integration MongoDbMessageStore allow-list API silently loses effect after startup

Published Dec 2, 2026
·
Updated

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.

Affected Software

1 affected component
VMware Spring Integration

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Configuration

    Call addAllowedPatterns() before MongoDbMessageStore is initialized so the allow-list is copied into the internal converter.

    Spring Integration MongoDbMessageStore addAllowedPatterns() = before store initialization

Event History

Dec 2, 2026
CVE Published
via MITRE·07:13 AM
Data Sourced
via MITRE·07:13 AM
DescriptionSeverity

Frequently Asked Questions

1

Which applications are affected by this issue?

Applications using MongoDbMessageStore are affected only if they call addAllowedPatterns() after the store has been initialized. Applications that configure the allow-list before initialization are not affected.

2

What access does an attacker need to exploit it?

An attacker must be able to influence serialized bytes stored in the backing MongoDB collection. Exploitation may then deserialize an arbitrary Java class and could lead to remote code execution through a gadget chain.

3

Why does calling addAllowedPatterns() after startup not protect the application?

The allow-list is copied into the internal converter only once during store initialization. Later additions are not applied; if the effective allow-list is empty, every class remains permitted for deserialization.

4

What should be checked during triage?

Verify when addAllowedPatterns() is invoked relative to MongoDbMessageStore initialization. Also determine whether untrusted parties can write or alter serialized ErrorMessage payload bytes in the MongoDB collection.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203