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.

Severity (CVSS)

Base score6.6
SeverityMedium
VersionCVSS 3.1
VectorCVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H
Provided byCNA

Affected products

VendorProductVersions
SpringSpring Integration7.1.0 to <7.1.2.1 [affected]; 7.0.0 to <7.0.7.1 [affected]; 6.5.0 to <6.5.12 [affected]; 6.4.0 to <6.4.14 [affected]; 0 to <5.5.23 [affected]; 7.1.0 to <7.1.3 [affected]; 7.0.0 to <7.0.8 [affected]

References

Authoritative sources

This page is a snapshot. For the latest enrichment and updates, view the record on CVE.org or the NVD.

Assess this vulnerability

Compare your deployed product and version with the source record. Review vendor references for fixes and workarounds. A CVSS score describes technical severity; it does not establish that your systems are affected or that exploitation has occurred.

Browse all CVE security advisories · Symaro cybersecurity services

Generated from the official CVE List on 02 Dec 2026 08:02 UTC.