Bug 2239920 (CVE-2019-19450) - CVE-2019-19450 python-reportlab: code injection in paraparser.py allows code execution
Summary: CVE-2019-19450 python-reportlab: code injection in paraparser.py allows code ...
Keywords:
Status: NEW
Alias: CVE-2019-19450
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2240153
Blocks: 2239922
TreeView+ depends on / blocked
 
Reported: 2023-09-20 19:46 UTC by Zack Miele
Modified: 2024-04-03 08:08 UTC (History)
2 users (show)

Fixed In Version: reportlab 3.5.31
Doc Type: If docs needed, set a value
Doc Text:
A code injection vulnerability was found in python-reportlab that may allow an attacker to execute code while parsing a unichar element attribute. An application that uses python-reportlab to parse untrusted input files may be vulnerable and could allow remote code execution.
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2023:5616 0 None None None 2023-10-10 16:14:41 UTC
Red Hat Product Errata RHSA-2023:5786 0 None None None 2023-10-17 13:57:07 UTC
Red Hat Product Errata RHSA-2023:5787 0 None None None 2023-10-17 13:52:32 UTC
Red Hat Product Errata RHSA-2023:5788 0 None None None 2023-10-17 13:52:04 UTC
Red Hat Product Errata RHSA-2023:5789 0 None None None 2023-10-17 13:52:07 UTC
Red Hat Product Errata RHSA-2023:5790 0 None None None 2023-10-17 13:57:04 UTC

Description Zack Miele 2023-09-20 19:46:20 UTC
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.

https://github.com/MrBitBucket/reportlab-mirror/blob/master/CHANGES.md
https://pastebin.com/5MicRrr4

Comment 3 Sandipan Roy 2023-09-22 04:29:19 UTC
Created python-reportlab tracking bugs for this issue:

Affects: fedora-all [bug 2240153]

Comment 7 Sandipan Roy 2023-09-22 11:05:58 UTC
To exploit the issue, a malicious user has to use a crafted malicious html 'unichar' tag input and then use the reportlab's feature to generate a pdf of the document and that can lead to a remote code execution hence this CVE marked as Important impact.

This vulnerability is similar to CVE-2019-17626.

Comment 8 errata-xmlrpc 2023-10-10 16:14:40 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

Via RHSA-2023:5616 https://access.redhat.com/errata/RHSA-2023:5616

Comment 9 errata-xmlrpc 2023-10-17 13:52:03 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.2 Advanced Update Support
  Red Hat Enterprise Linux 8.2 Update Services for SAP Solutions
  Red Hat Enterprise Linux 8.2 Telecommunications Update Service

Via RHSA-2023:5788 https://access.redhat.com/errata/RHSA-2023:5788

Comment 10 errata-xmlrpc 2023-10-17 13:52:06 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.1 Update Services for SAP Solutions

Via RHSA-2023:5789 https://access.redhat.com/errata/RHSA-2023:5789

Comment 11 errata-xmlrpc 2023-10-17 13:52:31 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support
  Red Hat Enterprise Linux 8.4 Update Services for SAP Solutions
  Red Hat Enterprise Linux 8.4 Telecommunications Update Service

Via RHSA-2023:5787 https://access.redhat.com/errata/RHSA-2023:5787

Comment 12 errata-xmlrpc 2023-10-17 13:57:03 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2023:5790 https://access.redhat.com/errata/RHSA-2023:5790

Comment 13 errata-xmlrpc 2023-10-17 13:57:06 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.6 Extended Update Support

Via RHSA-2023:5786 https://access.redhat.com/errata/RHSA-2023:5786


Note You need to log in before you can comment on or make changes to this bug.