DSA-5642-1
Active Unknownphp-dompdf-svg-lib - security update
Related CVEs
CVE identifiers linked by this publisher.
Publisher relationship details 3 records
Shared by all 3 CVE relationships
Exact relationship value
advisory_listExact field value
DSA/DLA structured-text list| CVE | Publisher evidence |
|---|---|
| CVE-2023-50251 | https://security-tracker.debian.org/tracker/CVE-2023-50251 |
| CVE-2023-50252 | https://security-tracker.debian.org/tracker/CVE-2023-50252 |
| CVE-2024-25117 | https://security-tracker.debian.org/tracker/CVE-2024-25117 |
Description
CVE-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 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
Read full publisher description 2113 characters
CVE-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 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. CVE-2023-50252: php-svg-lib is an SVG file parsing / rendering library. Prior to version 0.5.1, when handling `<use>` tag that references an `<image>` tag, it merges the attributes from the `<use>` tag to the `<image>` tag. The problem pops up especially when the `href` attribute from the `<use>` tag has not been sanitized. This can lead to an unsafe file read that can cause PHAR Deserialization vulnerability in PHP prior to version 8. Version 0.5.1 contains a patch for this issue. CVE-2024-25117: php-svg-lib is a scalable vector graphics (SVG) file parsing/rendering library. Prior to version 0.5.2, php-svg-lib fails to validate that font-family doesn't contain a PHAR url, which might leads to RCE on PHP < 8.0, and doesn't validate if external references are allowed. This might leads to bypass of restrictions or RCE on projects that are using it, if they do not strictly revalidate the fontName that is passed by php-svg-lib. The `Style::fromAttributes(`), or the `Style::parseCssStyle()` should check the content of the `font-family` and prevents it to use a PHAR url, to avoid passing an invalid and dangerous `fontName` value to other libraries. The same check as done in the `Style::fromStyleSheets` might be reused. Libraries using this library as a dependency might be vulnerable to some bypass of restrictions, or even remote code execution, if they do not double check the value of the `fontName` that is passed by php-svg-lib. Version 0.5.2 contains a fix for this issue.
No solution guidance was provided.
Affected packages
Each item is one publisher package occurrence. Shared details are shown once; differences stay with the occurrence.
Shared package data
Applies to this occurrence- Package role
- Source package
- Ecosystem
- Debian:bookworm
- Fixed version
- 0.5.0-3+deb12u1
Affected ranges and events
-
ECOSYSTEM
- Fixed at 0.5.0-3+deb12u1
-
1php-dompdf-svg-libSource package
CVSS assessments
Publisher supplied scores and vectors; these do not replace the advisory severity above.
No CVSS assessments were provided.
Publisher references
4- DSA-5642-1 https://www.debian.org/security/2024/dsa-5642
- CVE-2023-50251 https://security-tracker.debian.org/tracker/CVE-2023-50251
- CVE-2023-50252 https://security-tracker.debian.org/tracker/CVE-2023-50252
- CVE-2024-25117 https://security-tracker.debian.org/tracker/CVE-2024-25117
Provenance
- Schema version
- Unknown
- Parser version
- debian-dsa-dla-tracker/1
- Attribution
- Debian Security Team
- Severity origin
- publisher
| Kind | Locator | Source commit | Document hash | Parser | Fetched |
|---|---|---|---|---|---|
| structured_advisory_list | https://salsa.debian.org/security-tracker-team/security-tracker/-/raw/master/data/DSA/list | Unknown | 76a8292f3ca8af0aca97d7e7104f5d7f2ffe9c0d646c3e2a8fa76789e7e3b9c1 | debian-dsa-dla-tracker/1 | Unknown |