CVE-2020-5227: Feedgen Vulnerable to XML Denial of Service Attacks
4.4
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.70308%
CWE
Published
1/28/2020
Updated
9/20/2024
KEV Status
No
Technology
Python
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:N/I:N/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
feedgen | pip | < 0.9.0 | 0.9.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stemmed from unsafe XML parsing that allowed entity expansion. The commit f57a01b introduced secure parsing by: 1) Replacing etree.fromstring with xml_fromstring which uses a hardened parser configuration 2) Adding parser settings that disable DTD processing and entity expansion. The _add_text_elm function was directly processing user-controlled XML input using vulnerable parsing methods, while util.py's original XML handling lacked security controls. The patch specifically targeted these areas to mitigate XML DoS vulnerabilities.