# CVE-2017-5662: Improper Restriction of XML External Entity Reference in Apache Batik

Source: https://junglewise.ai/threats/cve-2017-5662-improper-restriction-of-xml-external-entity-reference-in-apache  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2022-05-13  
License: CC BY 4.0 with a link back

CVE-2017-5662 · Severity: low · CVSS 3 · Published 2022-05-13

Improper Restriction of XML External Entity Reference in Apache Batik

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

## Quick answers

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

**How severe is CVE-2017-5662?** Low severity, with a CVSS score of 3, published 13 May 2022.

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

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

**Am I affected by CVE-2017-5662?** Check whether you run org.apache.xmlgraphics:batik (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.9 or later

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


## Affected products

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

## Identifiers

- CVE-2017-5662
- GHSA-qwgx-59jw-qfg9

## Related threats

- [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)
- [Untrusted code execution in Apache XML Graphics Batik](https://junglewise.ai/threats/cve-2022-42890-untrusted-code-execution-in-apache-xml-graphics-batik)
- [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)
