Arbitrary Code Execution Affecting reportlab package, versions [,3.5.31)


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team

    Threat Intelligence

    EPSS
    0.91% (84th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk ID SNYK-PYTHON-REPORTLAB-5914925
  • published 22 Sep 2023
  • disclosed 20 Sep 2023
  • credit Ravi Prakash Giri

How to fix?

Upgrade reportlab to version 3.5.31 or higher.

Overview

reportlab is a Python library for generating PDFs and graphics.

Affected versions of this package are vulnerable to Arbitrary Code Execution via the paraparser.py function. An attacker can inject malicious input in a unichar element in a crafted XML document.

Note: This is only exploitable if the attacker uses a crafted malicious html 'unichar' tag input and then uses the feature to generate a pdf of the document.

CVSS Scores

version 3.1
Expand this section

Snyk

Recommended
8.6 high
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    Low
  • Privileges Required (PR)
    None
  • User Interaction (UI)
    None
  • Scope (S)
    Unchanged
  • Confidentiality (C)
    High
  • Integrity (I)
    Low
  • Availability (A)
    Low
Expand this section

NVD

9.8 critical
Expand this section

SUSE

7.7 high
Expand this section

Red Hat

9.8 critical