Apache Xerces Java XML Parser Vulnerability in libxerces2-java: Infinite Loop Issue

libxerces2-java Updated 02 Oct 2025

Summary

24/01/2022
N/A
No i
Medium
6.5

UBUNTU-CVE-2022-23437: There's a vulnerability within the Apache Xerces Java (XercesJ) XML parser when handling specially crafted XML document payloads. Affects libxerces2-java versions 2.11.0-7. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

libxerces2-java is an open-source XML parser developed by the Apache Software Foundation, designed to facilitate the parsing and manipulation of XML documents in Java applications. It is widely used in various software projects due to its robust features and compliance with XML standards. However, a vulnerability has been identified in this package that affects its stability and resource management.

Vulnerability Detail

The vulnerability, identified as CVE-2022-23437, arises from an issue within the Apache Xerces Java XML parser when processing specially crafted XML document payloads. This flaw can cause the parser to enter an infinite loop, leading to excessive consumption of system resources. The vulnerability is present in XercesJ version 2.12.1 and earlier versions, potentially impacting applications that rely on this library for XML processing.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a temporary workaround, users can avoid processing untrusted or specially crafted XML documents until the package is updated. This can help mitigate the risk of resource exhaustion caused by the vulnerability.

Conclusion

The CVE-2022-23437 vulnerability in libxerces2-java poses a significant risk due to its potential to cause infinite loops and resource exhaustion. Users are strongly advised to update to the latest patched version of the package to mitigate this risk. Utilizing tools like Vulert can help monitor and manage vulnerabilities effectively.

See every vulnerability recorded for libxerces2-java →

Share this vulnerability

FAQ

CVE-2022-23437 is a vulnerability in the Apache Xerces Java XML parser that can cause an infinite loop when handling specially crafted XML documents.

The vulnerability affects libxerces2-java versions 2.12.1 and earlier.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software. Visit Vulert Scanner to check if your application is affected without needing to sign up.

Exploitation of this vulnerability can lead to excessive resource consumption, potentially causing application slowdowns or crashes.

Yes, updating to the latest version of libxerces2-java will resolve the vulnerability. Use 'sudo apt-get update && sudo apt-get install libxerces2-java' to update.

Related vulnerabilities

Recent vulnerabilities recorded for libxerces2-java.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback