VDB
Sign up
MEDIUM

GHSA-qr6q-w4gj-3865

DOMPDF Arbitrary File Read

Quick fix

GHSA-qr6q-w4gj-3865 — dompdf/dompdf: upgrade to the fixed version with the command below.

composer require dompdf/dompdf:^0.6.1

Details

dompdf.php in dompdf before 0.6.1, when `DOMPDF_ENABLE_PHP` is enabled, allows context-dependent attackers to bypass chroot protections and read arbitrary files via a PHP protocol and wrappers in the input_file parameter, as demonstrated by a `php://filter/read=convert.base64-encode/resource` in the input_file parameter.

Are you affected?

Enter the version of the package you're using.

Affected packages

Packagist/dompdf/dompdf
Introduced in: 0.6.0Fixed in: 0.6.1
Fixcomposer require dompdf/dompdf:^0.6.1

References