#VU68826 Code Injection in Batik XML


Published: 2022-10-30

Vulnerability identifier: #VU68826

Vulnerability risk: High

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

CVE-ID: CVE-2022-41704

CWE-ID: CWE-94

Exploitation vector: Network

Exploit availability: No

Vulnerable software:
Batik XML
Client/Desktop applications / Software for system administration

Vendor: Apache Xmlgraphics

Description

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

The vulnerability exists due to insecure processing links to .jar files inside .svg images. A remote attacker can upload a malicious .svg image that contains links to .jar files and execute arbitrary Java code on the system.

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

Code injection example:

<script type="application/java-archive" xlink:href="file.jar"/>

Mitigation
Install updates from vendor's website.

Vulnerable software versions

Batik XML: 1.6.1 - 1.15


External links
http://lists.apache.org/thread/hplhx0o74jb7blj39fm4kw3otcnjd6xf
http://issues.apache.org/jira/browse/BATIK-1338


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.


Latest bulletins with this vulnerability