FreeBSD : py-svglib -- Multiple security issues (638c03f4-eb52-11f1-aff8-901b0edee044)

high Nessus Plugin ID 388659

Synopsis

The remote FreeBSD host is missing one or more security-related updates.

Description

The version of FreeBSD installed on the remote host is prior to tested version. It is, therefore, affected by a vulnerability as referenced in the 638c03f4-eb52-11f1-aff8-901b0edee044 advisory.

Dinu Gherman reports:
A long transform attribute could make convertTransform() take time quadratic in its length: each pair of brackets rebuilt the whole string, and the result was checked only afterwards, so 2 MB of brackets, which a 3 KB .svgz file holds, kept svg2rlg() busy for minutes (CWE-407, GHSA-43qg-v5jj-vw5c). It is read in one pass now, with the same result. Thanks to @lanjianchun for the report.

An <image> that refers to a fragment of the document, with href=#id, was rendered again without the checks that <use> has had since 2.3.1: a cycle, such as an <svg> that contains an <image> that refers to it, ended in RecursionError, and a few <image> elements that refer to each other, each level to the one before it twice, took time that doubled with every level, so that 2 KB took hours (CWE-400, CWE-674, GHSA-cmj4-5g24-pp37, reported again as GHSA-4fr5-v6hm-mwjg). A cycle is now skipped and an error is logged, and all <image> targets count against the same budgets as <use> (MAX_USE_EXPANSIONS, MAX_USE_CLONED_ELEMENTS). An <image> that refers to an element that is not defined yet is skipped too, and not an AttributeError. Thanks to @GeniusKangaroo and @john-lawniczak for the reports.

An image embedded as a data:image/png or data:image/jpeg URI was opened by Pillow with the decoder chosen from its bytes, not from its label, so a PostScript file made it run Ghostscript, where that is installed, when the PDF was drawn (CWE-20, CWE-94, GHSA-h5r7-mh88-vjm4). Such an image is now decoded as a PNG or a JPEG only (DATA_URI_IMAGE_FORMATS), and anything else is refused with the UnidentifiedImageError that data that is not an image already got. Thanks to @superbot-helper for the report.


Tenable has extracted the preceding description block directly from the FreeBSD security advisory.

Note that Nessus has not tested for this issue but has instead relied only on the application's self-reported version number.

Solution

Update the affected packages.

See Also

http://www.nessus.org/u?2a229a36

http://www.nessus.org/u?b2efa570

http://www.nessus.org/u?c21dd669

http://www.nessus.org/u?d35fe0ec

Plugin Details

Severity: High

ID: 388659

File Name: freebsd_pkg_638c03f4eb5211f1aff8901b0edee044.nasl

Version: 1.1

Type: Local

Published: 11/29/2026

Updated: 11/29/2026

Supported Sensors: Nessus

Vulnerability Information

CPE: cpe:/o:freebsd:freebsd, p-cpe:/a:freebsd:freebsd:py311-svglib, p-cpe:/a:freebsd:freebsd:py312-svglib, p-cpe:/a:freebsd:freebsd:py313-svglib, p-cpe:/a:freebsd:freebsd:py313t-svglib, p-cpe:/a:freebsd:freebsd:py314-svglib, p-cpe:/a:freebsd:freebsd:py314t-svglib, p-cpe:/a:freebsd:freebsd:py315-svglib

Required KB Items: Host/local_checks_enabled, Host/FreeBSD/release, Host/FreeBSD/pkg_info

Exploit Ease: No known exploits are available

Patch Publication Date: 11/28/2026

Vulnerability Publication Date: 11/27/2026