CVE Catalog

CVE-2026-88366

Unknown
Published: Translated: NVD NIST

Summary

NanoSVG commit 239e102ec contains an incorrect numeric conversion vulnerability in nsvg__pathArcTo() 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.

Risk Assessment

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. An attacker can remotely supply a malicious SVG file to crash a service that processes images.

Recommendation

Update NanoSVG to a version containing the fix, or add validation for NaN and infinity values before converting to int in nsvg__pathArcTo(). Consider limiting the range of arc radius values in processed SVG documents.

Other vulnerabilities in NanoSVG

See all
Original NVD description (English source)

NanoSVG commit 239e102ec contains an incorrect numeric conversion vulnerability in nsvg__pathArcTo() 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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS