Vulnerabilities in pkg:pypi/reportlab
PACKAGECVE-2023-33733 is a HIGH (CVSS 7.8) remote code execution vulnerability (CWE-94: Improper Control of Generation of Code ('Code Injection')) affecting Reportlab libraries in the PyPI ecosystem. The issue involves reportlab vulnerable to remote code execution. Remediation is available by upgrading affected packages to version 3.6.13.
pkg:pypi/reportlab
Vulnerability advisories affecting package pkg:pypi/reportlab. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-9q9m-c65c-37pq | CVE-2023-33733 | HIGH | Reportlab vulnerable to remote code execution |
| GHSA-qpg2-vx7j-3869 | CVE-2019-17626 | CRITICAL | XML Injection in ReportLab |
| GHSA-mpvw-25mg-59vx | CVE-2020-28463 | HIGH | Server-side Request Forgery (SSRF) via img tags in reportlab |
| GHSA-pj98-2xf6-cff5 | CVE-2019-19450 | CRITICAL | ReportLab vulnerable to remote code execution via paraparser |
CVE-2023-33733 at a Glance
Security Impact
CVSS: 7.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H).
How to Fix CVE-2023-33733
To remediate this vulnerability, upgrade all affected Reportlab dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install reportlab>=3.6.13
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show reportlab
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2023-33733, inspect your installed packages using pip:
pip show reportlab
Analyze the terminal output to locate any version of Reportlab in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.6.13), your application is affected.
Note: The pip show reportlab command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-94: Improper Control of Generation of Code ('Code Injection'), where the product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment. In Reportlab, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2023-33733 Affected Reportlab Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
reportlab
|
PyPI |
< 3.6.13
|
3.6.13
|
References
Frequently Asked Questions
What is CVE-2023-33733?
Which Reportlab versions are affected?
What version fixes CVE-2023-33733?
Is reportlab affected?
What is the CVSS score of CVE-2023-33733?
What CWE is associated with CVE-2023-33733?
How can I check PyPI dependencies for CVE-2023-33733?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-9q9m-c65c-37pq",
"modified" : "2025-01-08T21:51:23Z",
"published" : "2023-06-05T18:30:27Z",
"aliases" : [ "CVE-2023-33733" ],
"summary" : "Reportlab vulnerable to remote code execution",
"details" : "Reportlab up to and including v3.6.12 allows attackers to execute arbitrary code via supplying a crafted PDF file.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "reportlab"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "3.6.13"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 3.6.12"
}
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-33733"
}, {
"type" : "WEB",
"url" : "https://github.com/c53elyas/CVE-2023-33733"
}, {
"type" : "WEB",
"url" : "https://lists.debian.org/debian-lts-announce/2024/10/msg00008.html"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/36WOY22ECJCPOXHVTNCHEWOQLL7JSWP4"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6ALE727IRACYBTTOFIFG57RS4OA2SHIJ"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/36WOY22ECJCPOXHVTNCHEWOQLL7JSWP4"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/6ALE727IRACYBTTOFIFG57RS4OA2SHIJ"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-94" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2023-08-28T17:16:39Z",
"nvd_published_at" : "2023-06-05T16:15:09Z"
}
}