CVE-2022-2400: Dompdf before v2.0.0 vulnerable to chroot check bypass
5.3
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.46477%
CWE
Published
7/19/2022
Updated
7/14/2023
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
dompdf/dompdf | composer | < 2.0.0 | 2.0.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stemmed from improper URI validation
and chroot checks in multiple file handling functions
. The pre-patch implementations used realpath()
and string position checks that could be bypassed through path manipulation. The commit 99aeec1 replaced these checks with protocol-based validation
rules, indicating the original functions
were vulnerable to External Control of File Path (CWE-73). The affected functions
were directly involved in resource loading and had insecure path validation
mechanisms prior to the patch.