
CVE catalog
CVE-2021-3838
php-dompdf: CVE-2021-3838
- Severity
- Medium
- Published
- Source
- [NVD] · [CVE record]
- EPSS
- 1.43% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | php-dompdf | sid | 3.1.4+dfsg-2 | fixed |
| Debian | php-dompdf | bookworm | 2.0.3+dfsg-1+deb12u1 | fixed |
| Ubuntu | php-dompdf | 22.04 | 0.6.2+dfsg-3.1 | vulnerable |
| Ubuntu | php-dompdf | 22.04 | 0.6.2+dfsg-3.1ubuntu0.1 | fixed |
| Ubuntu | php-dompdf | pro | 0.6.2+dfsg-3 | vulnerable |
| Ubuntu | php-dompdf | pro | 0.6.2+dfsg-3ubuntu0.18.04.1~esm1 | fixed |
| Ubuntu | php-dompdf | 20.04 | 0.6.2+dfsg-3 | vulnerable |
| Ubuntu | php-dompdf | 20.04 | 0.6.2+dfsg-3ubuntu0.20.04.1 | fixed |
| Ubuntu | php-dompdf | 22.04 | 0.6.2+dfsg-3.1 | vulnerable |
| Ubuntu | php-dompdf | 22.04 | 0.6.2+dfsg-3.1ubuntu0.1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | php-dompdf | source | sid | 2.0.2+dfsg-1 | not yet assigned | Not reported | Not reported |
| Debian | php-dompdf | source | bookworm | 2.0.2+dfsg-1 | not yet assigned | Not reported | Not reported |
| Ubuntu | php-dompdf | deb | 22.04 | 0.6.2+dfsg-3.1ubuntu0.1 | Not reported | USN-6277-2 | Not reported |
| Ubuntu | php-dompdf | deb | pro | 0.6.2+dfsg-3ubuntu0.18.04.1~esm1 | Not reported | UBUNTU-CVE-2021-3838 | Not reported |
| Ubuntu | php-dompdf | deb | 20.04 | 0.6.2+dfsg-3ubuntu0.20.04.1 | Not reported | UBUNTU-CVE-2021-3838 | Not reported |
| Ubuntu | php-dompdf | deb | 22.04 | 0.6.2+dfsg-3.1ubuntu0.1 | Not reported | UBUNTU-CVE-2021-3838 | Not reported |
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [php-dompdf]Fixed
Details (2)
2.0.3+dfsg-1+deb12u1· all · bookwormFixed · Fixed:
2.0.2+dfsg-1dsa · php-dompdf · debian · bookworm; dsa · php-dompdf · debian · 12
2.0.3+dfsg-1+deb12u1· all · bookwormFixed · Fixed:
2.0.2+dfsg-1dsa · php-dompdf · debian · bookworm; dsa · php-dompdf · debian · 12
Observed:
References
- [https://osv.dev/vulnerability/DEBIAN-CVE-2021-3838]
- [https://osv.dev/vulnerability/DLA-3495-1]
- [https://osv.dev/vulnerability/DLA-3495-2]
- [https://osv.dev/vulnerability/DLA-4427-1]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2021-3838]
- [https://osv.dev/vulnerability/USN-6277-2]
- [https://security-tracker.debian.org/tracker/CVE-2021-3838]
[Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database]