Deserialization of Untrusted Data in OFBiz - CVE-2019-0189

 

Deserialization of Untrusted Data in OFBiz - CVE-2019-0189

Published: September 11, 2019 / Updated: July 17, 2020


Vulnerability identifier: #VU30762
CSH Severity: High
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Amber
CVE-ID: CVE-2019-0189
CWE-ID: CWE-502
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: Apache Foundation
Affected software:
OFBiz

Detailed vulnerability description

The vulnerability allows a remote non-authenticated attacker to execute arbitrary code.

The java.io.ObjectInputStream is known to cause Java serialisation issues. This issue here is exposed by the "webtools/control/httpService" URL, and uses Java deserialization to perform code execution. In the HttpEngine, the value of the request parameter "serviceContext" is passed to the "deserialize" method of "XmlSerializer". Apache Ofbiz is affected via two different dependencies: "commons-beanutils" and an out-dated version of "commons-fileupload" Mitigation: Upgrade to 16.11.06 or manually apply the commits from OFBIZ-10770 and OFBIZ-10837 on branch 16


How to mitigate CVE-2019-0189

Install update from vendor's website.

Sources