Skip to main content
← All vulnerabilities
CVE-2021-3838GHSA-577P-7J7H-2JGF

PHAR Deserialization in dompdf/dompdf

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 2.0.0
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: yes
  • Technical impact: total

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: yes · Technical impact: total

  3. Record last updated

Affected versions

  • dompdf dompdf/dompdf

    fixed in 2.0.0

  • dompdf/dompdfPackagist

    fixed in 2.0.0

References 2

huntr.com

GitHub · dompdf/dompdf