{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2021-3838","id":"CVE-2021-3838","title":"PHAR Deserialization in dompdf/dompdf","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 ","descriptionLong":"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.","published":"2024-11-15T10:51:36.766Z","updated":"2026-10-20T10:54:51.826375714Z","reserved":"2021-09-29T00:25:46.565Z","status":"Analyzed","rejected":false,"assigner":"@huntr_ai","metric":{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"NVD"},"metrics":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"NVD"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"CISA-ADP"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"OSV"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"GitHub"},{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"@huntr_ai"},{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"huntr.dev"}],"rating":"critical","products":["dompdf/dompdf"],"affectedProducts":[{"vendor":"dompdf","product":"dompdf/dompdf","defaultStatus":null,"versions":[{"version":"unspecified","lessThan":"2.0.0","status":"affected","versionType":"custom"}],"platforms":[]}],"packages":[{"ecosystem":"Packagist","name":"dompdf/dompdf","purl":"pkg:composer/dompdf/dompdf","ranges":["<2.0.0"],"fixed":["2.0.0"],"advisory":"GHSA-577p-7j7h-2jgf"}],"cwes":["CWE-502"],"aliases":["GHSA-577p-7j7h-2jgf"],"references":[{"url":"https://huntr.com/bounties/0bdddc12-ff67-4815-ab9f-6011a974f48e","tags":["Exploit","Issue Tracking","Patch","Third Party Advisory","fix","web"]},{"url":"https://github.com/dompdf/dompdf/commit/99aeec1efec9213e87098d42eb09439e7ee0bb6a","tags":["Patch","fix","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3838","tags":["advisory"]},{"url":"https://github.com/dompdf/dompdf","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total"},"epss":0.0142,"epssPercentile":0.73409,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2021-3838","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3838","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2021-3838","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-577p-7j7h-2jgf","ok":true,"note":"GHSA-577p-7j7h-2jgf"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2021-3838","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}