CVE-2018-25082: weixin-python XML External Entity vulnerability
9.8
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.26652%
CWE
Published
3/21/2023
Updated
10/20/2023
KEV Status
No
Technology
Python
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
weixin-python | pip | < 0.5.5 | 0.5.5 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from insecure XML parsing in two locations: 1) msg.py's parse method handled incoming XML messages without disabling entity resolution. 2) pay.py's to_dict method processed payment XML data with the same vulnerable pattern. The patch explicitly adds 'resolve_entities=False' to XMLParser in both locations, confirming these were the vulnerable entry points. Both functions directly process external XML input and matched the vulnerability description's reference to 'validate/to_xml' functionality.