Home / dompdf / php-svg-lib / CVE-2023-50251
CVE-2023-50251: is it exploited, and which versions of dompdf php-svg-lib are affected and fixed?
CVE-2023-50251 is an uncontrolled recursion vulnerability in dompdf php-svg-lib. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 16:39 UTC). Affected: phenx/php-svg-lib before 0.5.1 (GitHub advisory GHSA-ff5x-7qg5-vwf2). Fixed in 0.5.1 (GitHub advisory GHSA-ff5x-7qg5-vwf2). Severity: Medium (5.3, CVSS 3.1, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 16:39 UTC, CVE record November 19, 2026, 07:12 UTC and NVD November 19, 2026, 07:33 UTC.
What is CVE-2023-50251?
php-svg-lib possible DoS caused by infinite recursion when parsing SVG document
php-svg-lib is an SVG file parsing / rendering library. Prior to version 0.5.1, when parsing the attributes passed to a `use` tag inside an svg document, an attacker can cause the system to go to an infinite recursion. Depending on the system configuration and attack pattern this could exhaust the memory available to the executing process and/or to the server itself. An attacker sending multiple request to a system to render the above payload can potentially cause resource exhaustion to the point that the system is unable to handle incoming request. Version 0.5.1 contains a patch for this issue.
From the CVE record by GitHub_M, last updated May 22, 2025, 18:38 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| dompdf | php-svg-lib | < 0.5.1 |
As the CVE record by GitHub_M states it, last updated May 22, 2025. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| Packagist | phenx/php-svg-lib | < 0.5.1 | 0.5.1 | GHSA-ff5x-7qg5-vwf2 |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated December 13, 2023. Summary: Denial of service caused by infinite recursion when parsing SVG document.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| dompdf | php-svg-lib | before 0.5.1 | application |
NVD analysis (status Modified), last modified June 17, 2026, 06:39 UTC.
How severe is CVE-2023-50251?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 5.3 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L | GitHub_M |
| High 7.5 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2023-50251 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: poc; automatable: yes; technical impact: partial (CISA ADP, May 22, 2025)
- EPSS
- 0.88% probability of exploitation activity in the next 30 days, percentile 60.3 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-674 Uncontrolled Recursion
Where are the vendor advisories and references?
- https://github.com/dompdf/php-svg-lib/security/advisories/GHSA-ff5x-7qg5-vwf2 x_refsource_CONFIRM
- https://github.com/dompdf/php-svg-lib/commit/88163cbe562d9b391b3a352e54d9c89d02d77ee0 x_refsource_MISC
When was it published, and where is the official record?
- Reserved
- December 5, 2023
- Published
- December 12, 2023, 20:37 UTC
- CVE record updated
- May 22, 2025, 18:38 UTC by GitHub_M
- NVD
- Modified, last modified June 17, 2026, 06:39 UTC
- Last checked
- CVE list November 19, 2026, 07:12 UTC; NVD November 19, 2026, 07:33 UTC; KEV December 3, 2026, 16:39 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
What other CVEs affect php-svg-lib?
- Feb 21, 2024CVE-2024-25117 dompdf php-svg-lib: external Control of File Name or Path
- Dec 12, 2023CVE-2023-50252 dompdf php-svg-lib: external Control of System or Configuration Setting
Questions about CVE-2023-50251
Is CVE-2023-50251 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 16:39 UTC. FIRST's EPSS gives it a 0.88% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of dompdf php-svg-lib are affected by CVE-2023-50251?
phenx/php-svg-lib before 0.5.1, per the GitHub advisory GHSA-ff5x-7qg5-vwf2. The tables above give every range the sources list.
Which version fixes CVE-2023-50251?
0.5.1, per the GitHub advisory GHSA-ff5x-7qg5-vwf2. Check the vendor's advisory before you rely on it.
How severe is CVE-2023-50251?
Medium (5.3, CVSS 3.1, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2023-50251?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.