{"id":"GHSA-qpg2-vx7j-3869","summary":"XML Injection in ReportLab","details":"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 '\u003cspan color=\"' followed by arbitrary Python code.","aliases":["CVE-2019-17626","PYSEC-2019-117"],"modified":"2024-10-26T22:51:54.343575Z","published":"2022-05-24T22:00:57Z","database_specific":{"severity":"CRITICAL","github_reviewed":true,"github_reviewed_at":"2022-06-27T16:52:31Z","nvd_published_at":"2019-10-16T12:15:00Z","cwe_ids":["CWE-91"]},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2019-17626"},{"type":"WEB","url":"https://www.debian.org/security/2020/dsa-4663"},{"type":"WEB","url":"https://web.archive.org/web/20191016111823/https://bitbucket.org/rptlab/reportlab/issues/199/eval-in-colorspy-leads-to-remote-code"},{"type":"WEB","url":"https://usn.ubuntu.com/4273-1"},{"type":"WEB","url":"https://security.netapp.com/advisory/ntap-20240719-0006"},{"type":"WEB","url":"https://security.gentoo.org/glsa/202007-35"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZZPHP2BJSTP4IYCSJRQINP763IHO6ASL"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/NSCTOE3DITFICY2XKBYZ5WAF5TSQ52DM"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZZPHP2BJSTP4IYCSJRQINP763IHO6ASL"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/NSCTOE3DITFICY2XKBYZ5WAF5TSQ52DM"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2020/02/msg00019.html"},{"type":"WEB","url":"https://hg.reportlab.com/hg-public/reportlab/rev/51a521ad7dd3"},{"type":"WEB","url":"https://github.com/pypa/advisory-database/tree/main/vulns/reportlab/PYSEC-2019-117.yaml"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-qpg2-vx7j-3869"},{"type":"PACKAGE","url":"https://github.com/MrBitBucket/reportlab-mirror"},{"type":"WEB","url":"https://bitbucket.org/rptlab/reportlab/src/default/CHANGES.md"},{"type":"WEB","url":"https://bitbucket.org/rptlab/reportlab/issues/199/eval-in-colorspy-leads-to-remote-code"},{"type":"WEB","url":"https://access.redhat.com/security/cve/cve-2019-17626"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2020:0230"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2020:0201"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2020:0197"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2020:0195"},{"type":"WEB","url":"http://lists.opensuse.org/opensuse-security-announce/2020-02/msg00002.html"}],"affected":[{"package":{"name":"reportlab","ecosystem":"PyPI","purl":"pkg:pypi/reportlab"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.5.28"}]}],"versions":["2.0","2.3","2.4","2.5","2.6","2.7","3.0","3.1.44","3.1.8","3.2.0","3.3.0","3.4.0","3.5.0","3.5.1","3.5.10","3.5.11","3.5.12","3.5.13","3.5.16","3.5.17","3.5.18","3.5.19","3.5.2","3.5.20","3.5.21","3.5.23","3.5.26","3.5.4","3.5.5","3.5.6","3.5.8","3.5.9"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-qpg2-vx7j-3869/GHSA-qpg2-vx7j-3869.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},{"type":"CVSS_V4","score":"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"}]}