CVE-2026-88366: NanoSVG NanoSVG vulnerability
NanoSVG commit 239e102ec contains an incorrect numeric conversion vulnerability in nsvgpathArcTo() when parsing SVG arc commands. A specially crafted SVG document containing extreme arc radius values can cause intermediate arc calculations to produce a NaN delta angle. The function subsequently converts this NaN value to int without validating that it is finite and representable, resulting in undefined behavior and process termination, leading to denial of service.
Affected Software
Event History
Frequently Asked Questions
What input is required to trigger the issue?
An attacker needs to provide a specially crafted SVG document with extreme arc radius values. The vulnerable code is reached while parsing SVG arc commands.
What is the practical impact of successful exploitation?
The malformed arc values can produce a NaN delta angle that is converted to an integer without validation. This causes undefined behavior and can terminate the process, resulting in denial of service.
Which code revision is identified as affected?
The affected revision identified in the available data is NanoSVG commit 239e102ec.