CVE-2021-3838
published critical CVSS 3.0 · 9.8PHAR Deserialization in dompdf/dompdf
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| dompdf | — | dompdf/dompdfunspecified to < 2.0.0 | Affected | Not stated | @huntr_ai |
| dompdf | — | dompdf0 to < 2.0.0 · Other versions: unknown | Affected | Not stated | CISA-ADP |
| Debian | bullseye | php-dompdf | Advisory build | 0.6.2+dfsg-3.1+deb11u1 | DLA-4427-1 |
| Ubuntu | bionic | php-dompdf | Advisory build | 0.6.2+dfsg-3ubuntu0.18.04.1~esm1 | USN-6277-1 |
| Debian | buster | php-dompdf | Advisory build | 0.6.2+dfsg-3+deb10u1 | DLA-3495-1 |
| Debian | buster | php-dompdf | Advisory build | 0.6.2+dfsg-3+deb10u2 | DLA-3495-2 |
| Ubuntu | focal | php-dompdf | Advisory build | 0.6.2+dfsg-3ubuntu0.20.04.1 | USN-6277-1 |
| Ubuntu | jammy | php-dompdf | Advisory build | 0.6.2+dfsg-3.1ubuntu0.1 | USN-6277-2 |
Show 1 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Ubuntu | xenial | php-dompdf | Advisory build | 0.6.1+dfsg-2ubuntu1+esm1 | USN-6277-1 |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.0
- Base score
- 9.8 / 10
- Severity
- critical
- Provider
- @huntr_ai · cna
- Vector string
- CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 9.8 | critical | CISA-ADP · adp | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| dompdf | dompdf/dompdf | unspecified to < 2.0.0 (affected · custom) | @huntr_ai · cna |
| dompdf | dompdf | 0 to < 2.0.0 (affected · custom)Default: unknown | CISA-ADP · adp |
Weaknesses
1- CWE-502 CWE-502 Deserialization of Untrusted Data
References
2Provider assertions
2@huntr_ai · cna
PHAR Deserialization in dompdf/dompdf
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- a2a56fd43eb3d6442a92c1506bc2f85081075beed9dbe21cf3740ba11eb3e841
- Ingested
- 23 Sep 2026, 07:55:59 UTC
- Source record
- Official CVE record