CVE-2019-17626: XML Injection in ReportLab
9.8
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.94674%
CWE
Published
5/24/2022
Updated
10/26/2024
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 |
|---|---|---|---|
| reportlab | pip | < 3.5.28 | 3.5.28 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from the toColor class implementation in colors.py where eval() was directly used on input arguments. Multiple sources (CVE description, commit diff, and advisory links) show the vulnerable pattern 'eval(arg)' in color processing. The patch replaced eval() with rl_safe_eval() which implements safer evaluation. The XML injection occurs when user-controlled color attributes containing Python code are passed to this function.