CVE-2021-3838
criticalpriority · track · 40EPSS 0.014 · 73 %ileEUUSEPSS · scored 2026-10-27
DomPDF before version 2.0.0 is vulnerable to PHAR deserialization due to a lack of checking on the protocol before passing it into the file_get_contents() function. An attacker who can upload files of any type to the server can pass in the phar:// protocol to unserialize the uploaded file and instantiate arbitrary PHP objects. This can lead to remote code execution, especially when DOMPdf is used with frameworks with documented POP chains like Laravel or vulnerable developer code.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (3)
Products and version ranges known to be affected.
advisories (1)
Vendor and ecosystem advisories describing this.
- GHSA-577p-7j7h-2jgfDeserialization of Untrusted Data in dompdf/dompdf2024-11-15ghsa · osvUS
DomPDF before version 2.0.0 is vulnerable to PHAR (PHP Archive) deserialization due to a lack of checking on the protocol before passing it into the file_get_contents() function. An attacker who can upload files of any type to the server can pass in the phar:// protocol to unserialize the uploaded file and instantiate arbitrary PHP objects. This can lead to remote code execution, especially when DOMPdf is used with frameworks with documented POP chains like Laravel or vulnerable developer code.
also known as (3)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (11)
External citations — patches, advisories, analysis.
- https://github.com/dompdf/dompdf/commit/99aeec1efec9213e87098d42eb09439e7ee0bb6acnnvd
- https://github.com/dompdf/dompdf/releases/tag/v2.0.3Patchcnnvd
- https://huntr.com/bounties/0bdddc12-ff67-4815-ab9f-6011a974f48ecnnvd
- https://www.auscert.org.au/bulletins/ESB-2023.3978cnnvd
- https://www.auscert.org.au/bulletins/ESB-2023.4564.2cnnvd
- https://www.auscert.org.au/bulletins/ESB-2023.4642cnnvd
- https://www.auscert.org.au/bulletins/ESB-2023.4657cnnvd
- https://github.com/dompdf/dompdf/commit/99aeec1efec9213e87098d42eb09439e7ee0bb6aenisa_euvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan