XML Injection in ReportLab
Date: 2022-05
Affected: pip/reportlab
Attack vector: rce
Category: vulnerability-disclosure
Severity: Critical
CVE: CVE-2019-17626
CWE: CWE-91
CVSS: 9.8 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H)

ReportLab through 3.5.26 allows remote code execution because of toColor(eval(arg)) in colors.py, as demonstrated by a crafted XML document with '<span color="' followed by arbitrary Python code.


Mitigations:

Architectural layers (MAESTRO):