# CVE-2022-25312: Improper Restriction of XML External Entity Reference in Any23

Source: https://junglewise.ai/threats/cve-2022-25312-improper-restriction-of-xml-external-entity-reference-in-any23  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2022-03-06  
License: CC BY 4.0 with a link back

CVE-2022-25312 · Severity: low · CVSS 3.1 · Published 2022-03-06

Improper Restriction of XML External Entity Reference in Any23

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

## Quick answers

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

**How severe is CVE-2022-25312?** Low severity, with a CVSS score of 3.1, published 6 March 2022.

**Which products and versions are affected?** org.apache.any23:apache-any23 (Maven) ECOSYSTEM:introduced=0,fixed=2.7.

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

**Am I affected by CVE-2022-25312?** Check whether you run org.apache.any23:apache-any23 (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.any23:apache-any23 (Maven): upgrade to 2.7 or later

  ```sh
  # set org.apache.any23:apache-any23 to 2.7 in your pom.xml or build.gradle
  ```


## Affected products

- org.apache.any23:apache-any23 (Maven) ECOSYSTEM:introduced=0,fixed=2.7

## Identifiers

- CVE-2022-25312
- GHSA-2rmm-87v7-34rj

## Related threats

- [Apache Any23 vulnerable to excessive memory usage](https://junglewise.ai/threats/cve-2023-34150-apache-any23-vulnerable-to-excessive-memory-usage)
- [Remote Code Execution in Any23](https://junglewise.ai/threats/cve-2021-40146-remote-code-execution-in-any23)
- [XML Injection in Any23](https://junglewise.ai/threats/cve-2021-38555-xml-injection-in-any23)
