Vulnerability · Published Dec 12, 2023 · Assigned by GitHub_M

CVE-2023-50251php-svg-lib possible DoS caused by infinite recursion when parsing SVG document

Medium 5.3

In plain English

A medium-severity security flaw in php-svg-lib from dompdf. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.9% (higher than 59% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.3Medium
Exploit odds (30 days)0.9%top 40.8% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official description

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12php-dompdf-svg-lib0.5.0-3+deb12u1DEBIAN-CVE-2023-50251
Debian:12php-dompdf-svg-lib0.5.0-3+deb12u1DSA-5642-1
Packagistphenx/php-svg-lib0.5.1GHSA-ff5x-7qg5-vwf2

Affected products (as reported)

VendorProductVersions
dompdf php-svg-lib < 0.5.1

Weakness: CWE-674 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

References