MediumGHSA-qr6q-w4gj-3865CVE-2014-2383

DOMPDF Arbitrary File Read

Published 14 May 2022 · Updated 8 Dec 2024

Affected package

Affected
>=0.6.0 <0.6.1
Fixed in
0.6.1
Update to the fixed version for your release line, for example: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.

Is GHSA-qr6q-w4gj-3865 in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected dompdf/dompdf, and gives you the command that fixes it.

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.