# CVE-2022-42890: Untrusted code execution in Apache XML Graphics Batik

Source: https://junglewise.ai/threats/cve-2022-42890-untrusted-code-execution-in-apache-xml-graphics-batik  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2022-10-25  
License: CC BY 4.0 with a link back

CVE-2022-42890 · Severity: low · CVSS 3.1 · Published 2022-10-25

Untrusted code execution in Apache XML Graphics Batik

Technologies: [org.apache.xmlgraphics:batik (Maven)](https://junglewise.ai/threats/technologies/org-apache-xmlgraphics-batik), [org.apache.xmlgraphics:batik-bridge (Maven)](https://junglewise.ai/threats/technologies/org-apache-xmlgraphics-batik-bridge). Vendors: [Maven](https://junglewise.ai/threats/vendors/maven).

## Quick answers

**Is CVE-2022-42890 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2022-42890 being exploited in the wild.

**How severe is CVE-2022-42890?** Low severity, with a CVSS score of 3.1, published 25 October 2022.

**Which products and versions are affected?** org.apache.xmlgraphics:batik (Maven) ECOSYSTEM:introduced=0,fixed=1.16; org.apache.xmlgraphics:batik-bridge (Maven) ECOSYSTEM:introduced=0,fixed=1.16.

**Is there a fix for CVE-2022-42890?** Yes. org.apache.xmlgraphics:batik (Maven): upgrade to 1.16 or later; org.apache.xmlgraphics:batik-bridge (Maven): upgrade to 1.16 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2022-42890?** Check whether you run org.apache.xmlgraphics:batik (Maven) or org.apache.xmlgraphics:batik-bridge (Maven) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- org.apache.xmlgraphics:batik (Maven): upgrade to 1.16 or later

  ```sh
  # set org.apache.xmlgraphics:batik to 1.16 in your pom.xml or build.gradle
  ```

- org.apache.xmlgraphics:batik-bridge (Maven): upgrade to 1.16 or later

  ```sh
  # set org.apache.xmlgraphics:batik-bridge to 1.16 in your pom.xml or build.gradle
  ```


## Affected products

- org.apache.xmlgraphics:batik (Maven) ECOSYSTEM:introduced=0,fixed=1.16
- org.apache.xmlgraphics:batik-bridge (Maven) ECOSYSTEM:introduced=0,fixed=1.16

## Identifiers

- CVE-2022-42890
- GHSA-rwqr-m72q-v6cm

## Related threats

- [Apache XML Graphics Batik Server-Side Request Forgery vulnerability](https://junglewise.ai/threats/cve-2022-44729-apache-xml-graphics-batik-server-side-request-forgery)
- [Apache XML Graphics Batik vulnerable to code execution via SVG.](https://junglewise.ai/threats/cve-2022-41704-apache-xml-graphics-batik-vulnerable-to-code-execution-via-svg)
- [Apache Batik vulnerable to Server-Side Request Forgery](https://junglewise.ai/threats/cve-2022-40146-apache-batik-vulnerable-to-server-side-request-forgery)
- [Apache Batik vulnerable to Server-Side Request Forgery](https://junglewise.ai/threats/cve-2022-38648-apache-batik-vulnerable-to-server-side-request-forgery)
- [Apache Batik Server-Side Request Forgery](https://junglewise.ai/threats/cve-2022-38398-apache-batik-server-side-request-forgery)
