Description
dompdf.php in dompdf before 0.6.1, when DOMPDF_ENABLE_PHP is enabled, allows context-dependent attackers to bypass chroot protections and read arbitrary files via a PHP protocol and wrappers in the input_file parameter, as demonstrated by a php://filter/read=convert.base64-encode/resource in the input_file parameter.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 12 | php-dompdf | 0.6.1+dfsg-2 | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Exploit-DB 1
- dompdf 0.6.0 - 'dompdf.php?read' Arbitrary File Read EDB-33004 · webapps · Apr 24, 2014 · verified
GitHub 1 repository
-
Relativ3Pa1n/CVE-2014-2383-LFI-to-RCE-Escalation ★ 1 · Jan 26, 2023
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Automated scanner template
A ready-made Nuclei template detects this vulnerability automatically. Vulnerabilities with public scanner templates are typically probed across the internet soon after the template appears — exposed systems should be patched first.
- Dompdf < v0.6.0 - Local File Inclusion http/cves/2014/CVE-2014-2383.yaml
Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Packagist | dompdf/dompdf | >= 0.6.0, < 0.6.1 | 0.6.1 | GHSA-qr6q-w4gj-3865 |
References
- https://www.portcullis-security.com/security-research-and-downloads/security-advisories/cve-2014-2383/
- https://github.com/dompdf/dompdf/commit/23a693993299e669306929e3d49a4a1f7b3fb028
- 20140423 CVE-2014-2383 - Arbitrary file read in dompdf mailing-list
- 20140423 CVE-2014-2383 - Arbitrary file read in dompdf mailing-list
- https://explore.avertium.com/resource/lfi-rfi-escalation-to-rce