{"id":"CVE-2019-19450","kind":"vulnerability","aliases":["CVE-2019-19450","GHSA-pj98-2xf6-cff5"],"related":[],"title":"ReportLab vulnerable to remote code execution via paraparser","description":"paraparser in ReportLab before 3.5.31 allows remote code execution because start_unichar in paraparser.py evaluates untrusted user input in a unichar element in a crafted XML document with '<unichar code=\"' followed by arbitrary Python code, a similar issue to CVE-2019-17626.","summary":"ReportLab's paraparser evaluates Python code embedded in a crafted unichar element of an XML document it is given. An attacker who controls that XML can run arbitrary code on the server that renders it.","severity":"critical","cvss":9.8,"epss":0.05978,"exploited":false,"exploited_at":null,"products":[{"name":"reportlab","fixed":["3.5.31"],"affected":"< 3.5.31","ecosystem":"pypi"},{"name":"reportlab","fixed":["3.5.31"],"affected":"< 3.5.31","ecosystem":"vendor"},{"name":"debian linux","fixed":[],"affected":"= 10.0","ecosystem":"vendor"}],"ecosystems":["pypi","vendor"],"tags":["cwe-91","package","pdf-generation","python","reportlab"],"not_affected_if":["no-untrusted-markup","reportlab-3.5.31-or-later"],"how_to_check":"- Run `pip show reportlab` and check whether the version is below `3.5.31`\n- Search requirements files and lock files for `reportlab` to find the pinned version","fix":"- `reportlab` `3.5.31` or later","status":"open","published_at":"2023-09-20T14:15:12+00:00","first_seen_at":"2026-11-16T16:23:45+00:00","triaged_at":"2026-11-16T16:25:27+00:00","updated_at":"2026-11-16T16:38:06+00:00","category":"package","confidence":0.8,"triage":{"at":"2026-11-16T16:25:27Z","model":"claude-haiku-5-5","output":{"fix":"- `reportlab` `3.5.31` or later","reach":"internet","title":"ReportLab: crafted XML in paraparser lets attackers run Python code","impact":"high","summary":"ReportLab's paraparser evaluates Python code embedded in a crafted unichar element of an XML document it is given. An attacker who controls that XML can run arbitrary code on the server that renders it.","audience":"developers","category":"package","nicknames":[],"who_cares":["python","reportlab","pdf-generation"],"confidence":0.8,"fix_status":"available","needs_auth":"unknown","worst_case":"Arbitrary Python code runs on the server rendering the document","analyst_note":"","how_to_check":"- Run `pip show reportlab` and check whether the version is below `3.5.31`\n- Search requirements files and lock files for `reportlab` to find the pinned version","plain_action":"","product_name":"","needs_analyst":false,"not_affected_if":["reportlab-3.5.31-or-later","no-untrusted-markup"],"who_is_affected":"Applications that pass user-supplied or otherwise untrusted XML or markup to ReportLab's paraparser, for example to generate PDFs from user input. Systems that only render trusted, fixed templates are much less exposed. unknown whether other ReportLab code paths are affected.","user_interaction":"no","product_ecosystem":"","needs_special_setup":"unknown","severity_if_unknown":"critical"},"cost_usd":0.000711,"input_tokens":4592,"output_tokens":504,"severity_before":"critical"},"analyst_status":null,"analyst_note":null,"search":"'-17626':107C '-19450':11A,19A '-2019':10A,18A,106C '-91':25B '2xf6':15A '3.5.31':70C 'allow':71C 'arbitrari':59B,98C 'attack':52B 'cff5':16A 'code':5A,37B,60B,73C,95C,100C 'control':54B 'craft':41B,90C 'cve':9A,17A,105C 'cwe':24B 'debian':22A 'document':47B,92C 'element':43B,87C 'embed':38B 'evalu':35B,80C 'execut':6A,74C 'follow':96C 'generat':29B 'ghsa':13A 'ghsa-pj98-2xf6-cff5':12A 'given':50B 'input':83C 'issu':103C 'linux':23A 'packag':26B 'parapars':8A,34B,66C 'paraparser.py':79C 'pdf':28B 'pdf-gener':27B 'pj98':14A 'python':30B,36B,99C 'remot':4A,72C 'render':65B 'reportlab':1A,20A,21A,31B,32B,68C 'run':58B 'server':63B 'similar':102C 'start':76C 'unichar':42B,77C,86C,94C 'untrust':81C 'user':82C 'via':7A 'vulner':2A 'xml':46B,56B,91C","nicknames":[],"mitigations":[],"who_affected":"Applications that pass user-supplied or otherwise untrusted XML or markup to ReportLab's paraparser, for example to generate PDFs from user input. Systems that only render trusted, fixed templates are much less exposed. unknown whether other ReportLab code paths are affected.","tier":"B","verified":{},"analyst_revisit_at":null,"fix_status":"available","audience":"developers","plain_action":null,"pkeys":["debianlinux","linux","reportlab"],"ptokens":["debian","linux","reportlab"],"labels":["critical","cwe91","package","pdfgeneration","pypi","python","reportlab","vendor"],"campaign_type":null,"search_a":"'-19450':11A,19A '-2019':10A,18A '2xf6':15A 'cff5':16A 'code':5A 'cve':9A,17A 'debian':22A 'execut':6A 'ghsa':13A 'ghsa-pj98-2xf6-cff5':12A 'linux':23A 'parapars':8A 'pj98':14A 'remot':4A 'reportlab':1A,20A,21A 'via':7A 'vulner':2A","search_b":"'-91':25B 'arbitrari':59B 'attack':52B 'code':37B,60B 'control':54B 'craft':41B 'cwe':24B 'document':47B 'element':43B 'embed':38B 'evalu':35B 'generat':29B 'given':50B 'packag':26B 'parapars':34B 'pdf':28B 'pdf-gener':27B 'python':30B,36B 'render':65B 'reportlab':31B,32B 'run':58B 'server':63B 'unichar':42B 'xml':46B,56B","search_c":"'-17626':107C '-2019':106C '3.5.31':70C 'allow':71C 'arbitrari':98C 'code':73C,95C,100C 'craft':90C 'cve':105C 'document':92C 'element':87C 'evalu':80C 'execut':74C 'follow':96C 'input':83C 'issu':103C 'parapars':66C 'paraparser.py':79C 'python':99C 'remot':72C 'reportlab':68C 'similar':102C 'start':76C 'unichar':77C,86C,94C 'untrust':81C 'user':82C 'xml':91C","cause_entry":null,"cause_path":null,"disclosures_checked_at":null,"first_public_at":"2023-09-20T14:15:12+00:00","kev":null,"cvss_vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","cvss_by":"GitHub","poc_count":0,"sources":[{"source":"ghsa","external_id":"GHSA-pj98-2xf6-cff5","url":"https://github.com/advisories/GHSA-pj98-2xf6-cff5","severity":"critical","published_at":"2023-09-20T15:30:51+00:00","modified_at":"2026-11-16T16:21:29+00:00","first_seen_at":"2026-11-16T16:23:45+00:00","fetched_at":"2026-11-16T18:47:35+00:00","note":null},{"source":"nvd","external_id":"CVE-2019-19450","url":"https://nvd.nist.gov/vuln/detail/CVE-2019-19450","severity":null,"published_at":"2023-09-20T14:15:12+00:00","modified_at":"2026-06-17T02:26:40+00:00","first_seen_at":"2026-11-16T16:38:06+00:00","fetched_at":"2026-11-16T16:38:06+00:00","note":null}],"documents":[{"id":171311,"url":"https://github.com/MrBitBucket/reportlab-mirror/blob/master/CHANGES.md","title":"Release notes: github.com","kind":"release","source":"nvd","publisher":"vendor","text":null,"published_at":null,"relation":"fix","confidence":null,"note":"Release notes: github.com"},{"id":171312,"url":"https://lists.debian.org/debian-lts-announce/2023/09/msg00037.html","title":"Third-party advisory: lists.debian.org","kind":"advisory","source":"nvd","publisher":"research","text":null,"published_at":null,"relation":"advisory","confidence":null,"note":"Third-party advisory: lists.debian.org"},{"id":171313,"url":"https://pastebin.com/5MicRrr4","title":"Third-party advisory: pastebin.com","kind":"advisory","source":"nvd","publisher":"research","text":null,"published_at":null,"relation":"advisory","confidence":null,"note":"Third-party advisory: pastebin.com"}],"disclosures":[],"exploit_sources":[{"type":"epss","score":0.05978,"url":"https://api.first.org/data/v1/epss?cve=CVE-2019-19450"}],"notice":"Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai"}