Advisory

GHSA-577p-7j7h-2jgf

Also known as: CVE-2021-3838

Summary

Deserialization of Untrusted Data in dompdf/dompdf

Details

DomPDF before version 2.0.0 is vulnerable to PHAR (PHP Archive) 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.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2024-11-15 12:31 UTC
Modified
2024-11-18 21:26 UTC

Affected packages and fixes

dompdf/dompdf

Packagist · All systems

Affected

  • introduced 0, fixed 2.0.0 (ecosystem)

Fixed versions

2.0.0

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences