p PatchFirst

CVE-2023-23924

CVE-2023-23924 · URI validation failure on SVG parsing in Dompdf

This page contains facts from public vulnerability sources. Check the original advisory before updating.

Dompdf is an HTML to PDF converter. The URI validation on dompdf 2.0.1 can be bypassed on SVG parsing by passing `<image>` tags with uppercase letters. This may lead to arbitrary object unserialize on PHP < 8, through the `phar` URL wrapper. An attacker can exploit the vulnerability to call arbitrary URL with arbitrary protocols, if they can provide a SVG file to dompdf. In PHP versions before 8.0.0, it leads to arbitrary unserialize, that will lead to the very least to an arbitrary file deletion and even remote code execution, depending on classes that are available.

CVSS 10.0 · Critical · EPSS 3.6% · Fix available

Published
Updated

Stack: php

Affected products and versions

  • dompdf

    Versions
    • < 2.0.2: Affected

    No fix published

  • dompdf/dompdf Packagist

    Versions
    • v0.6.0
    • v0.6.1
    • v0.6.2
    • v0.7.0
    • v0.7.0-beta
    • v0.7.0-beta2
    • v0.7.0-beta3
    • v0.8.0
    • v0.8.1
    • v0.8.2
    • v0.8.3
    • v0.8.4
    • v0.8.5
    • v0.8.6
    • v1.0.0
    • v1.0.1
    • v1.0.2
    • v1.1.0
    • v1.1.1
    • v1.2.0
    • v1.2.1
    • v1.2.2
    • v2.0.0
    • v2.0.1
    Affected ranges
    • ECOSYSTEM: < 2.0.2

    Update to 2.0.2

Original sources

Check your server →