Apache MINA: MINA applications using unbounded deserialization may allow RCE
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Partial Red Hat: 1 fixed, 8 without a fix
Attack profile from CVSS 4.0 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-502.
Summary
The ObjectSerializationDecoder in Apache MINA uses Java’s native deserialization protocol to process incoming serialized data but lacks the necessary security checks and defenses. This vulnerability allows attackers to exploit the deserialization process by sending specially crafted malicious serialized data, potentially leading to remote code execution (RCE) attacks. This issue affects MINA core versions 2.0.X, 2.1.X and 2.2.X, and will be fixed by the releases 2.0.27, 2.1.10 and 2.2.4. It's also important to note that an application using MINA core library will only be affected if the IoBuffer#getObject() method is called, and this specific method is potentially called when adding a ProtocolCodecFilter instance using the ObjectSerializationCodecFactory class in the filter chain. If your application is specifically using those classes, you have to upgrade to the latest version of MINA core library. Upgrading will not be enough: you also need to explicitly allow the classes the decoder will accept in the ObjectSerializationDecoder instance, using one of the three new methods: /** * Accept class names where the supplied ClassNameMatcher matches for * deserialization, unless they are otherwise rejected. * * @param classNameMatcher the matcher to use */ public void accept(ClassNameMatcher classNameMatcher) /** * Accept class names that match the supplied pattern for * deserialization, unless they are otherwise rejected. * * @param pattern standard Java regexp */ public void accept(Pattern pattern) /** * Accept the wildcard specified classes for deserialization, * unless they are otherwise rejected. * * @param patterns Wildcard file name patterns as defined by * {@link org.apache.commons.io.FilenameUtils#wildcardMatch(String, String) FilenameUtils.wildcardMatch} */ public void accept(String... patterns) By default, the decoder will reject *all* classes that will be present in the incoming data. Note: The FtpServer, SSHd and Vysper sub-project are not affected by this issue.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Apache | Apache MINA | 2.1 – 2.1.9; 2.2 – 2.2.3 | — | No fix listed | CNA |
| — | org.apache.mina:mina-core (Maven) | 2.2.0 to before 2.2.4 | 2.2.4 | Patch available | GHSA-76h9-2vwh-w278 |
| — | org.apache.mina:mina-core (Maven) | 2.1.0 to before 2.1.10 | 2.1.10 | Patch available | GHSA-76h9-2vwh-w278 |
| — | org.apache.mina:mina-core (Maven) | 2.0.0-M1 to before 2.0.27 | 2.0.27 | Patch available | GHSA-76h9-2vwh-w278 |
- Apache MINA VendorApache Affected 2.1 – 2.1.9; 2.2 – 2.2.3 Fixed in — No fix listed CNA
- org.apache.mina:mina-core (Maven) Vendor— Affected 2.2.0 to before 2.2.4 Fixed in 2.2.4 Patch available GHSA-76h9-2vwh-w278
- org.apache.mina:mina-core (Maven) Vendor— Affected 2.1.0 to before 2.1.10 Fixed in 2.1.10 Patch available GHSA-76h9-2vwh-w278
- org.apache.mina:mina-core (Maven) Vendor— Affected 2.0.0-M1 to before 2.0.27 Fixed in 2.0.27 Patch available GHSA-76h9-2vwh-w278
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:apache:mina:*:*:*:*:*:*:*:* | 2.0.0 to before 2.0.27; 2.1.0 to before 2.1.10; 2.2.0 to before 2.2.4 | Vulnerable | Apache |
- cpe:2.3:a:apache:mina:*:*:*:*:*:*:*:* Versions 2.0.0 to before 2.0.27; 2.1.0 to before 2.1.10; 2.2.0 to before 2.2.4 Vulnerable ·Apache
Remediation
- Fix · GHSA-76h9-2vwh-w278 org.apache.mina:mina-core (Maven) Fixed in 2.2.4 Advisory →
- Fix · GHSA-76h9-2vwh-w278 org.apache.mina:mina-core (Maven) Fixed in 2.1.10 Advisory →
- Fix · GHSA-76h9-2vwh-w278 org.apache.mina:mina-core (Maven) Fixed in 2.0.27 Advisory →
Red Hat 1 advisory
- RHSA-2025:1078 Released 2025-02-05 · Red Hat rating ImportantRed Hat Build of Apache Camel 4.8.3 for Spring Boot security update.
- Red Hat build of Apache Camel 4.8.3 for Spring Boot
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| A-MQ Clients 2 | Affected | No fix yet |
| Red Hat AMQ Broker 7 | Affected | No fix planned: Will not fix |
| Red Hat Build of Keycloak | Affected | No fix planned: Will not fix |
| Red Hat Data Grid 8 | Affected | No fix planned: Will not fix |
| Red Hat Fuse 7 | Affected | No fix planned: Out of support scope |
| Red Hat Integration Camel K 1 | Affected | No fix planned: Will not fix |
| Red Hat JBoss Data Grid 7 | Affected | No fix yet |
| streams for Apache Kafka | Affected | No fix planned: Will not fix |
| Red Hat build of Apache Camel 4.8.3 for Spring Boot | Fixed | RHSA-2025:1078 |
Not affected: 6 products
- Red Hat JBoss Enterprise Application Platform 7
- Red Hat JBoss Enterprise Application Platform 8
- Red Hat JBoss Enterprise Application Platform Expansion Pack
- Red Hat Process Automation 7
- Red Hat Single Sign-On 7
- Red Hat build of Apache Camel - HawtIO 4
Timeline
- 2026-10-02 Threatist record created from CVE-2024-52046
- 2026-10-03 Alias added: GHSA-76h9-2vwh-w278
References
Advisory 3
More Apache Mina vulnerabilities
- TI-2026-31001 Deserialization of untrusted data in Apache MINA CVSS 3.1CRITICAL 9.8
- TI-2026-31000 Apache MINA: CWE-502 Deserialization of Untrusted Data (take 2) CVSS 3.1CRITICAL 9.8
- TI-2026-30156 Deserialization of untrusted data in Apache MINA CVSS 3.1CRITICAL 9.8
- TI-2026-34667 Apache MINA: Critical Deserialization Allow-list Bypass via resolveProxyClass - ZDRES-232 CVSS 3.1CRITICAL 9.8
- TI-2026-30010 Apache MINA: CWE-502 Deserialization of Untrusted Data CVSS 3.1CRITICAL 9.8
- TI-2019-00204 Apache MINA SSLFilter security Issue CVSS 3.1HIGH 7.5
Sources
- CVE-2024-52046 · CVE Program
- CVE-2024-52046 · NVD
- FIRST EPSS
- GHSA-76h9-2vwh-w278 · GitHub Advisory Database · CC BY 4.0
- CVE-2024-52046 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences