Vulnerabilities / CVE-2019-17626

critical

CVE-2019-17626

python-reportlab: code injection in colors.py allows attacker to execute code

Published Modified CWE 91
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
GHSA9.3CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Red Hat9.8CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Trivy's own label is CRITICAL. Rated critical by NVD, GHSA. Rated lower by Red Hat (high), Amazon (high), Oracle (high), Ubuntu (medium).

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.

Affected packages and fixed versions

SourcePackageFixed in
pip::GitHub Security Advisory pipreportlab3.5.28
amazon linux 2python-reportlab, python-reportlab-debuginfo, python-reportlab-docs2.5-9.amzn2.1
debian 10python-reportlab3.5.13-1+deb10u1
debian 11python-reportlab3.5.34-1
debian 12python-reportlab3.5.34-1
debian 13python-reportlab3.5.34-1
debian 14python-reportlab3.5.34-1
debian 8python-reportlab3.1.8-3+deb8u2
debian 9python-reportlab3.3.0-2+deb9u1
echopython-reportlab3.5.34-1
Oracle Linux 6python-reportlab, python-reportlab-docs2.3-3.el6_10.1
Oracle Linux 7python-reportlab, python-reportlab-docs2.5-9.el7_7.1
Show all 22 entries from 18 sources
SourcePackageFixed in
pip::GitHub Security Advisory pipreportlab3.5.28
amazon linux 2python-reportlab2.5-9.amzn2.1
amazon linux 2python-reportlab-debuginfo2.5-9.amzn2.1
amazon linux 2python-reportlab-docs2.5-9.amzn2.1
debian 10python-reportlab3.5.13-1+deb10u1
debian 11python-reportlab3.5.34-1
debian 12python-reportlab3.5.34-1
debian 13python-reportlab3.5.34-1
debian 14python-reportlab3.5.34-1
debian 8python-reportlab3.1.8-3+deb8u2
debian 9python-reportlab3.3.0-2+deb9u1
echopython-reportlab3.5.34-1
Oracle Linux 6python-reportlab2.3-3.el6_10.1
Oracle Linux 6python-reportlab-docs2.3-3.el6_10.1
Oracle Linux 7python-reportlab2.5-9.el7_7.1
Oracle Linux 7python-reportlab-docs2.5-9.el7_7.1
Oracle Linux 8python3-reportlab3.4.0-6.el8_1.2
ubuntu 16.04python-reportlab3.3.0-1ubuntu0.1
ubuntu 16.04-ESMpython-reportlab3.3.0-1ubuntu0.1
ubuntu 18.04python-reportlab3.4.0-3ubuntu0.1
ubuntu 18.04-ESMpython-reportlab3.4.0-3ubuntu0.1
ubuntu 19.10python-reportlab3.5.23-1ubuntu0.1

References

All 30 references

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.