p PatchFirst

PatchFirst · Свежие уязвимости

Уязвимости phenx/php-svg-lib

За последние 30 дней в phenx/php-svg-lib опубликовано уязвимостей: 0; в каталоге KEV: 0.

Фильтры уязвимостей
Сбросить фильтры

Уязвимостей: 3

  1. GHSA-97m3-52wr-xvv2

    Критический · CVSS 10Есть исправление

    Dompdf's usage of vulnerable version of phenx/php-svg-lib leads to restriction bypass and potential RCE

    ### Summary A lack of sanitization/check in the font path returned by php-svg-lib, in the case of a inline CSS font defined, that will be used by Cpdf to open a font will be passed to a `file_exists` call, which is sufficient to trigger metadata unserializing on a PHAR file, through the phar:// URL handler on PHP < 8.0. On other versions, it might be used as a way to get a SSRF through, for example, ftp, not restricted by authorized protocols configured on dompdf. ### Details The problem lies on the `openFont` function of the `lib/Cpdf.php` library, when the `$font` variable passed by php-svg-lib isn't checked correctly. A path is crafted th

    • Обновитесь до 0.5.2
    Опубликовано Обновлено
  2. CVE-2024-25117

    Средний · CVSS 6.8EPSS 0,93%Есть исправление

    php-svg-lib lacks path validation on font through SVG inline styles

    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 lib

    • Обновитесь до 0.5.2
    Опубликовано Обновлено
  3. CVE-2023-50251

    Средний · CVSS 5.3EPSS 0,88%Есть исправление

    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.

    • Обновитесь до 0.5.1

Проверьте свой сервер

Сопоставьте установленный стек и версии со свежими базами уязвимостей.

Проверьте свой сервер →