CVE-2023-50262: Dompdf - Denial of Service
- Cve: CVE-2023-50262
- Name: Dompdf - Denial of Service
- Description: Dompdf is an HTML to PDF converter for PHP. When parsing SVG images Dompdf performs an initial validation to ensure that paths within the SVG are allowed. One of the validations is that the SVG document does not reference itself. However, prior to version 2.0.4, a recursive chained using two or more SVG documents is not correctly validated. Depending on the system configuration and attack pattern this could exhaust the memory available to the executing process and/or to the server itself. php-svg-lib, when run in isolation, does not support SVG references for `image` elements. However, when used in combination with Dompdf, php-svg-lib will process SVG images referenced by an `image` element. Dompdf currently includes validation to prevent self-referential `image` references, but a chained reference is not checked. A malicious actor may thus trigger infinite recursion by chaining references between two or more SVG images. When Dompdf parses a malicious payload, it will crash due after exceeding the allowed execution time or memory usage. An attacker sending multiple request to a system can potentially cause resource exhaustion to the point that the system is unable to handle incoming request. Version 2.0.4 contains a fix for this issue.
- Impact: Attackers can cause resource exhaustion leading to system crashes or denial of service by triggering infinite SVG reference chains.
- Remediation: Update to version 2.0.4 or later to fix the validation issue.
- Vulnerability impact: denial_of_service
- Requirement type: none
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 7.5
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Epss score: 0.01463
- Epss percentile: 0.743
- Assignee: [email protected]
- Published at: 2023-12-13T21:15:09Z
- Age in days: 1077
- Modified at: 2026-06-17T06:39:24Z
- Patch available: yes
- Public exploits total: 1
- References total: 3
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2023-50262
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: vulnerability type, requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-20 | Improper Input Validation |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/dompdf/dompdf/security/advisories/GHSA-3qx2-6f78-w2j2 | nvd | 2023-12-13 |
References
Same in every row:
- Source: nvd
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| dompdf_project:dompdf | <= 2.0.3 | no | nvd | /v1/products/dompdf_project/dompdf |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| dompdf/dompdf | commit, fix, package, security_advisory | yes | /v1/repositories/dompdf/dompdf |
Index
- Repositories: 18
- Repositories high signal: 15
- Packages: 1
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2023-12-13
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts