CVE-2023-33733: Reportlab vulnerable to remote code execution
7.8
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.9614%
CWE
Published
6/5/2023
Updated
1/8/2025
KEV Status
No
Technology
Python
Technical Details
CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| reportlab | pip | <= 3.6.12 | 3.6.13 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from Reportlab's HTML-to-PDF processing using a sandboxed eval environment (rl_safe_eval). Key indicators:
- restricted_eval is the entry point for evaluating untrusted expressions in markup attributes
- rl_getattr's security checks were bypassed using a crafted string subclass
- rl_type restrictions were circumvented to access native type constructor These functions would appear in stack traces when processing malicious color attributes containing exploit payloads. The exploit writeup demonstrates direct manipulation of these sandbox components to achieve RCE.