Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft malicious ngspice .raw file
-
DeliveryDeliver to xschem/rawtovcd user
-
ExploitVictim runs rawtovcd conversion
-
ExecutionUnchecked index in read_dataset()
-
PersistHeap out-of-bounds pointer write
-
ImpactCorrupt heap, hijack execution
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, write limits
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Privilege Escalation The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires a victim to run the rawtovcd converter (the xschem ngspice-.raw-to-VCD utility) on an attacker-controlled .raw file; that file must contain a variable record whose numeric index is negative or greater than or equal to nvars, which the pre-patch read_dataset() consumes unchecked and uses as a signed offset for a heap pointer write. Limiting factors: the attack is strictly local (AV:L) with no network exposure, and it needs the user to actively initiate the conversion of the malicious file (UI:P) - there is no silent/remote trigger. Affected only on xschem 2.9.9 through 3.4.7; updating to the patched build (vendor commit e29af39c) removes the flaw. |
| Impact | The CVSS 4.0 base score of 8.5 (High) is driven by full heap memory corruption (VC:H/VI:H/VA:H) but is materially constrained by the local vector (AV:L) and required passive user interaction (UI:P): exploitation depends on a victim running the rawtovcd converter against an attacker-supplied ngspice .raw file, not on any remote or network-reachable surface. There is no EPSS score, no CISA KEV listing, and no public exploit identified in the provided data, so there is no evidence of active exploitation or mass automatability - the vuln.today Decision label is 'this_week' (not 'act_now'/'emergency'), which is consistent with a credible, patch-available flaw that is not under observed attack. Net: this is a legitimately high-severity memory-corruption bug worth patching on a normal priority cycle, not a drop-everything emergency; the signals are consistent (no conflict), but note that EPSS and KEV data are absent rather than low, and no CVSS 3.1 vector was supplied - only the 4.0 vector. |
| Exploit ScenarioDerived | An attacker crafts a malicious ngspice .raw simulation file containing a variable record whose index is out of range and distributes it to an xschem user (e.g., as a shared simulation output). When the victim converts that file with the rawtovcd utility, the unchecked index in read_dataset() causes file-controlled heap pointers to be written at attacker-chosen signed offsets, corrupting heap memory and potentially leading to code execution. No public exploit was identified at time of analysis; exploitation requires the victim to perform the conversion locally. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 13, 2026
Heap out-of-bounds write in the xschem rawtovcd converter (versions 2.9.9 through 3.4.7) allows an attacker who supplies a crafted ngspice .raw file to corrupt heap memory when the victim runs the conversion, writing file-controlled heap pointers at chosen signed offsets and potentially gaining code execution at the converter's privilege level. The flaw is strictly local (CVSS 4.0 AV:L) and requires the user to actively convert the malicious file (UI:P), so there is no remote or silent trigger; the trigger is a variable record whose numeric index falls outside the range 0..nvars-1. An upstream vendor fix is committed; no public exploit was identified at time of analysis.
RemediationAI
Apply the upstream fix committed at https://github.com/StefanSchippers/xschem/commit/e29af39c6133c36bdaf66603fd663231e75517f1, which validates the sscanf result and rejects variable indices below 0 or at/above nvars in read_dataset(); a tagged release version that ships this commit is not identified in the available data, so confirm the fix is present in the build you deploy (patch status per vendor: available). The same commit also adds the read_xschem_file() guard in src/save.c. Because the flaw requires the victim to run rawtovcd on an attacker-supplied .raw file, deployments that cannot immediately rebuild should avoid converting ngspice .raw files received from untrusted sources, and where conversion automation exists, restrict which files are fed to rawtovcd - noting that this only reduces exposure and does not replace the patched code. No vendor-documented workaround beyond updating is recorded in the references.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The affected code is read_dataset() in src/rawtovcd.c, the standalone utility that converts ngspice binary/ASCII .raw simulation output into VCD waveform files. The parser reads variable declarations with sscanf(line, "%d %s", &i, varname) and then uses the parsed index i as a signed offset when storing a heap pointer for the waveform, without checking it against the number of variables (nvars). A .raw file carrying a negative index or an index >= nvars therefore causes an out-of-bounds write of a file-controlled pointer value at an attacker-chosen signed offset - CWE-787 (out-of-bounds write) - corrupting heap metadata or adjacent allocations. The vendor commit e29af39c6133c36bdaf66603fd663231e75517f1 fixes this by requiring sscanf to return 2 and rejecting indices outside [0, nvars), logging "bad variable record, index out of range" and continuing. The same commit also touches src/save.c, adding a guard in read_xschem_file() that skips embedded symbol blocks with no preceding instance, a separate robustness fix in the same changeset. The CPE range cpe:2.3:a:stefan_schippers:xschem identifies the xschem project itself rather than any external library dependency.
Know when Xschem gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Local file-parsing flaw triggered when the victim runs rawtovcd on a malicious file, so AV:L/UI:R; no authentication needed (PR:N); controlled heap write enables code execution, giving C/I/A High.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
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.
Executive ViewAI
CVE-2026-128990 is a heap memory corruption flaw in xschem's rawtovcd converter that could allow a malicious file to compromise a user's workstation when opened. While exploitation requires a user to manually convert a crafted file, a successful attack could lead to code execution with the victim's privileges, affecting engineering and design teams who use this tool for circuit simulation workflows.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.
Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.
EUVD-2026-125402
GHSA-m9hw-gj2g-rvwj
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB