Skip to main content

xschem EUVDEUVD-2026-125402

| CVE-2026-128990 HIGH
Out-of-bounds Write (CWE-787)
2026-11-13 VulnCheck GHSA-m9hw-gj2g-rvwj
8.5
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft malicious ngspice .raw file
  2. Delivery
    Deliver to xschem/rawtovcd user
  3. Exploit
    Victim runs rawtovcd conversion
  4. Execution
    Unchecked index in read_dataset()
  5. Persist
    Heap out-of-bounds pointer write
  6. Impact
    Corrupt 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

xschem 2.9.9 ≤3.4.7

Affected Packages

euvd xschem no fix

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

Vendor (VulnCheck) PRIMARY 8.5 HIGH
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
vuln.today AI 7.8 HIGH

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.

3.1 AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
4.0 AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

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

Why It Matters

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.

Business Impact: Medium
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.1%
Top 98% exploitable
Prevalence
Low
niche open-source EDA schematic-capture tool for electronics designers
Social Media
1
Sightings
Data Quality
5 sources
Confidence: Medium
EUVD NVD CVE.org EPSS Vulnrichment CIRCL GitHub VulDB

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Defer
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact
Medium
Technical Impact
Total

Priority Score

42
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +42
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy