CVE-2024-46983 Remote Command Execution(RCE) Vulnerbility in sofa-hessian
Attackers can achieve remote code execution by bypassing the blacklist mechanism in the SOFA Hessian deserialization library.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-46983?
CVE-2024-46983 is a critical unsafe deserialization vulnerability in sofastack sofa-hessian, published on 19 Sep 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
sofa-hessian is an internal improved version of Hessian3/4 powered by Ant Group CO., Ltd. The SOFA Hessian protocol uses a blacklist mechanism to restrict deserialization of potentially dangerous classes for security protection. But there is a gadget chain that can bypass the SOFA Hessian blacklist protection mechanism, and this gadget chain only relies on JDK and does not rely on any third-party components. This issue is fixed by an update to the blacklist, users can upgrade to sofahessian version 3.5.5 to avoid this issue. Users unable to upgrade may maintain a blacklist themselves in the directory `external/serialize.blacklist`.
Weakness: CWE-74
Which versions are affected by CVE-2024-46983?
2 open source packages ship an affected version, including com.alipay.sofa:hessian. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
com.alipay.sofa:hessian Maven | All versions | 3.5.5 |
com.alipay.sofa:hessian Maven | All versions | 3.5.5 |
Products include Antfin Sofa-Hessian.
How do I fix CVE-2024-46983?
Upgrade com.alipay.sofa:hessian to 3.5.5 or later.
Upgrade, and only deserialise data from trusted sources or with an allow-list of types. More about Unsafe deserialization.
Is CVE-2024-46983 being exploited?
There is no known exploitation of CVE-2024-46983 in the wild and no public exploit code.
Other vulnerabilities in sofastack sofa-hessian
Sources
Also known as GHSA-c459-2m73-67hj.