CVE-2019-17626

NameCVE-2019-17626
DescriptionReportLab 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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesDLA-2112-1, DSA-4663-1
Debian Bugs942763

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
python-reportlab (PTS)bullseye3.5.59-2fixed
bullseye (security)3.5.59-2+deb11u1fixed
bookworm, bookworm (security)3.6.12-1+deb12u1fixed
sid, trixie4.2.5-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
python-reportlabsourcejessie3.1.8-3+deb8u2DLA-2112-1
python-reportlabsourcestretch3.3.0-2+deb9u1DSA-4663-1
python-reportlabsourcebuster3.5.13-1+deb10u1DSA-4663-1
python-reportlabsource(unstable)3.5.34-1942763

Notes

https://bitbucket.org/rptlab/reportlab/issues/199/eval-in-colorspy-leads-to-remote-code
Minimal patch in https://bitbucket.org/rptlab/reportlab/issues/199/eval-in-colorspy-leads-to-remote-code#comment-55887892
but upstream did make the bugreport private.

Search for package or bug name: Reporting problems