Medium

Infinite Loop in Apache Xerces Java

  • Disclosed: 27.01.2022
  • Updated: 11.10.2026 11:22

There's a vulnerability within the Apache Xerces Java (XercesJ) XML parser when handling specially crafted XML document payloads. This causes, the XercesJ XML parser to wait in an infinite loop, which may sometimes consume system resources for prolonged duration. This vulnerability is present within XercesJ version 2.12.1 and the previous versions.

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Java / Kotlin (Maven) xerces:xercesImpl < 2.12.2 2.12.2

References

CVSS score 6.5/10
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Weakness (CWE)
CWE-91
Platform
Java / Kotlin (Maven)
Package
xerces:xercesImpl
Disclosed
27.01.2022
Updated
11.10.2026 11:22

Sources and licenses

OSV / GitHub Advisory Database - GHSA-h65f-jvqw-m9fj - CC BY 4.0

Vulnerability history: xerces:xercesImpl

All published vulnerabilities of this package (Java / Kotlin (Maven)), newest first. Shows whether this is a one-off slip or a package that needs watching.

Total entries
5
First → latest
06.2020 05.2022
Without a fix
0
Exploited in attacks
0

Severity breakdown

  • High 2
  • Medium 3

Disclosures per year

  1. 2020: 2
  2. 2021: 0
  3. 2022: 3
  4. 2023: 0
  5. 2024: 0
  6. 2025: 0
  7. 2026: 0
  1. High CVE-2013-4002 < 2.12.0 2.12.0
  2. Medium · 5.3 CVE-2020-14338 < 2.12.0.sp3 2.12.0.sp3
  3. Infinite Loop in Apache Xerces Java this entry
    Medium · 6.5 CVE-2022-23437 < 2.12.2 2.12.2
  4. High · 7.5 CVE-2012-0881 < 2.12.0 2.12.0
  5. Medium CVE-2009-2625 < 2.10.0 2.10.0

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.