{"answers":{"affected":"3 open source packages ship an affected version, including reportlab. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-33733 exists.","fix":"Upgrade reportlab to 3.6.13 or later.","what":"CVE-2023-33733 is a high-severity code injection vulnerability in n/a, published on 5 Jun 2023. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2023-33733 and fix it if it is affected.\n\nWhat it is: CVE-2023-33733 is a high-severity code injection vulnerability in n/a, published on 5 Jun 2023. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-33733 exists.\n\nAffected packages and fixed versions:\n- reportlab (PyPI): affected all versions; fixed in 3.6.13\n- reportlab (PyPI): affected all versions; fixed in 3.6.13\n- reportlab (PyPI): affected all versions; fixed in 3.6.13\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-2023-33733/ (Markdown: https://insights.sbomify.com/CVE-2023-33733/index.md)","id":"CVE-2023-33733","markdown":"https://insights.sbomify.com/CVE-2023-33733/index.md","name":"CVE-2023-33733","record":{"aliases":["DEBIAN-CVE-2023-33733","DLA-3917-1","DSA-5791-1","GHSA-9q9m-c65c-37pq","OESA-2023-1456","PYSEC-2026-1871","SUSE-SU-2023:2561-1","SUSE-SU-2023:2688-1","UBUNTU-CVE-2023-33733","USN-6196-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Python PDF library","requires_auth":"none","summary":"Attackers can execute arbitrary code by providing a crafted PDF file to applications using the Reportlab library.","user_interaction":"required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"reportlab","vendor":"reportlab"}],"cvss":{"score":7.8,"severity":"high","source":"cisa-adp","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"description":"Reportlab up to v3.6.12 allows attackers to execute arbitrary code via supplying a crafted PDF file.","ecosystems":["PyPI","SUSE:Linux Enterprise Module for Package Hub 15 SP4","SUSE:Linux Enterprise Module for Package Hub 15 SP5","SUSE:Linux Enterprise Workstation Extension 12 SP5","openSUSE:Leap 15.4","openSUSE:Leap 15.5"],"exploits":{"exploitdb":0,"first_seen":"2023-05-30","github_poc":5,"max_poc_stars":118,"metasploit":0,"nuclei":0,"refs":[{"date":"2023-05-30T22:22:50Z","kind":"github_poc","ref":"https://github.com/c53elyas/CVE-2023-33733","stars":118,"title":"CVE-2023-33733 reportlab RCE"},{"date":"2024-05-25T18:47:39Z","kind":"github_poc","ref":"https://github.com/L41KAA/CVE-2023-33733-Exploit-PoC","stars":3,"title":null},{"date":"2024-03-18T09:54:02Z","kind":"github_poc","ref":"https://github.com/onion2203/Lab_Reportlab","stars":1,"title":"This lab was set up to test CVE-2023-33733"},{"date":"2024-04-22T09:32:54Z","kind":"github_poc","ref":"https://github.com/buiduchoang24/CVE-2023-33733","stars":1,"title":"This project aims at re-analyzing and PoC about CVE-2023-33733. Reportlab up to v3.6.12 allows attackers to execute arbitrary code via supplying a crafted PDF file. "},{"date":"2024-03-15T03:52:05Z","kind":"github_poc","ref":"https://github.com/hoangbui24/CVE-2023-33733","stars":0,"title":"Reportlab Library - Remote Code Execution"}],"tier":"weaponised"},"has_fix":true,"headline":"Reportlab vulnerable to remote code execution","id":"CVE-2023-33733","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"code_injection","year":"2023"},"n_packages":8,"n_references":3,"next":{"headline":"SQL injection in n/a","id":"CVE-2023-33734"},"packages":[{"ecosystem":"PyPI","fixed":["3.6.13"],"introduced":["0"],"last_affected":[],"package":"reportlab","purl":null,"source":"GHSA-9q9m-c65c-37pq"},{"ecosystem":"PyPI","fixed":["3.6.13"],"introduced":["0"],"last_affected":[],"package":"reportlab","purl":"pkg:pypi/reportlab","source":"GHSA-9q9m-c65c-37pq"},{"ecosystem":"PyPI","fixed":["3.6.13"],"introduced":["0"],"last_affected":[],"package":"reportlab","purl":"pkg:pypi/reportlab","source":"PYSEC-2026-1871"},{"ecosystem":"SUSE:Linux Enterprise Module for Package Hub 15 SP4","fixed":["3.4.0-150000.3.9.1"],"introduced":["0"],"last_affected":[],"package":"python-reportlab","purl":"pkg:rpm/suse/python-reportlab\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Package%20Hub%2015%20SP4","source":"SUSE-SU-2023:2561-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Package Hub 15 SP5","fixed":["3.4.0-150000.3.9.1"],"introduced":["0"],"last_affected":[],"package":"python-reportlab","purl":"pkg:rpm/suse/python-reportlab\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Package%20Hub%2015%20SP5","source":"SUSE-SU-2023:2561-1"},{"ecosystem":"SUSE:Linux Enterprise Workstation Extension 12 SP5","fixed":["2.7-3.13.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-2023:2688-1"},{"ecosystem":"openSUSE:Leap 15.4","fixed":["3.4.0-150000.3.9.1"],"introduced":["0"],"last_affected":[],"package":"python-reportlab","purl":"pkg:rpm/opensuse/python-reportlab\u0026distro=openSUSE%20Leap%2015.4","source":"SUSE-SU-2023:2561-1"},{"ecosystem":"openSUSE:Leap 15.5","fixed":["3.4.0-150000.3.9.1"],"introduced":["0"],"last_affected":[],"package":"python-reportlab","purl":"pkg:rpm/opensuse/python-reportlab\u0026distro=openSUSE%20Leap%2015.5","source":"SUSE-SU-2023:2561-1"}],"prev":{"headline":"Cross-site scripting in n/a","id":"CVE-2023-33732"},"products":["n/a"],"published":"2023-06-05","related":[{"cvss_score":9.8,"headline":"XML Injection in ReportLab","id":"CVE-2019-17626","kev_date_added":null,"published":"2019-10-16"}],"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":"SUSE","prefix":"SUSE"},{"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)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-01-08","vendors":["n/a"]},"summary":"Attackers can execute arbitrary code by providing a crafted PDF file to applications using the Reportlab library.","url":"https://insights.sbomify.com/CVE-2023-33733/"}