{"answers":{"affected":"3 open source packages ship an affected version, including reportlab. It affects 1 product.","exploited":"There is no known exploitation of CVE-2019-17626 in the wild and no public exploit code.","fix":"Upgrade reportlab to 3.5.28 or later.","what":"CVE-2019-17626 is a critical code injection vulnerability in n/a, published on 16 Oct 2019. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2019-17626 and fix it if it is affected.\n\nWhat it is: CVE-2019-17626 is a critical code injection vulnerability in n/a, published on 16 Oct 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2019-17626 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- reportlab (PyPI): affected all versions; fixed in 3.5.28\n- reportlab (PyPI): affected all versions; fixed in 3.5.28\n- reportlab (PyPI): affected all versions; fixed in 3.5.28\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2019-17626/ (Markdown: https://insights.sbomify.com/CVE-2019-17626/index.md)","id":"CVE-2019-17626","markdown":"https://insights.sbomify.com/CVE-2019-17626/index.md","name":"CVE-2019-17626","record":{"aliases":["DEBIAN-CVE-2019-17626","DLA-2112-1","DSA-4663-1","GHSA-qpg2-vx7j-3869","MGASA-2020-0059","OESA-2021-1281","PYSEC-2019-117","RHSA-2020:0195","RHSA-2020:0197","RHSA-2020:0201","RHSA-2020:0230","SUSE-SU-2020:0255-1","SUSE-SU-2020:0324-1","UBUNTU-CVE-2019-17626","USN-4273-1","openSUSE-SU-2020:0160-1","openSUSE-SU-2024:11265-1","openSUSE-SU-2024:14160-1","openSUSE-SU-2026:12037-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Python PDF library","requires_auth":"none","summary":"Remote attackers can execute arbitrary Python code via crafted XML documents due to unsafe eval usage in ReportLab.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"reportlab","vendor":"reportlab"}],"cvss":{"score":9.8,"severity":"critical","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-91","name":"XML Injection"}],"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 '\u003cspan color=\"' followed by arbitrary Python code.","ecosystems":["PyPI","Red Hat:enterprise_linux:6::client","Red Hat:enterprise_linux:6::server","Red Hat:enterprise_linux:6::workstation","Red Hat:enterprise_linux:7::client","Red Hat:enterprise_linux:7::server","Red Hat:enterprise_linux:7::workstation","Red Hat:enterprise_linux:8::appstream","Red Hat:rhel_e4s:8.0::appstream","SUSE:Linux Enterprise Workstation Extension 12 SP4","SUSE:Linux Enterprise Workstation Extension 12 SP5","openSUSE:Leap 15.1","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"XML Injection in ReportLab","id":"CVE-2019-17626","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"code_injection","year":"2019"},"n_packages":34,"n_references":14,"next":{"headline":"Weak cryptography in n/a","id":"CVE-2019-17627"},"packages":[{"ecosystem":"PyPI","fixed":["3.5.28"],"introduced":["0"],"last_affected":[],"package":"reportlab","purl":null,"source":"GHSA-qpg2-vx7j-3869"},{"ecosystem":"PyPI","fixed":["3.5.28"],"introduced":["0"],"last_affected":[],"package":"reportlab","purl":"pkg:pypi/reportlab","source":"GHSA-qpg2-vx7j-3869"},{"ecosystem":"PyPI","fixed":["3.5.28"],"introduced":["0"],"last_affected":[],"package":"reportlab","purl":"pkg:pypi/reportlab","source":"PYSEC-2019-117"},{"ecosystem":"Red Hat:enterprise_linux:6::client","fixed":["0:2.3-3.el6_10.1"],"introduced":["0"],"last_affected":[],"package":"python-reportlab","purl":"pkg:rpm/redhat/python-reportlab","source":"RHSA-2020:0197"},{"ecosystem":"Red Hat:enterprise_linux:6::client","fixed":["0:2.3-3.el6_10.1"],"introduced":["0"],"last_affected":[],"package":"python-reportlab-debuginfo","purl":"pkg:rpm/redhat/python-reportlab-debuginfo","source":"RHSA-2020:0197"},{"ecosystem":"Red Hat:enterprise_linux:6::client","fixed":["0:2.3-3.el6_10.1"],"introduced":["0"],"last_affected":[],"package":"python-reportlab-docs","purl":"pkg:rpm/redhat/python-reportlab-docs","source":"RHSA-2020:0197"},{"ecosystem":"Red Hat:enterprise_linux:6::server","fixed":["0:2.3-3.el6_10.1"],"introduced":["0"],"last_affected":[],"package":"python-reportlab","purl":"pkg:rpm/redhat/python-reportlab","source":"RHSA-2020:0197"},{"ecosystem":"Red Hat:enterprise_linux:6::server","fixed":["0:2.3-3.el6_10.1"],"introduced":["0"],"last_affected":[],"package":"python-reportlab-debuginfo","purl":"pkg:rpm/redhat/python-reportlab-debuginfo","source":"RHSA-2020:0197"},{"ecosystem":"Red Hat:enterprise_linux:6::server","fixed":["0:2.3-3.el6_10.1"],"introduced":["0"],"last_affected":[],"package":"python-reportlab-docs","purl":"pkg:rpm/redhat/python-reportlab-docs","source":"RHSA-2020:0197"},{"ecosystem":"Red Hat:enterprise_linux:6::workstation","fixed":["0:2.3-3.el6_10.1"],"introduced":["0"],"last_affected":[],"package":"python-reportlab","purl":"pkg:rpm/redhat/python-reportlab","source":"RHSA-2020:0197"},{"ecosystem":"Red Hat:enterprise_linux:6::workstation","fixed":["0:2.3-3.el6_10.1"],"introduced":["0"],"last_affected":[],"package":"python-reportlab-debuginfo","purl":"pkg:rpm/redhat/python-reportlab-debuginfo","source":"RHSA-2020:0197"},{"ecosystem":"Red Hat:enterprise_linux:6::workstation","fixed":["0:2.3-3.el6_10.1"],"introduced":["0"],"last_affected":[],"package":"python-reportlab-docs","purl":"pkg:rpm/redhat/python-reportlab-docs","source":"RHSA-2020:0197"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:2.5-9.el7_7.1"],"introduced":["0"],"last_affected":[],"package":"python-reportlab","purl":"pkg:rpm/redhat/python-reportlab","source":"RHSA-2020:0195"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:2.5-9.el7_7.1"],"introduced":["0"],"last_affected":[],"package":"python-reportlab-debuginfo","purl":"pkg:rpm/redhat/python-reportlab-debuginfo","source":"RHSA-2020:0195"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:2.5-9.el7_7.1"],"introduced":["0"],"last_affected":[],"package":"python-reportlab-docs","purl":"pkg:rpm/redhat/python-reportlab-docs","source":"RHSA-2020:0195"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:2.5-9.el7_7.1"],"introduced":["0"],"last_affected":[],"package":"python-reportlab","purl":"pkg:rpm/redhat/python-reportlab","source":"RHSA-2020:0195"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:2.5-9.el7_7.1"],"introduced":["0"],"last_affected":[],"package":"python-reportlab-debuginfo","purl":"pkg:rpm/redhat/python-reportlab-debuginfo","source":"RHSA-2020:0195"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:2.5-9.el7_7.1"],"introduced":["0"],"last_affected":[],"package":"python-reportlab-docs","purl":"pkg:rpm/redhat/python-reportlab-docs","source":"RHSA-2020:0195"},{"ecosystem":"Red Hat:enterprise_linux:7::workstation","fixed":["0:2.5-9.el7_7.1"],"introduced":["0"],"last_affected":[],"package":"python-reportlab","purl":"pkg:rpm/redhat/python-reportlab","source":"RHSA-2020:0195"},{"ecosystem":"Red Hat:enterprise_linux:7::workstation","fixed":["0:2.5-9.el7_7.1"],"introduced":["0"],"last_affected":[],"package":"python-reportlab-debuginfo","purl":"pkg:rpm/redhat/python-reportlab-debuginfo","source":"RHSA-2020:0195"},{"ecosystem":"Red Hat:enterprise_linux:7::workstation","fixed":["0:2.5-9.el7_7.1"],"introduced":["0"],"last_affected":[],"package":"python-reportlab-docs","purl":"pkg:rpm/redhat/python-reportlab-docs","source":"RHSA-2020:0195"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:3.4.0-6.el8_1.2"],"introduced":["0"],"last_affected":[],"package":"python-reportlab","purl":"pkg:rpm/redhat/python-reportlab","source":"RHSA-2020:0201"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:3.4.0-6.el8_1.2"],"introduced":["0"],"last_affected":[],"package":"python-reportlab-debugsource","purl":"pkg:rpm/redhat/python-reportlab-debugsource","source":"RHSA-2020:0201"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:3.4.0-6.el8_1.2"],"introduced":["0"],"last_affected":[],"package":"python3-reportlab","purl":"pkg:rpm/redhat/python3-reportlab","source":"RHSA-2020:0201"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:3.4.0-6.el8_1.2"],"introduced":["0"],"last_affected":[],"package":"python3-reportlab-debuginfo","purl":"pkg:rpm/redhat/python3-reportlab-debuginfo","source":"RHSA-2020:0201"},{"ecosystem":"Red Hat:rhel_e4s:8.0::appstream","fixed":["0:3.4.0-6.el8_0.2"],"introduced":["0"],"last_affected":[],"package":"python-reportlab","purl":"pkg:rpm/redhat/python-reportlab","source":"RHSA-2020:0230"},{"ecosystem":"Red Hat:rhel_e4s:8.0::appstream","fixed":["0:3.4.0-6.el8_0.2"],"introduced":["0"],"last_affected":[],"package":"python-reportlab-debugsource","purl":"pkg:rpm/redhat/python-reportlab-debugsource","source":"RHSA-2020:0230"},{"ecosystem":"Red Hat:rhel_e4s:8.0::appstream","fixed":["0:3.4.0-6.el8_0.2"],"introduced":["0"],"last_affected":[],"package":"python3-reportlab","purl":"pkg:rpm/redhat/python3-reportlab","source":"RHSA-2020:0230"},{"ecosystem":"Red Hat:rhel_e4s:8.0::appstream","fixed":["0:3.4.0-6.el8_0.2"],"introduced":["0"],"last_affected":[],"package":"python3-reportlab-debuginfo","purl":"pkg:rpm/redhat/python3-reportlab-debuginfo","source":"RHSA-2020:0230"},{"ecosystem":"SUSE:Linux Enterprise Workstation Extension 12 SP4","fixed":["2.7-3.3.1"],"introduced":["0"],"last_affected":[],"package":"python-reportlab","purl":"pkg:rpm/suse/python-reportlab\u0026distro=SUSE%20Linux%20Enterprise%20Workstation%20Extension%2012%20SP4","source":"SUSE-SU-2020:0324-1"},{"ecosystem":"SUSE:Linux Enterprise Workstation Extension 12 SP5","fixed":["2.7-3.3.1"],"introduced":["0"],"last_affected":[],"package":"python-reportlab","purl":"pkg:rpm/suse/python-reportlab\u0026distro=SUSE%20Linux%20Enterprise%20Workstation%20Extension%2012%20SP5","source":"SUSE-SU-2020:0324-1"},{"ecosystem":"openSUSE:Leap 15.1","fixed":["3.4.0-lp151.3.3.1"],"introduced":["0"],"last_affected":[],"package":"python-reportlab","purl":"pkg:rpm/opensuse/python-reportlab\u0026distro=openSUSE%20Leap%2015.1","source":"openSUSE-SU-2020:0160-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["4.0.7-1.3"],"introduced":["0"],"last_affected":[],"package":"python-reportlab","purl":"pkg:rpm/opensuse/python-reportlab\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:14160-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["4.5.1-1.2"],"introduced":["0"],"last_affected":[],"package":"python-reportlab","purl":"pkg:rpm/opensuse/python-reportlab\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2026:12037-1"}],"prev":{"headline":"Rambox RCE Vulnerability","id":"CVE-2019-17625"},"products":["n/a"],"published":"2019-10-16","related":[{"cvss_score":7.8,"headline":"Reportlab vulnerable to remote code execution","id":"CVE-2023-33733","kev_date_added":null,"published":"2023-06-05"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"SUSE"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2024-08-05","vendors":["n/a"]},"summary":"Remote attackers can execute arbitrary Python code via crafted XML documents due to unsafe eval usage in ReportLab.","url":"https://insights.sbomify.com/CVE-2019-17626/"}