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.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | python-reportlab | 3.5.34-1 | — |
| Debian 13 | python-reportlab | 3.5.34-1 | — |
| Debian 12 | python-reportlab | 3.5.34-1 | — |
| Debian 10 | python-reportlab | 3.5.13-1+deb10u1 | DSA-4663-1 |
| Debian 9 | python-reportlab | 3.3.0-2+deb9u1 | DSA-4663-1 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 8 | python-reportlab | 3.1.8-3+deb8u2 | DLA-2112-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | python-reportlab | 3.4.0-3ubuntu0.1 | USN-4273-1 |
| Ubuntu 16.04 LTS | python-reportlab | 3.3.0-1ubuntu0.1 | USN-4273-1 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 8 | python-reportlab +1 | 3.4.0-6.el8_1.2 | RHSA-2020:0201 |
| RHEL 7 | python-reportlab +1 | 2.5-9.el7_7.1 | RHSA-2020:0195 |
| RHEL 6 | python-reportlab +1 | 2.3-3.el6_10.1 | RHSA-2020:0197 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 8.0 E4S | python-reportlab +1 | 3.4.0-6.el8_0.2 | RHSA-2020:0230 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 12 SP5 | python-reportlab | 2.7-3.3.1 | SUSE-SU-2020:0324-1 |
| SLES 12 SP4 | python-reportlab | 2.7-3.3.1 | SUSE-SU-2020:0324-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | python-reportlab | 4.0.7-1.3 | openSUSE-SU-2026:12037-1, openSUSE-SU-2024:14160-1 |
| openSUSE Leap 15.1 | python-reportlab | 3.4.0-lp151.3.3.1 | openSUSE-SU-2020:0160-1 |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2 | python-reportlab +1 | 2.5-9.amzn2.1 | ALAS2-2020-1390 |
Oracle Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Oracle Linux 8 | python3-reportlab | 3.4.0-6.el8_1.2 | ELSA-2020-0201 |
| Oracle Linux 7 | python-reportlab +1 | 2.5-9.el7_7.1 | ELSA-2020-0195 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | reportlab | < 3.5.28 | 3.5.28 | GHSA-qpg2-vx7j-3869 |
Advisories 14
- openSUSE-SU-2026:12037-1 python313-reportlab-4.5.1-1.2 on GA media SUSE / openSUSE Security Updates · Oct 5, 2026
- RHSA-2020:0230 Red Hat Security Advisory: python-reportlab security update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- RHSA-2020:0201 Red Hat Security Advisory: python-reportlab security update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- RHSA-2020:0197 Red Hat Security Advisory: python-reportlab security update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- RHSA-2020:0195 Red Hat Security Advisory: python-reportlab security update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- DSA-4663-1 python-reportlab - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-2112-1 python-reportlab - security update Debian Security (DSA / DLA) · Mar 9, 2026
- USN-4273-1 python-reportlab vulnerability Ubuntu Security Notices (USN) · Feb 10, 2026
- openSUSE-SU-2020:0160-1 Security update for python-reportlab SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2020:0324-1 Security update for python-reportlab SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:14160-1 python310-reportlab-4.0.7-1.3 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- ALAS2-2020-1390 Important: python-reportlab security update (Amazon Linux 2) Amazon Linux Security Center (ALAS) · Feb 8, 2020
- ELSA-2020-0201 Important: python-reportlab security update (Oracle Linux 8) Oracle Linux Security Advisories (ELSA) · Jan 22, 2020
- ELSA-2020-0195 Important: python-reportlab security update (Oracle Linux 7) Oracle Linux Security Advisories (ELSA) · Jan 22, 2020
References
- https://bitbucket.org/rptlab/reportlab/issues/199/eval-in-colorspy-leads-to-remote-code
- https://bitbucket.org/rptlab/reportlab/src/default/CHANGES.md
- 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
- [debian-lts-announce] 20200220 [SECURITY] [DLA 2112-1] python-reportlab security update mailing-list
- DSA-4663 vendor-advisory
- GLSA-202007-35 vendor-advisory
- https://security.netapp.com/advisory/ntap-20240719-0006/