XPath Injection in Reportlab
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 color="' followed by arbitrary Python code.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.095, 95.5th percentile (scored ); down from 0.102 30 days earlier. About EPSS.
EPSS over last 30 days · oldest: 0.102 · newest: 0.095 · change: -0.007
Affected products
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 2 other repositories (ARPSyndicate/cve-scores, asa1997/topgear_test). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- bitbucket.org/rptlab/reportlab/issues/199/eval-in-colorspy-leads-to-remote-code (Exploit, Third Party Advisory, Issue Tracking)
- bitbucket.org/rptlab/reportlab/src/default/CHANGES.md (Third Party Advisory, Release Notes)
- RHSA-2020:0197 (vendor-advisory)
- RHSA-2020:0195 (vendor-advisory)
- FEDORA-2020-d2fb999600 (vendor-advisory)
- RHSA-2020:0230 (vendor-advisory)
- RHSA-2020:0201 (vendor-advisory)
- FEDORA-2020-f3e0ba2f79 (vendor-advisory)
- openSUSE-SU-2020:0160 (vendor-advisory)
- USN-4273-1 (vendor-advisory)