Security Resilience

CVE-2023-23924

Access Control in Dompdf Project Dompdf 2.0.1

Public PoCAccess Control
Published
01 February 2023
Modified
21 November 2024
Patch / advisory
CVSS Score v3.1 10.0
Click a component to see what it means
Raw vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:L/A:H
EPSS Score 0.037 90th percentile
Risk Priority 95 floored blend · peak EPSS

CVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). EPSS, Forum of Incident Response and Security Teams (FIRST), epss.first.org. Risk Priority is our own derived reading, not an NVD score.

Summary

CVE-2023-23924 is a critical-severity Incorrect Behavior Order: Authorization Before Parsing and Canonicalization (CWE-551) vulnerability in Dompdf Project Dompdf. Its CVSS base score is 10.0 (Critical).

Operationally, exploitation aligns with the MITRE ATT&CK technique Exploit Public-Facing Application (T1190); ranked in the top 10% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog; a public proof-of-concept is referenced.

Deeper analysis AI-assisted summary

Synthesised by an AI model from the NVD description and linked references — a reading aid, not an authoritative source.

Dompdf 2.0.1, an HTML-to-PDF conversion library, contains a URI validation flaw that is bypassed during SVG parsing when an attacker supplies <image> tags containing uppercase letters. The bypass permits use of the phar:// wrapper and triggers arbitrary object unserialize on PHP versions prior to 8.0.0. The issue is tracked as CWE-551 and CWE-863 and carries a CVSS 3.1 score of 10.0.

An unauthenticated attacker who can supply a crafted SVG file to a Dompdf instance can invoke arbitrary URL schemes. On affected PHP releases this yields arbitrary deserialization, enabling at minimum file deletion and, depending on available classes, remote code execution.

The project’s security advisory and subsequent commits address the flaw by tightening URI validation; the fix is included in the v2.0.2 release. The associated EPSS score has remained near 0.5 with only minor fluctuation between its recorded peak and current value.

OWASP Top 10 for Web (2025)

EU & UK References

Vulnerability Data

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`…

more

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.

CWE(s)

Related Threats

MITRE ATT&CK Enterprise Techniques

MITRE ATT&CK v20.0

T1190 Exploit Public-Facing Application Initial Access
Adversaries may attempt to exploit a weakness in an Internet-facing host or system to initially access a network.
Derived from this CVE’s CWE(s) via the direct CWE→ATT&CK cross-walk.

CVEs Like This One

CVE-2022-28368Same product: Dompdf Project Dompdf
CVE-2023-50262Same product: Dompdf Project Dompdf
CVE-2023-24813Same product: Dompdf Project Dompdf
CVE-2026-28808Shared CWE-551, CWE-863
CVE-2026-39852Shared CWE-551, CWE-863
CVE-2026-2293Shared CWE-551, CWE-863
CVE-2026-44573Shared CWE-551, CWE-863
CVE-2026-50559Shared CWE-551, CWE-863
CVE-2026-57920Shared CWE-551
CVE-2026-87743Shared CWE-551

Affected Assets

dompdf project
dompdf
2.0.1

Mitigating Controls

Likely Mitigating Controls

Our mappings. Per-CVE control mapping for this CVE has not run yet; the list below is derived from the weakness types (CWEs) cited in the NVD entry.

addresses: CWE-863

Periodic review and update of procedures reduces incorrect authorization implementations over time.

addresses: CWE-863

Supervision identifies cases where authorization logic incorrectly permits unauthorized actions.

addresses: CWE-863

Defining permitted attribute values and auditing modifications reduces the chance of incorrect authorization outcomes due to tampered or missing labels.

addresses: CWE-863

The authorization process and usage restrictions help prevent incorrect authorization for remote access types.

addresses: CWE-863

Establishing configuration and connection requirements helps ensure correct rather than incorrect authorization for wireless access.

addresses: CWE-863

Establishing connection authorization processes for mobile devices helps ensure authorization decisions are correctly implemented rather than incorrect.

addresses: CWE-863

Monitoring account use, notifying on changes, and reviewing accounts for compliance corrects incorrect authorization assignments.

addresses: CWE-863

Ensures authorization decisions for external system use are correctly implemented and enforced.

Mitigating Controls (NIST CSF 2.0)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→CSF cross-walk — links open the control.

PR.PS-06 mostly match
blocks

Secure SDLC practices directly require correct authorization logic after parsing/canonicalization to prevent bypasses.

Mitigating Controls (ISO/IEC 27001:2022 Annex A)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→ISO cross-walk — links open the control.

finds

Security testing can detect this weakness but does not prevent it by itself.

blocks

A.8.3's access restriction mechanisms, including granular per-user and per-identity controls, directly enforce correct authorization checks, preventing exploitation of incorrect authorization flaws.

prevents

Training developers in secure coding practices can make some of them aware that authorization must follow URL canonicalization, but this is a subtle ordering defect that most awareness programmes do not name explicitly, and the practice is fallible — consistent with the A.6.3 vs CWE-598 partial anchor and the A.8.28 vs CWE-79 partial anchor on the same kind of developer-introduced code defect.

prevents

Secure coding practices directly address canonicalization and authorization sequencing flaws.

prevents

A.8.30 carries its effect through the contractual requirements it places on the supplier for secure design, coding and testing practices (8.25–8.29), which reduce ordinary software implementation defects in delivered code the same way those practices do; CWE-551 is an implementation defect in authorization-check ordering that secure coding and testing practices can catch, but the clause's reach is indirect and fallible, matching the A.8.30 -> CWE-134 anchor at `partial`.

finds

A.8.8's disclosure reach surfaces this ordering flaw only when it is a published vulnerability in a third-party web server or framework, leaving first-party instances unfound, so it finds a minority.

Hardening callouts derived

DISA STIG baselines are authored against specific weaknesses. Where this CVE cites a broad weakness class, the mapping is not asserted at that abstraction (owner ruling, 2026-09-25: grade only at Base and below), so no rule is shown here rather than a rule shown against the wrong grain.

  • No fine-grained STIG row for CWE-863, a class-level weakness, and none of its children carries one either.

References