CVE-2017-18349 Improper Input Validation in alilibaba:fastjson
Remote attackers can execute arbitrary code via crafted JSON requests due to unsafe deserialization in the Fastjson 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-2017-18349?
CVE-2017-18349 is a critical unsafe deserialization vulnerability in n/a, published on 23 Oct 2018. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
parseObject in Fastjson before 1.2.25, as used in FastjsonEngine in Pippo 1.11.0 and other products, allows remote attackers to execute arbitrary code via a crafted JSON request, as demonstrated by a crafted rmi:// URI in the dataSourceName field of HTTP POST data to the Pippo /json URI, which is mishandled in AjaxApplication.java.
Weakness: CWE-20
Which versions are affected by CVE-2017-18349?
4 open source packages ship an affected version, including com.alibaba:fastjson and ro.pippo:pippo-fastjson. It affects 2 products.
| Package | Affected | Fixed in |
|---|---|---|
com.alibaba:fastjson Maven | All versions | 1.2.31 |
com.alibaba:fastjson Maven | All versions | 1.2.31 |
ro.pippo:pippo-fastjson Maven | All versions | 1.12.0 |
ro.pippo:pippo-fastjson Maven | All versions | 1.12.0 |
Products include Alibaba Fastjson, Pippo Pippo.
How do I fix CVE-2017-18349?
Upgrade com.alibaba:fastjson to 1.2.31 or later.
Upgrade, and only deserialise data from trusted sources or with an allow-list of types. More about Unsafe deserialization.
Is CVE-2017-18349 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2017-18349 exists.
Public exploit code: 1 Nuclei template and 2 proofs of concept on GitHub.
Other vulnerabilities in n/a
Sources
Also known as GHSA-xjrr-xv9m-4pw5.