CVE-2021-3838
CRITICAL9.8EPSS 6.9%php-dompdf - security update
發布日:2024/11/15修改日:2026/4/28
描述
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.
受影響套件(5)
- Debian/php-dompdffrom 0, < 0.6.2+dfsg-3.1+deb11u1
- Debian/php-dompdffrom 0, < 0.6.2+dfsg-3+deb10u1
- Debian/php-dompdffrom 0, < 0.6.2+dfsg-3+deb10u2
- Debian/php-dompdffrom 0, < 0.6.2+dfsg-3.1+deb11u1
- Packagist/dompdf/dompdffrom 0, < 2.0.0
CVSS 分數
| 來源 | 版本 | 嚴重程度 | 向量 |
|---|---|---|---|
| osv | CVSS 3.1 | CRITICAL9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
參考連結(5)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2021-3838
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2021-3838
- PATCHhttps://github.com/dompdf/dompdf
- WEBhttps://github.com/dompdf/dompdf/commit/99aeec1efec9213e87098d42eb09439e7ee0bb6a
- WEBhttps://huntr.com/bounties/0bdddc12-ff67-4815-ab9f-6011a974f48e