PT-2024-9987 · Apache+1 · Apache Mina+1
Emmanuel Lécharny
·
Published
2024-12-24
·
Updated
2026-05-18
·
CVE-2024-52046
CVSS v4.0
10
Critical
| Vector | AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H |
Name of the Vulnerable Software and Affected Versions
Apache MINA versions 2.0.X through 2.2.X
Description
The ObjectSerializationDecoder in Apache MINA lacks necessary security checks when processing incoming serialized data using Java’s native deserialization protocol. This allows attackers to send crafted malicious serialized data, potentially leading to remote code execution (RCE). The
IoBuffer#getObject() method is a key component in the exploitation chain, particularly when used with the ObjectSerializationCodecFactory class.Recommendations
Upgrade to versions 2.0.27, 2.1.10, or 2.2.4. Additionally, explicitly allow the classes the decoder will accept in the ObjectSerializationDecoder instance using one of the following methods:
accept(ClassNameMatcher classNameMatcher), accept(Pattern pattern), or accept(String... patterns).Fix
RCE
Code Injection
Deserialization of Untrusted Data
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Apache Mina
Debian