Description
NanoSVG 239e102ec contains an incorrect numeric conversion vulnerability in nsvg__curveDivs() during SVG stroke rasterization. A specially crafted SVG document containing an extremely large stroke-width can cause floating-point rounding to produce a zero subdivision angle. The subsequent arc division yields infinity, which is converted to int without range validation, resulting in undefined behavior and process termination, leading to denial of service.
Published: 2026-09-24
Score: 6.5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Denial of Service
Action: Assess Impact
AI Analysis

Impact

NanoSVG 239e102ec contains an incorrect numeric conversion flaw during SVG stroke rasterization. A specially crafted SVG file with an extremely large stroke-width triggers floating‑point rounding that produces a zero subdivision angle. The resulting arc division yields an infinite value, which is cast to an integer without range validation, causing undefined behaviour and terminating the process. The weakness reflects improper input validation.

Affected Systems

NanoSVG library, commit 239e102ec. No specific version range is listed in the advisory.

Risk and Exploitability

The vulnerability is contingent on the application loading the vulnerable SVG image. Attackers can supply the malicious SVG to trigger the crash, potentially from a remote or local context depending on how the library is used. The CVSS score of 6.5 indicates medium severity, and the EPSS score of <1% suggests low exploitation probability; the lack of a KEV listing indicates it has not yet become a widely exploited vulnerability. The primary impact is denial of service through application termination.

Generated by OpenCVE AI on September 26, 2026 at 04:04 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to a NanoSVG release that includes the numeric conversion fix.
  • If an upgrade is not possible, validate or sanitize incoming SVG files and reject those with stroke-width values exceeding a safe threshold.
  • Implement defensive checks in the application to detect and guard against undefined behaviour in the rasterization routine.

Generated by OpenCVE AI on September 26, 2026 at 04:04 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

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 04:30:00 +0000

Type Values Removed Values Added
Title Denial of Service via Incorrect Numeric Conversion in NanoSVG Stroke Rasterization

Fri, 25 Sep 2026 18:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-681
Metrics cvssV3_1

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

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Thu, 24 Sep 2026 16:30:00 +0000

Type Values Removed Values Added
Description NanoSVG 239e102ec contains an incorrect numeric conversion vulnerability in nsvg__curveDivs() during SVG stroke rasterization. A specially crafted SVG document containing an extremely large stroke-width can cause floating-point rounding to produce a zero subdivision angle. The subsequent arc division yields infinity, which is converted to int without range validation, 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-09-25T17:58:02.888Z

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

Link: CVE-2026-88367

cve-icon Vulnrichment

Updated: 2026-09-25T17:57:34.582Z

cve-icon NVD

Status : Deferred

Published: 2026-09-24T17:17:06.973

Modified: 2026-09-25T18:17:31.597

Link: CVE-2026-88367

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-27T11:45:25Z

Weaknesses
  • CWE-681

    Incorrect Conversion between Numeric Types