Code Injection in Batik XML - CVE-2022-42890

 

Code Injection in Batik XML - CVE-2022-42890

Published: October 30, 2022


Vulnerability identifier: #VU68827
CSH Severity: Low
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:U/U:Clear
CVE-ID: CVE-2022-42890
CWE-ID: CWE-94
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: Apache Xmlgraphics
Affected software:
Batik XML

Detailed vulnerability description

The vulnerability allows a remote user to gain access to sensitive information.

The vulnerability exists due to the application allows running Java classes via JavaScript. A remote user can use JavaScript to execute a Java class on the system and obtain its execution results.

Example:

Runtime.getRuntime().exec("xxx");


How to mitigate CVE-2022-42890

Install updates from vendor's website.

Sources