---
id: "CVE-2026-128990"
page: "https://infrastack.ai/live/CVE-2026-128990"
kind: "vulnerability"
aliases: ["CVE-2026-128990"]
title: "xschem: crafted ngspice raw file corrupts heap memory during conversion"
severity: "high"
cvss: 8.5
epss: null
exploited: false
status: "open"
category: "package"
products: []
ecosystems: []
tags: ["eda", "electronics-design", "ngspice", "package", "xschem"]
not_affected_if: ["no-rawtovcd-use", "trusted-input-only"]
published_at: "2026-11-13T15:17:45+00:00"
first_seen_at: "2026-11-13T15:46:20+00:00"
updated_at: "2026-11-13T15:48:15+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-128990", "first_seen_at": "2026-11-13T15:46:20+00:00"}]
exploit_sources: []
---

# xschem: crafted ngspice raw file corrupts heap memory during conversion

Link for people: https://infrastack.ai/live/CVE-2026-128990 (this .md is for agents)

xschem's rawtovcd tool has an unchecked index in read_dataset() that lets a crafted ngspice .raw file write attacker-chosen pointers past a heap buffer. An attacker who gets a team to convert such a file can corrupt heap memory, which can lead to code execution.

_Summary, check and fix written by a model from the sources; labelled as such._

## How to check

- Check the installed xschem version, for example with `xschem --version`, and see whether it falls in 2.9.9 through 3.4.7.
- Look for the rawtovcd tool in your install or build tree (src/rawtovcd.c).

## Fix

- Move xschem past `3.4.7`, the last affected version in the sources; the fixed version is not stated in the sources.

## Timeline

- 2026-11-13T15:46:20+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-128990

## Documents

- [advisory] Third-party advisory: www.vulncheck.com https://www.vulncheck.com/advisories/xschem-2.9.9-through-3.4.7-heap-out-of-bounds-write-via-rawtovcd-read-dataset
- [fix] Patch: github.com https://github.com/StefanSchippers/xschem/commit/e29af39c6133c36bdaf66603fd663231e75517f1

## From the sources

xschem 2.9.9 through 3.4.7 contains a heap out-of-bounds write vulnerability in read_dataset() in src/rawtovcd.c due to an unchecked variable index. Attackers can supply a crafted ngspice .raw file that, when converted with rawtovcd, writes file-controlled heap pointers at chosen signed offsets, corrupting heap memory.

---

_Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai_
