CVE-2023-50251
published 2023-12-12CVE-2023-50251: 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…
PriorityP340high7.5CVSS 3.1
AVNACLPRNUINSUCNINAH
EPSS
0.88%
54.5th percentile
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
3 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | php-dompdf-svg-lib | < php-dompdf-svg-lib 0.5.0-3+deb12u1 (bookworm) | php-dompdf-svg-lib 0.5.0-3+deb12u1 (bookworm) |
| dompdf | php-svg-lib | < 0.5.1 | 0.5.1 |
| phenx | php-svg-lib | >= 0 < 0.5.1 | 0.5.1 |
CVSS provenance
nvdv3.17.5HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
osv7.5HIGH
vendor_debian5.3MEDIUM
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
GHSA
Denial of service caused by infinite recursion when parsing SVG document
ghsa·2023-12-13
CVE-2023-50251 [MEDIUM] CWE-674 Denial of service caused by infinite recursion when parsing SVG document
Denial of service caused by infinite recursion when parsing SVG document
### Summary
When parsing the attributes passed to a `use` tag inside an svg document, we 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.
### Details
Inside `Svg\Tag\UseTag::before`, php-svg-lib parses the attributes passed to an `use` tag inside an svg document. When it finds a `href` or `xlink:href`, it will try to retrieve the object representing this tag:
```
$link = $attributes["href"] ?? $attributes["xlink:href"];
$this->reference = $document->getDef($link);
if ($this->reference) {
$this->reference->before($attributes);
}
```
`$document->getDef` is implem
OSV
Denial of service caused by infinite recursion when parsing SVG document
osv·2023-12-13
CVE-2023-50251 [MEDIUM] Denial of service caused by infinite recursion when parsing SVG document
Denial of service caused by infinite recursion when parsing SVG document
### Summary
When parsing the attributes passed to a `use` tag inside an svg document, we 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.
### Details
Inside `Svg\Tag\UseTag::before`, php-svg-lib parses the attributes passed to an `use` tag inside an svg document. When it finds a `href` or `xlink:href`, it will try to retrieve the object representing this tag:
```
$link = $attributes["href"] ?? $attributes["xlink:href"];
$this->reference = $document->getDef($link);
if ($this->reference) {
$this->reference->before($attributes);
}
```
`$document->getDef` is implem
OSV
CVE-2023-50251: php-svg-lib is an SVG file parsing / rendering library
osv·2023-12-12·CVSS 7.5
CVE-2023-50251 [HIGH] CVE-2023-50251: php-svg-lib is an SVG file parsing / rendering library
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.
Debian
CVE-2023-50251: php-dompdf-svg-lib - php-svg-lib is an SVG file parsing / rendering library. Prior to version 0.5.1, ...
vendor_debian·2023·CVSS 5.3
CVE-2023-50251 [MEDIUM] CVE-2023-50251: php-dompdf-svg-lib - php-svg-lib is an SVG file parsing / rendering library. Prior to version 0.5.1, ...
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.
Scope: local
bookworm: resolved (fixed in 0.5.0-3+deb12u1)
sid: resolved (fixed in 0.5.1-1)
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
https://github.com/dompdf/php-svg-lib/commit/88163cbe562d9b391b3a352e54d9c89d02d77ee0https://github.com/dompdf/php-svg-lib/security/advisories/GHSA-ff5x-7qg5-vwf2https://github.com/dompdf/php-svg-lib/commit/88163cbe562d9b391b3a352e54d9c89d02d77ee0https://github.com/dompdf/php-svg-lib/security/advisories/GHSA-ff5x-7qg5-vwf2
2023-12-12
Published