CVE-2023-33733: Reportlab Remote Code Execution Vulnerability

reportlab Updated 07 Jul 2026

Summary

07/07/2026
Yes i
High
7.8

CVE-2023-33733: Reportlab vulnerable to remote code execution. Affects reportlab versions < 3.6.13. Fixed in 3.6.13. How to fix ↓

Also tracked for

The same CVE-2023-33733 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

Reportlab is a widely used Python library for generating PDFs. It provides a robust set of features for creating complex documents programmatically. However, versions up to and including 3.6.12 are vulnerable to a serious security flaw that allows attackers to execute arbitrary code through specially crafted PDF files.

Vulnerability Detail

The vulnerability in Reportlab arises from improper handling of crafted PDF files, which can lead to remote code execution. Attackers can exploit this flaw by supplying a malicious PDF, potentially compromising the system running the Reportlab library. This vulnerability is particularly concerning as it can lead to unauthorized access and manipulation of sensitive data, making it critical for users to address it promptly.

How To Fix

Latest published version: 5.1.0 as of 23 Oct 2026

pip install --upgrade "reportlab==5.1.0"

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

3.6.13

This is the first release that contains the fix.

pip install --upgrade "reportlab==3.6.13"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, avoid processing untrusted PDF files with Reportlab until you can update to the patched version. Always validate and sanitize input files before processing them.

Conclusion

The vulnerability CVE-2023-33733 in Reportlab poses a significant risk due to its potential for remote code execution. Users are strongly advised to update to version 3.6.13 or later to mitigate this risk. Additionally, implementing workarounds can help protect systems until the update is applied.

See every vulnerability recorded for reportlab →

Share this vulnerability

FAQ

CVE-2023-33733 is a vulnerability in Reportlab that allows remote code execution through crafted PDF files.

Reportlab versions up to and including 3.6.12 are affected by this vulnerability.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.

The CVSS score for this vulnerability is 7.8, indicating a high level of severity.

If you cannot update immediately, avoid processing untrusted PDF files and validate all input files before processing.

Related vulnerabilities

Recent vulnerabilities recorded for reportlab.

How To Fix

Latest published version: 5.1.0 as of 23 Oct 2026

pip install --upgrade "reportlab==5.1.0"

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

3.6.13

This is the first release that contains the fix.

pip install --upgrade "reportlab==3.6.13"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback