CVE Vulnerabilities

CVE-2023-23924

Incorrect Behavior Order: Authorization Before Parsing and Canonicalization

Published: Feb 01, 2023 | Modified: Nov 21, 2024
CVSS 3.x
9.8
CRITICAL
Source:
NVD
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS 2.x
RedHat/V2
RedHat/V3
Ubuntu
MEDIUM

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.

Weakness

If a web server does not fully parse requested URLs before it examines them for authorization, it may be possible for an attacker to bypass authorization protection.

Affected Software

Name Vendor Start Version End Version
Dompdf Dompdf_project 2.0.1 (including) 2.0.1 (including)
Php-dompdf Ubuntu bionic *
Php-dompdf Ubuntu trusty *
Php-dompdf Ubuntu upstream *
Php-dompdf Ubuntu xenial *

Potential Mitigations

References