cbcvebase.
CVE-2019-17626
published 2019-10-16

CVE-2019-17626: 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…

PriorityP264critical9.8CVSS 3.1
AVNACLPRNUINSUCHIHAH
EPSS
10.23%
95.1th percentile
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.

Affected

8 ranges
VendorProductVersion rangeFixed in
debiandebian_linux
debianpython-reportlab< python-reportlab 3.5.31-1 (bookworm)python-reportlab 3.5.31-1 (bookworm)
debianpython-reportlab< python-reportlab 3.5.34-1 (bookworm)python-reportlab 3.5.34-1 (bookworm)
paloaltopan-os
reportlabreportlab< 3.5.313.5.31
reportlabreportlab<= 3.5.26
reportlabreportlab>= 0 < 3.5.313.5.31
reportlabreportlab>= 0 < 3.5.283.5.28

Detection & IOCsextracted from sources · hover to see the quote

pathcolors.py
command<span color="[arbitrary Python code]
commandtoColor(eval(arg))
  • Inspect XML/HTML input processed by ReportLab for '<span color="' tags containing non-color-value Python expressions, which are passed to eval() via toColor() in colors.py.
  • Monitor applications using python-reportlab to parse untrusted input files; any call path reaching toColor() with user-controlled input is exploitable for RCE.
  • ·The vulnerability exists in ReportLab versions through 3.5.26; versions fixed at 3.5.34-1 (Debian) and 3.5.34-2 (Fedora). Ensure the installed version is at or above the fixed release.
  • ·Red Hat Quay will not fix this CVE because it only affects a non-supported feature disabled behind a feature flag; detections targeting Quay deployments may produce false positives.

CVSS provenance

nvdv3.19.8CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
nvdv2.07.5HIGHAV:N/AC:L/Au:N/C:P/I:P/A:P
ghsa9.8CRITICAL
osv9.8CRITICAL
vendor_debian9.8CRITICAL
vendor_redhat9.8CRITICAL
Stop checking back — get the weekly exploitation signal.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.