Infinite Loop in Apache Xerces JavaGHSA-h65f-jvqw-m9fj
MEDIUMGHSA-h65f-jvqw-m9fj is a medium-severity (CVSS 6.5) CWE-835 vulnerability in xerces:xercesImpl. A fix is available for xerces:xercesImpl — see the affected versions and patch details below.
Exploitation Status
No confirmed exploitation observed yet
- CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.
Exploitation and automatability from CISA’s SSVC triage for GHSA-h65f-jvqw-m9fj.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
Real-World Exposure
xerces:xercesImplReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Maven packages — download data is not available via public APIs for these ecosystems.
Description
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 Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| ☕Maven | xerces:xercesImpl | all versions | 2.12.2xerces:xercesImpl:2.12.2 |
Affected Products
xerces-japacheactive iq unified managernetappagile engineering data managementoracleagile product lifecycle managementoraclebanking deposits and lines of credit servicingoraclebanking party managementoracleDetection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for xerces:xercesImpl, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update xerces:xercesImpl to 2.12.2 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-h65f-jvqw-m9fj is resolved across your whole dependency graph.
Workarounds
Cap what an attacker can consume: apply request size, rate and timeout limits in front of the affected component, and run it with memory and CPU limits so exhaustion degrades one worker rather than the whole service.
Fixing This On Your OS
If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.
| Product | Fixed in | Advisory |
|---|---|---|
| Red Hat JBoss Enterprise Application Platform | xerces/xercesImpl:2.12.0.SP04-redhat-00001 | RHSA-2022:4922 |
| Red Hat JBoss Enterprise Application Platform 7.4 for RHEL 8 | eap7-xerces-j2-0:2.12.0-3.SP04_redhat_00001.1.el8eap | RHSA-2022:4919 |
| Red Hat JBoss Enterprise Application Platform 7.4 on RHEL 7 | eap7-xerces-j2-0:2.12.0-3.SP04_redhat_00001.1.el7eap | RHSA-2022:4918 |
| RHPAM 7.13.1 async | xercesImpl | RHSA-2022:6813 |
Frequently Asked Questions
Is GHSA-h65f-jvqw-m9fj in your dependencies?
Find it across Maven, including transitive dependencies.