CVE-2017-18349: Improper Input Validation in com.alibaba:fastjson
Summary
CVE-2017-18349: Improper Input Validation in alilibaba:fastjson. Affects com.alibaba:fastjson versions < 1.2.31. Fixed in 1.2.31. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
com.alibaba:fastjson is a popular JSON library for Java that provides fast and efficient JSON parsing and serialization capabilities. It is widely used in various applications and frameworks. However, versions before 1.2.25 of fastjson are vulnerable to an improper input validation issue.
Vulnerability Detail
The vulnerability, identified as CVE-2017-18349, exists in the parseObject function of fastjson. This vulnerability allows remote attackers to execute arbitrary code by sending a crafted JSON request. An attacker can exploit this vulnerability by including a specially crafted rmi:// URI in the dataSourceName field of an HTTP POST request to the Pippo /json URI. This input is mishandled in the AjaxApplication.java file, leading to arbitrary code execution. The impact of this vulnerability can be severe, as it allows an attacker to execute arbitrary code on the affected system.
How To Fix
Minimum fixed version
1.2.31
This is the first release that contains the fix.
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
There is no known workaround for this vulnerability. It is strongly advised to apply the fix by upgrading to a non-vulnerable version of com.alibaba:fastjson.
Conclusion
In conclusion, the vulnerability CVE-2017-18349 in com.alibaba:fastjson allows remote code execution and can have severe consequences. It is crucial to upgrade to a fixed version of the library (1.2.31 or later) to mitigate the risk. For further assistance or support in vulnerability remediation, you can reach out to DevNack.com.
See every vulnerability recorded for com.alibaba:fastjson →
FAQ
com.alibaba:fastjson is a JSON library for Java that provides fast and efficient JSON parsing and serialization capabilities.
The vulnerability allows remote attackers to execute arbitrary code on the affected system, potentially leading to a complete compromise of the system.
To fix this vulnerability, upgrade to a fixed version of com.alibaba:fastjson, specifically version 1.2.31 or later.
No, there is no known workaround for this vulnerability. It is recommended to apply the fix by upgrading to a non-vulnerable version of com.alibaba:fastjson.
For more information about this vulnerability, you can refer to the CVE-2017-18349 advisory or contact the developers of com.alibaba:fastjson.
References
Related vulnerabilities
Recent vulnerabilities recorded for com.alibaba:fastjson.