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. Learn more

Threat Intelligence

EPSS
7.47% (92nd 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 Learn

Learn about Arbitrary Code Execution vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-REPORTLAB-5914925
  • published22 Sept 2023
  • disclosed20 Sept 2023
  • creditRavi Prakash Giri

Introduced: 20 Sep 2023

CVE-2019-19450  (opens in a new tab)
CWE-91  (opens in a new tab)

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 Base Scores

version 3.1