Skip to main content
Vulnerability Database/CVE-2026-105043

CVE-2026-105043: MathWorks Simulink RCE Vulnerability

CVE-2026-105043 is a remote code execution flaw in MathWorks Simulink that allows hidden malicious blocks in .slx files to execute code without user visibility. This post explains its impact, affected versions, and mitigation steps.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-105043 Overview

CVE-2026-105043 affects MathWorks Simulink versions before R2026b. A crafted .slx model file can contain blocks that remain hidden from the Simulink Editor interface but still execute code when the model is loaded or run. The flaw is categorized under [CWE-451] (User Interface Misrepresentation of Critical Information), meaning the editor fails to display content that influences execution behavior. An engineer reviewing a shared model has no visual indication that malicious blocks exist within the file.

Critical Impact

An attacker who distributes a trojanized .slx file can trigger code execution on the engineer's workstation while concealing the malicious logic from the Simulink Editor view.

Affected Products

  • MathWorks Simulink versions prior to R2026b
  • Simulink .slx model file format
  • MATLAB environments embedding affected Simulink releases

Discovery Timeline

Technical Details for CVE-2026-105043

Vulnerability Analysis

Simulink models are stored in .slx files, which are ZIP archives containing XML descriptions of blocks, signals, and configuration data. The Simulink Editor renders a visual representation of these blocks when a user opens the model. The vulnerability arises because the editor's rendering logic and the simulation runtime consume the model definition inconsistently. Blocks can be crafted so that the editor omits them from the diagram while the simulation engine still instantiates and executes them.

Execution occurs through standard Simulink features such as callback properties, MATLAB Function blocks, or S-Function blocks that run user-controlled MATLAB code during model initialization or simulation. Because the hidden blocks do not appear in the canvas, a reviewer cannot inspect or remove them through normal workflows. The attack chain fits the user-interface misrepresentation pattern defined in [CWE-451].

Root Cause

The root cause is a divergence between the editor's view model and the runtime's execution model. The editor filters or fails to display certain block definitions that the runtime still treats as valid executable components. There is no integrity check that forces visibility of every executable block in the loaded file.

Attack Vector

Exploitation requires local file handling and user interaction. The attacker delivers a crafted .slx file through email, a shared repository, a vendor exchange, or a project archive. The victim opens the file in Simulink and runs or compiles the model, at which point the concealed blocks execute MATLAB code with the user's privileges. The attack complexity is high because the attacker must craft a file that renders cleanly in the editor while still triggering runtime execution of hidden blocks.

No verified exploit code is published. The disclosure describes the mechanism rather than providing a weaponized sample. See the Alexander Boll Vulnerability Disclosure for the technical write-up.

Stop Remote Code Execution Before It Runs

Singularity™ Endpoint detects and blocks exploit attempts at machine speed, including zero-days and novel attack techniques.

Stop Exploit Attempts

Detection Methods for CVE-2026-105043

Indicators of Compromise

  • .slx files received from untrusted sources that spawn child processes such as cmd.exe, powershell.exe, or /bin/sh under the MATLAB process tree
  • Unexpected file writes, registry modifications, or outbound network connections originating from MATLAB.exe shortly after a model is opened
  • Discrepancies between the block count reported by find_system(gcs,'LookUnderMasks','all','FollowLinks','on') and the blocks visible in the editor canvas

Detection Strategies

  • Extract .slx archives and diff the embedded blockdiagram.xml against the blocks rendered in the editor to identify concealed entries
  • Scan model XML for callback properties such as PreLoadFcn, PostLoadFcn, InitFcn, StartFcn, and StopFcn that reference external commands or file writes
  • Alert on MATLAB processes that invoke shell interpreters or network utilities, which is uncommon during routine model editing

Monitoring Recommendations

  • Log process creation events with full command lines on engineering workstations and forward them to a central analytics platform
  • Monitor the file reputation and provenance of .slx files introduced into source control or shared drives
  • Track MATLAB and Simulink version inventories to confirm upgrade coverage across engineering teams

How to Mitigate CVE-2026-105043

Immediate Actions Required

  • Upgrade Simulink to release R2026b or later on all engineering workstations
  • Treat .slx files from external parties as untrusted executable content and open them only in isolated environments
  • Audit shared model repositories for files introduced before the upgrade and re-validate their block structure

Patch Information

MathWorks addressed the issue in Simulink R2026b. Refer to the MathWorks Simulink Release Notes for the fix details and upgrade guidance. Review the MathWorks Simulink Product Overview for supported platforms before deploying the update.

Workarounds

  • Open suspect .slx files inside a virtual machine or sandbox with no network access and no sensitive data mounted
  • Programmatically enumerate every block before simulation using find_system with LookUnderMasks and FollowLinks enabled, and compare against the editor view
  • Disable automatic execution of model callbacks when loading third-party files by reviewing and clearing PreLoadFcn, PostLoadFcn, and InitFcn properties
bash
# Inspect an .slx archive before opening it in Simulink
unzip -p suspect_model.slx simulink/blockdiagram.xml \
  | grep -E 'PreLoadFcn|PostLoadFcn|InitFcn|StartFcn|MATLABFcn|S-Function'

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.