CVE Catalog

CVE-2026-88368

Unknown
Published: Translated: NVD NIST

Summary

NanoSVG commit 239e102ec contains an incorrect numeric conversion vulnerability in the rasterizer's nsvg__addActive() function. A specially crafted SVG document containing sufficiently large geometry coordinates can cause fixed-point-scaled edge coordinates to exceed the range representable by int.

Risk Assessment

The rasterizer subsequently converts these values to int without range validation, resulting in undefined behavior and possible 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 range validation for coordinates before converting to int in nsvg__addActive(). Consider limiting the size and complexity of SVG documents processed.

Other vulnerabilities in NanoSVG

See all
Original NVD description (English source)

NanoSVG commit 239e102ec contains an incorrect numeric conversion vulnerability in the rasterizer's nsvg__addActive() function. A specially crafted SVG document containing sufficiently large geometry coordinates can cause fixed-point-scaled edge coordinates to exceed the range representable by int. The rasterizer subsequently converts these values to int without range validation, resulting in undefined behavior and possible process termination, leading to denial of service.

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