CVE-2023-23924

URI validation failure on SVG parsing in Dompdf

Published Jan 31, 2023 CVSS 3.1 · 10 Critical EPSS 3.7% KEV · Not listed
Description
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.

Analysis

No analysis available yet

Remediation

No remediation available yet

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-3cw5-7cxw-v5qg Dompdf vulnerable to URI validation failure on SVG parsing
History
Type Values Removed Values Added
Metrics epss

{'score': 0.54785}

epss

{'score': 0.57103}

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Weaknesses
  • CWE-551

    Incorrect Behavior Order: Authorization Before Parsing and Canonicalization

  • CWE-863

    Incorrect Authorization

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Mar 10, 2025, 9:17 PM
Reserved
Jan 19, 2023, 9:12 PM
Status
Modified
Published
Feb 1, 2023, 12:15 AM
Modified
Jun 17, 2026, 5:38 AM