Skip to content
Heist/ feed
Back to feed
Medium

nanosvg — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2026-88367

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.

Products
nanosvg
Affected versions
0.0~git20221204.9da543e-1, 0.0~git20231024.cb0ae54-1, 0.0~git20231122.706eb06-1, 0.0~git20231229.93ce879-1, 0.0~git20241219.ea6a6ac-1, 0.0~git20250928.6657908-1, 0.0~git20251121.5cefd98-1, 0.0~git20260518.48120e9-1, 0.0~git20260709.239e102-1
Fixed versions
Not specified
CVEs
CVE-2026-88367
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 03:30 UTC · Revision 1

Source evidence

UBUNTU-CVE-2026-88367

core-osv · Original source

Published 24 Sept 2026, 17:17 UTC

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.

osv:UBUNTU-CVE-2026-88367

nanosvg

Fixed versions: Not specified

nanosvg

Fixed versions: Not specified

nanosvg

Fixed versions: Not specified

Complete source record
{
  "id": "6f2fd00b29c3b0c34374e1b2118362f79431c6801c2d20cee60b3e9ceb7ae212",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-88367",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2026-88367",
    "summary": "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.",
    "evidence": "osv:UBUNTU-CVE-2026-88367",
    "products": [
      {
        "name": {
          "value": "nanosvg",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.0~git20221204.9da543e-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.0~git20231024.cb0ae54-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.0~git20231122.706eb06-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.0~git20231229.93ce879-1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "nanosvg",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.0~git20251121.5cefd98-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "0.0~git20260518.48120e9-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "0.0~git20260709.239e102-1",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "nanosvg",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.0~git20241219.ea6a6ac-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "0.0~git20250928.6657908-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "0.0~git20251121.5cefd98-1",
            "evidence": "/affected/2/versions"
          }
        ]
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "UBUNTU-CVE-2026-88367",
      "aliases": [
        "UBUNTU-CVE-2026-88367"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "nanosvg",
            "purl": "pkg:deb/ubuntu/nanosvg?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "0.0~git20221204.9da543e-1",
            "0.0~git20231024.cb0ae54-1",
            "0.0~git20231122.706eb06-1",
            "0.0~git20231229.93ce879-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-88367.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libnanosvg-dev",
                "binary_version": "0.0~git20231229.93ce879-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "nanosvg",
            "purl": "pkg:deb/ubuntu/nanosvg?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "0.0~git20251121.5cefd98-1",
            "0.0~git20260518.48120e9-1",
            "0.0~git20260709.239e102-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-88367.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libnanosvg-dev",
                "binary_version": "0.0~git20260709.239e102-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "nanosvg",
            "purl": "pkg:deb/ubuntu/nanosvg?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "0.0~git20241219.ea6a6ac-1",
            "0.0~git20250928.6657908-1",
            "0.0~git20251121.5cefd98-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-88367.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libnanosvg-dev",
                "binary_version": "0.0~git20251121.5cefd98-1"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T13:01:15.449878685Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-88367"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2026-88367",
        "https://www.cve.org/CVERecord?id=CVE-2026-88367"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-88367",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 361391,
  "published_at": "2026-09-24T17:17:00+00:00"
}