Miggo Logo

CVE-2021-41042: XML External Entity Reference in Eclipse Lyo

4.2

CVSS Score
3.1

Basic Information

EPSS Score
0.78122%
Published
7/8/2022
Updated
1/27/2023
KEV Status
No
Technology
TechnologyJava

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:L
Package NameEcosystemVulnerable VersionsFirst Patched Version
org.eclipse.lyo:lyo-parentmaven>= 1.0.0, <= 4.1.05.0.0.Final

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from insecure XML parser configuration. The commit a8b15b7 shows the fix involved modifying the createTransformer method to set security attributes (ACCESS_EXTERNAL_DTD and ACCESS_EXTERNAL_STYLESHEET) on TransformerFactory. The original vulnerable implementation used TransformerFactory.newInstance().newTransformer() without these restrictions, making it susceptible to XXE attacks via RDF/XML processing. The JenaModelHelper class is central to RDF/XML handling in Lyo, and the patched method directly addresses the CWE-611 vulnerability by restricting DTD loading.

Vulnerable functions

Only Mi**o us*rs **n s** t*is s**tion

WAF Protection Rules

WAF Rule

In **lips* Lyo v*rsions *.*.* to *.*.*, * Tr*ns*orm*r***tory is initi*liz** wit* t** ****ults t**t *o not r*stri*t *T* lo**in* w**n workin* wit* R**/XML. T*is *llows *n *tt**k*r to **us* *n *xt*rn*l *T* to ** r*tri*v**.

Reasoning

T** vuln*r**ility st*ms *rom ins**ur* XML p*rs*r *on*i*ur*tion. T** *ommit ******* s*ows t** *ix involv** mo*i*yin* t** *r**t*Tr*ns*orm*r m*t*o* to s*t s**urity *ttri*ut*s (****SS_*XT*RN*L_*T* *n* ****SS_*XT*RN*L_STYL*S***T) on Tr*ns*orm*r***tory. T*