Description
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.
Published: 2026-09-24
Score: 7.5 High
EPSS: < 1% Very Low
KEV: No
Impact: Denial of Service
Action: Apply Update
AI Analysis

Impact

NanoSVG commit 239e102ec contains an incorrect numeric conversion in the nsvg__pathArcTo() function. When an SVG file uses extreme arc radius values, the internal calculation can produce a NaN delta angle. The function then casts this NaN to an int without validation, causing undefined behavior and terminating the process, which results in a denial‑of‑service condition.

Affected Systems

The vulnerability resides in the NanoSVG library itself. Any software that incorporates NanoSVG to render SVG content—whether for desktop, mobile, or embedded devices—may be affected if it includes this buggy commit. Exact vendor or product information is not provided, so the impact is inferred to be widespread across any host that uses the affected version of the library.

Risk and Exploitability

The CVSS score of 7.5 indicates a high severity issue. The EPSS score of less than 1% shows that exploitation is unlikely but not impossible, and the vulnerability is not listed in the CISA KEV catalog. Attackers can deliver malicious SVG documents that trigger the crash from a remote source if the application accepts SVG input over the network, or locally if they can influence local file usage. The crash leads to process termination and loss of availability for the affected application.

Generated by OpenCVE AI on October 7, 2026 at 10:31 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update NanoSVG to a version that contains the commit fixing the NaN conversion bug
  • Validate or sanitize all SVG arc radius values before they reach NanoSVG, ensuring they are finite and within reasonable bounds
  • Run applications that use NanoSVG in isolated environments or employ process monitoring to restart the service quickly in case of crash

Generated by OpenCVE AI on October 7, 2026 at 10:31 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 07 Oct 2026 11:00:00 +0000

Type Values Removed Values Added
Title Incorrect Numeric Conversion Leading to Denial of Service in NanoSVG

Wed, 07 Oct 2026 08:30:00 +0000

Type Values Removed Values Added
Title Incorrect numeric conversion in NanoSVG leads to denial of service
Weaknesses CWE-704

Tue, 06 Oct 2026 18:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-681
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}


Sun, 27 Sep 2026 12:15:00 +0000

Type Values Removed Values Added
First Time appeared Memononen
Memononen nanosvg
Vendors & Products Memononen
Memononen nanosvg

Sat, 26 Sep 2026 03:15:00 +0000

Type Values Removed Values Added
Title Incorrect numeric conversion in NanoSVG leads to denial of service
Weaknesses CWE-704

Thu, 24 Sep 2026 15:45:00 +0000

Type Values Removed Values Added
Description 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.
References

Subscriptions

Memononen Nanosvg
cve-icon MITRE

Status: PUBLISHED

Assigner: mitre

Published:

Updated: 2026-10-06T17:42:44.309Z

Reserved: 2026-09-10T00:00:00.000Z

Link: CVE-2026-88366

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Deferred

Published: 2026-09-24T16:17:13.607

Modified: 2026-10-06T18:16:57.353

Link: CVE-2026-88366

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-07T10:45:07Z

Weaknesses
  • CWE-681

    Incorrect Conversion between Numeric Types