CVE-2014-5013
Description
DOMPDF before 0.6.2 allows remote code execution, a related issue to CVE-2014-2383.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
DOMPDF before 0.6.2 allows remote code execution via unsanitized PHP code in CSS/HTML, a variant of CVE-2014-2383.
DOMPDF version 0.6.1 and earlier are affected by a remote code execution vulnerability, designated CVE-2014-5013. This is a complement to CVE-2014-2383, which originally addressed arbitrary file read via PHP stream filters [2][3]. The root cause lies in unsanitized processing of PHP code within user-supplied CSS or HTML, allowing an attacker to inject arbitrary PHP scripts that are executed during PDF generation.
Exploitation requires that DOMPDF is configured to allow PHP execution, typically by setting the DOMPDF_ENABLE_PHP option to true. Under such configurations, an attacker can craft a malicious HTML document containing PHP code in style directives or other embedded content. When the victim's application generates a PDF from this input, the injected PHP code is executed on the server [3][4]. The vulnerability is rated with variable severity: low by default, but critical when PHP execution is enabled [3].
Successful exploitation leads to full remote code execution with the privileges of the web server user. An attacker can perform arbitrary actions, including file manipulation, data exfiltration, or lateral movement within the network [2][4].
The vulnerability is patched in DOMPDF version 0.6.2 [1][3]. All users are strongly advised to upgrade immediately. Additionally, administrators should review the security recommendations provided in the DOMPDF wiki to minimize attack surface, such as disabling PHP execution unless absolutely necessary [3].
AI Insight generated on May 21, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
dompdf/dompdfPackagist | >= 0.6, < 0.6.2 | 0.6.2 |
Affected products
2- DOMPDF/DOMPDFdescription
Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
5- github.com/advisories/GHSA-jjwj-w3gc-gcw4ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2014-5013ghsaADVISORY
- github.com/FriendsOfPHP/security-advisories/blob/master/dompdf/dompdf/CVE-2014-5013.yamlghsaWEB
- github.com/dompdf/dompdf/compare/v0.6.1...v0.6.2ghsax_refsource_MISCWEB
- github.com/dompdf/dompdf/releases/tag/v0.6.2ghsax_refsource_MISCWEB
News mentions
0No linked articles in our index yet.