Miggo Logo

CVE-2023-33733: Reportlab vulnerable to remote code execution

7.8

CVSS Score
3.1

Basic Information

EPSS Score
0.9614%
Published
6/5/2023
Updated
1/8/2025
KEV Status
No
Technology
TechnologyPython

Technical Details

CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Package NameEcosystemVulnerable VersionsFirst Patched Version
reportlabpip<= 3.6.123.6.13

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from Reportlab's HTML-to-PDF processing using a sandboxed eval environment (rl_safe_eval). Key indicators:

  1. restricted_eval is the entry point for evaluating untrusted expressions in markup attributes
  2. rl_getattr's security checks were bypassed using a crafted string subclass
  3. 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.

Vulnerable functions

Only Mi**o us*rs **n s** t*is s**tion

WAF Protection Rules

WAF Rule

R*portl** up to *n* in*lu*in* v*.*.** *llows *tt**k*rs to *x**ut* *r*itr*ry *o** vi* supplyin* * *r**t** P** *il*.

Reasoning

T** vuln*r**ility st*ms *rom R*portl**'s *TML-to-P** pro**ssin* usin* * s*n**ox** *v*l *nvironm*nt (rl_s***_*v*l). K*y in*i**tors: *. r*stri*t**_*v*l is t** *ntry point *or *v*lu*tin* untrust** *xpr*ssions in m*rkup *ttri*ut*s *. __rl_**t*ttr__'s s**
CVE-2023-33733: Reportlab PDF Crafted RCE Flaw | Miggo