CVE-2021-23926: Improper Restriction of Recursive Entity References in Apache XMLBeans
9.1
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.54702%
CWE
Published
6/16/2021
Updated
1/27/2023
KEV Status
No
Technology
Java
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
org.apache.xmlbeans:xmlbeans | maven | < 3.0.0 | 3.0.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stemmed from uncontrolled recursive entity processing in the SAX parser implementation. The patch adds three key mitigations: 1) Byte counting in characters() to limit entity size, 2) Entity nesting depth tracking via startEntity/endEntity, and 3) A configurable byte limit through XmlOptions. The affected methods - characters(), startEntity(), and endEntity() - handled entity content processing without these restrictions in vulnerable versions, making them the entry points for entity expansion attacks. Their unpatched behavior would appear in stack traces during exploitation as they directly process entity content without validation.