# CVE-2019-17626: XML Injection in ReportLab

- Severity: Critical 9.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 9.79%, higher than 95% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2019-10-16T11:29:38.000Z
- Modified: 2026-06-17T02:24:17.953Z
- Also known as: GHSA-qpg2-vx7j-3869, PYSEC-2019-117
- Weaknesses: CWE-91
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: mitre

## Description

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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- reportlab reportlab: up to 3.5.26
- reportlab (PyPI): before 3.5.28

## Every score

- CISA-ADP: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:4.0 Critical `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://bitbucket.org/rptlab/reportlab/issues/199/eval-in-colorspy-leads-to-remote-code> (exploit, issue-tracking, third-party-advisory, web)
- <https://bitbucket.org/rptlab/reportlab/src/default/CHANGES.md> (release-notes, third-party-advisory, web)
- <https://access.redhat.com/errata/RHSA-2020:0197> (advisory, vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2020:0195> (advisory, vendor-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZZPHP2BJSTP4IYCSJRQINP763IHO6ASL/> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2020:0230> (advisory, vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2020:0201> (advisory, vendor-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/NSCTOE3DITFICY2XKBYZ5WAF5TSQ52DM/> (vendor-advisory)
- <http://lists.opensuse.org/opensuse-security-announce/2020-02/msg00002.html> (vendor-advisory, web)
- <https://usn.ubuntu.com/4273-1/> (vendor-advisory, web)
- <https://lists.debian.org/debian-lts-announce/2020/02/msg00019.html> (mailing-list, web)
- <https://www.debian.org/security/2020/dsa-4663> (advisory, vendor-advisory, web)
- <https://security.gentoo.org/glsa/202007-35> (advisory, vendor-advisory, web)
- <https://security.netapp.com/advisory/ntap-20240719-0006/>
- <https://nvd.nist.gov/vuln/detail/CVE-2019-17626> (advisory)
- <https://web.archive.org/web/20191016111823/https://bitbucket.org/rptlab/reportlab/issues/199/eval-in-colorspy-leads-to-remote-code> (web)
- <https://usn.ubuntu.com/4273-1> (web)
- <https://security.netapp.com/advisory/ntap-20240719-0006> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZZPHP2BJSTP4IYCSJRQINP763IHO6ASL> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/NSCTOE3DITFICY2XKBYZ5WAF5TSQ52DM> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZZPHP2BJSTP4IYCSJRQINP763IHO6ASL> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/NSCTOE3DITFICY2XKBYZ5WAF5TSQ52DM> (web)
- <https://hg.reportlab.com/hg-public/reportlab/rev/51a521ad7dd3> (web)
- <https://github.com/pypa/advisory-database/tree/main/vulns/reportlab/PYSEC-2019-117.yaml> (web)
- <https://github.com/advisories/GHSA-qpg2-vx7j-3869> (advisory)
- <https://github.com/MrBitBucket/reportlab-mirror> (package)
- <https://access.redhat.com/security/cve/cve-2019-17626> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZZPHP2BJSTP4IYCSJRQINP763IHO6ASL/> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/NSCTOE3DITFICY2XKBYZ5WAF5TSQ52DM/> (web)

## Sources

- CVE List: [CVE-2019-17626](https://www.cve.org/CVERecord?id=CVE-2019-17626), CVE Terms of Use, modified 2024-08-05
- GitHub Advisory Database: [GHSA-qpg2-vx7j-3869](https://github.com/advisories/GHSA-qpg2-vx7j-3869), CC-BY-4.0, modified 2024-10-26
- NVD: [CVE-2019-17626](https://nvd.nist.gov/vuln/detail/CVE-2019-17626), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2019-117](https://osv.dev/vulnerability/PYSEC-2019-117), CC-BY-4.0, modified 2023-11-08

---

Page: https://cve.day/CVE-2019-17626 · Whole record: https://cve.day/CVE-2019-17626.json · Rebuilt by cve.day 2026-11-25T22:57:47.484Z
