Denial of Service Vulnerability in libxerces2-java: Apache Xerces2 Java Parser Prior to 2.12.0

libxerces2-java Updated 02 Oct 2025

Summary

30/10/2017
N/A
No i
Unrated
Not published

DEBIAN-CVE-2012-0881: Apache Xerces2 Java Parser before 2.12.0 allows remote attackers to cause a denial of service (CPU consumption) via a crafted message to an XML service, which triggers hash table collisions. Affects libxerces2-java versions 2.12.1-1 – 2.12.2-1. 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 Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

libxerces2-java is a Java library that provides a robust and efficient XML parsing solution. It is widely used in various applications to handle XML data, offering features such as validation, DOM and SAX parsing, and support for XML Schema. However, versions prior to 2.12.0 are vulnerable to a denial of service attack, which can severely impact the performance of applications relying on this library.

Vulnerability Detail

The vulnerability identified as CVE-2012-0881 allows remote attackers to exploit the Apache Xerces2 Java Parser by sending a specially crafted XML message. This message triggers hash table collisions, leading to excessive CPU consumption and potential denial of service. The flaw originates from the way the parser handles certain XML structures, making it susceptible to attacks that can degrade system performance.

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, you can implement input validation to filter out potentially harmful XML messages before they reach the parser. This may involve using a proxy or middleware to inspect and sanitize incoming XML data.

Conclusion

The CVE-2012-0881 vulnerability in libxerces2-java poses a significant risk to applications that rely on this XML parsing library. It is crucial to update to the latest version to mitigate the risk of denial of service attacks. Implementing workarounds can provide temporary relief, but the best solution is to ensure your software is up to date.

See every vulnerability recorded for libxerces2-java →

Share this vulnerability

FAQ

CVE-2012-0881 is a vulnerability in the Apache Xerces2 Java Parser that allows remote attackers to cause denial of service through crafted XML messages.

If your application uses libxerces2-java versions prior to 2.12.0, it may be susceptible to denial of service attacks, leading to performance degradation or application crashes.

If immediate updates are not feasible, consider implementing input validation or using a proxy to filter XML messages as a temporary measure.

You can find detailed information about CVE-2012-0881 in the official Debian security advisory and other security databases.

Vulert provides real-time monitoring and alerts for open-source vulnerabilities using a manifest file like package-lock.json, allowing you to stay informed about potential risks.

Related vulnerabilities

Recent vulnerabilities recorded for libxerces2-java.

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