Remote code execution in Fastjson



Published: 2022-07-16 | Updated: 2023-03-02
Risk High
Patch available YES
Number of vulnerabilities 1
CVE-ID CVE-2022-25845
CWE-ID CWE-502
Exploitation vector Network
Public exploit Public exploit code for vulnerability #1 is available.
Vulnerable software
Subscribe
Fastjson
Web applications / JS libraries

Vendor

Security Bulletin

This security bulletin contains one high risk vulnerability.

1) Deserialization of Untrusted Data

EUVDB-ID: #VU65369

Risk: High

CVSSv3.1: 8.8 [CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P/RL:O/RC:C]

CVE-ID: CVE-2022-25845

CWE-ID: CWE-502 - Deserialization of Untrusted Data

Exploit availability: Yes

Description

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to insecure input validation when processing serialized data. A remote attacker can pass specially crafted data to the application and execute arbitrary code on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.

Mitigation

Install updates from vendor's website.

Vulnerable software versions

Fastjson: before 1.2.83

External links

http://www.ddosi.org/fastjson-poc/
http://github.com/alibaba/fastjson/commit/8f3410f81cbd437f7c459f8868445d50ad301f15
http://github.com/alibaba/fastjson/releases/tag/1.2.83
http://github.com/alibaba/fastjson/commit/35db4adad70c32089542f23c272def1ad920a60d
http://github.com/alibaba/fastjson/wiki/security_update_20220523
http://snyk.io/vuln/SNYK-JAVA-COMALIBABA-2859222


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability. However, proof of concept for this vulnerability is available.



###SIDEBAR###