CVE-2021-3838
unknown
CVSS v3
—
CVSS v2
—
VIR risk
—
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.
Predictions
Exploit likelihood
30%
Patch ETA
—
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
Vendor advisory: debian — https://security-tracker.debian.org/tracker/CVE-2021-3838
OS impact
| OS | Version | Status | Fixed in |
|---|---|---|---|
| debian | bookworm | fixed | 2.0.2+dfsg-1 |
| debian | bullseye | fixed | 0.6.2+dfsg-3.1+deb11u1 |
| debian | sid | fixed | 2.0.2+dfsg-1 |
Package impact
| Ecosystem | Package | Vulnerable | Fixed |
|---|---|---|---|
| Packagist | dompdf/dompdf | <2.0.0 | 2.0.0 |
References
Verify integrity in audit chain (admin only). AS-IS.