CVE-2025-2251 Org.jboss.eap:wildfly-ejb3: improper deserialization in jboss marshalling allows remote code execution

Medium 6.2 Published Updated

Untrusted data deserialization in JBoss Marshalling allows remote attackers to execute arbitrary code without authentication.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2025-2251?

CVE-2025-2251 is a medium-severity unsafe deserialization vulnerability in Red Hat JBoss Enterprise Application Platform 7, published on 7 Apr 2025. An attacker needs administrator access to exploit it, with no action from the victim.

Official description

A security flaw exists in WildFly and JBoss Enterprise Application Platform (EAP) within the Enterprise JavaBeans (EJB) remote invocation mechanism. This vulnerability stems from untrusted data deserialization handled by JBoss Marshalling. This flaw allows an attacker to send a specially crafted serialized object, leading to remote code execution without requiring authentication.

Weakness: CWE-502

Which versions are affected by CVE-2025-2251?

How do I fix CVE-2025-2251?

Apply the vendor's patch.

Upgrade, and only deserialise data from trusted sources or with an allow-list of types. More about Unsafe deserialization.

Is CVE-2025-2251 being exploited?

There is no known exploitation of CVE-2025-2251 in the wild and no public exploit code.

Sources

Also known as GHSA-6839-6896-r9mx.

Is CVE-2025-2251 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free