{"id":"UBUNTU-CVE-2019-17626","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.","modified":"2026-02-04T03:11:39.792302Z","published":"2019-10-16T12:15:00Z","related":["USN-4273-1"],"upstream":["CVE-2019-17626"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2019-17626"},{"type":"REPORT","url":"https://bitbucket.org/rptlab/reportlab/src/default/CHANGES.md"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-4273-1"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2019-17626"}],"affected":[{"package":{"name":"python-reportlab","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/python-reportlab@3.3.0-1ubuntu0.1?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.3.0-1ubuntu0.1"}]}],"versions":["3.2.0-1build1","3.2.0-1build2","3.3.0-1"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"python-renderpm","binary_version":"3.3.0-1ubuntu0.1"},{"binary_version":"3.3.0-1ubuntu0.1","binary_name":"python-reportlab"},{"binary_name":"python-reportlab-accel","binary_version":"3.3.0-1ubuntu0.1"},{"binary_name":"python3-renderpm","binary_version":"3.3.0-1ubuntu0.1"},{"binary_name":"python3-reportlab","binary_version":"3.3.0-1ubuntu0.1"},{"binary_name":"python3-reportlab-accel","binary_version":"3.3.0-1ubuntu0.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2019/UBUNTU-CVE-2019-17626.json"}},{"package":{"name":"python-reportlab","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/python-reportlab@3.4.0-3ubuntu0.1?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.4.0-3ubuntu0.1"}]}],"versions":["3.4.0-3build1"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_version":"3.4.0-3ubuntu0.1","binary_name":"python-renderpm"},{"binary_name":"python-reportlab","binary_version":"3.4.0-3ubuntu0.1"},{"binary_name":"python-reportlab-accel","binary_version":"3.4.0-3ubuntu0.1"},{"binary_name":"python3-renderpm","binary_version":"3.4.0-3ubuntu0.1"},{"binary_version":"3.4.0-3ubuntu0.1","binary_name":"python3-reportlab"},{"binary_name":"python3-reportlab-accel","binary_version":"3.4.0-3ubuntu0.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2019/UBUNTU-CVE-2019-17626.json"}}],"schema_version":"1.7.3","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_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}