CVE-2014-2383 in dompdf

LogPulse has a published detection rule for this CVE: it raises a notable when someone tries to exploit it.

What the vulnerability is

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.

Affected software: dompdf

Scores

What LogPulse has for it

How to mitigate it

Update dompdf to 0.6.1 or later and do not expose dompdf.php

Patch or upgrade. dompdf before 0.6.1 with DOMPDF_ENABLE_PHP reads any file through a php://filter wrapper in the input_file parameter of dompdf.php. The update closes it; the stand-alone dompdf.php should not be reachable at all.

Applies to: dompdf before 0.6.1 with dompdf.php reachable over the web.

  1. Find dompdf copies in the web roots and check their version (composer.lock or the VERSION file).
  2. Update dompdf to a current release (at least 0.6.1) with composer update dompdf/dompdf.
  3. Delete or block the stand-alone dompdf.php script and set DOMPDF_ENABLE_PHP (isPhpEnabled) to false.

Sources:

Source data: NIST NVD, CISA KEV and FIRST EPSS. LogPulse processes new CVEs every hour.

We build every detection with great care, but no two environments are the same. Log sources, parsing and configuration differ, so test a detection in your own environment before you rely on it.

Start free with LogPulse