CVE-2026-59438
Received Received - Intake

MongoDB MessageStore Deserialization Flaw Allows RCE

Vulnerability report for CVE-2026-59438, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-12-02

Last updated on: 2026-12-02

Assigner: VMware

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-12-02
Last Modified
2026-12-02
Generated
2026-12-02
AI Q&A
2026-12-02
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 6 associated CPEs
Vendor Product Version / Range
vmware mongodb_messagestore *
spring integration From 7.1.0 (inc) to 7.1.2 (inc)
spring integration From 7.0.0 (inc) to 7.0.7 (inc)
spring integration From 6.5.0 (inc) to 6.5.11 (inc)
spring integration From 6.4.0 (inc) to 6.4.13 (inc)
spring integration to 5.5.22 (inc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-UNKNOWN

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability exists in Spring Integration's MongoDbMessageStore component. It involves an API called addAllowedPatterns() meant to restrict which classes can be deserialized from stored ErrorMessage payloads. The issue is that the allow-list is only applied once when the store initializes, so calling addAllowedPatterns() after initialization has no effect. This leaves the store vulnerable to deserializing arbitrary classes, potentially leading to remote code execution if an attacker manipulates stored serialized data.

Detection Guidance

Check if your application uses Spring Integration's MongoDbMessageStore and verify if addAllowedPatterns() is called after store initialization. Inspect logs for deserialization attempts or unusual class loading patterns.

Impact Analysis

An attacker who can influence the serialized bytes stored in the MongoDB collection could exploit this to deserialize arbitrary Java classes. This may lead to remote code execution through a gadget chain, allowing the attacker to run malicious code on the affected system. Applications not configuring the allow-list before store initialization are at risk.

Compliance Impact

This vulnerability could lead to remote code execution if exploited, which may result in unauthorized access to sensitive data. For GDPR, this could violate principles of data protection and confidentiality. For HIPAA, it may compromise protected health information integrity and security.

Mitigation Strategies

Upgrade to a fixed version of Spring Integration where the issue is resolved. Ensure the allow-list is configured before the MongoDbMessageStore is initialized to prevent arbitrary class deserialization.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-59438. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...