py-svglib -- Multiple vulnerabilities
Dinu Gherman reports: The SVG <path> elliptical-arc parser in "svglib.utils.split_arc_values()" builds a regex with multiple empty-matchable float groups and two mandatory flag groups, then runs it under "re.finditer()". An arc argument that is a long run of digits (containing no 0/1 where a flag is expected) triggers catastrophic backtracking whose cost grows exponentially (~2x per ~4 extra digits). Reachable from …
Affected versions
- py311-svglib, py312-svglib, py313-svglib, py313t-svglib, py314-svglib, py314t-svglib, py315-svglib < 2.3.2
By system
0 still vulnerable, 2 fixed. Where VuXML applies (FreeBSD, DragonFly, FreeBSD's derivatives) a port is vulnerable while its version is in a range; pkgsrc says itself whether it lists a CVE of this advisory; OpenBSD and MidnightBSD keep no list this site reads, so their row is only an estimate: FreeBSD's ranges applied to upstream's version.
| System | Port | Version | State | Fixed |
|---|---|---|---|---|
| FreeBSD | converters/py-svglib | 2.4.0 | fixed | |
| NetBSD | graphics/py-svglib | 2.2.0 | not listed | |
| DragonFly | converters/py-svglib | 2.3.2 | fixed | (15 days after) |