Skip to main content

mrubyc EUVDEUVD-2026-74787

| CVE-2026-86547 MEDIUM
NULL Pointer Dereference (CWE-476)
2026-09-09 VulnCheck GHSA-42q4-rvcw-q7wc
6.9
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Craft .mrb file with top-level OP_ENTER
  2. Delivery
    Deliver bytecode to mrubyc-embedding application
  3. Exploit
    VM loads and begins executing bytecode
  4. Execution
    op_enter() dereferences null call-frame pointer
  5. Persist
    Host process crashes
  6. Impact
    Denial of service achieved

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A10:2025 - Mishandling of Exceptional Conditions
ASVS 5.0
V16 - Security Logging and Error Handling Null pointer safety, defensive checks
MITRE ATT&CK

1 technique across 1 tactic: Impact

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

The target application must accept and execute .mrb bytecode supplied by or influenced by the attacker - for example, through a file upload interface, a network-facing script endpoint, or an over-the-air update channel that does not validate bytecode integrity. The crash is triggered specifically by OP_ENTER opcodes appearing at the top level of the bytecode (outside any method scope); normally compiled Ruby code would not produce this pattern, so the attack requires deliberate crafting of malicious bytecode rather than merely supplying valid mruby source. No authentication is required to craft the malicious file itself, but the delivery mechanism determines whether the attacker needs any access to the system. Applications that only execute internally compiled, integrity-verified bytecode are not exposed.

Impact

The CVSS 3.1 base score of 6.2 (AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H) accurately reflects the impact profile: availability-only, no confidentiality or integrity impact, and a local attack vector that requires the attacker to supply the malicious bytecode to the application. The PR:N rating is plausible - crafting a .mrb file requires no system privileges, only the ability to provide it as input. No CISA KEV listing and no confirmed public exploit code exist, so exploitation probability is low in the absence of a specific delivery mechanism. The primary realistic threat is in embedded or IoT scenarios where mrubyc is used as a user-facing scripting engine and operators accept externally sourced .mrb files. EPSS data was not provided. Overall, this is a medium-severity DoS in a niche embedded platform with no evidence of weaponization.

Exploit ScenarioDerived

An attacker crafts a minimal .mrb bytecode file that places an OP_ENTER instruction at the top level of the script, outside any method or block context, and submits it to an embedded device or application that uses mrubyc to execute user-supplied scripts. The VM's op_enter() handler dereferences a null call-frame pointer, the host process receives a fatal signal, and the device service crashes, causing denial of service. No public exploit code is confirmed, but the attack is straightforward for anyone familiar with the mrubyc bytecode format.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.1% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Sep 09, 2026

Null pointer dereference in mrubyc through 4.0.0 allows an attacker who can supply untrusted .mrb bytecode to crash any application embedding the VM. The op_enter() handler in src/vm.c fails to validate execution context before dereferencing, and OP_ENTER instructions placed at the top level of a crafted bytecode file - where no call frame exists - trigger the dereference and terminate the embedding application. No public exploit or active exploitation has been identified at time of analysis, and real-world risk is bounded by the requirement to feed attacker-controlled bytecode to the target application.

RemediationAI

No vendor-released patched version is identified from the available reference data. The two GitHub references point to the vulnerable source at different commits rather than to a fix. Developers embedding mrubyc should monitor the upstream repository for a tagged release beyond 4.0.0 that addresses this issue; commit 4261cf5e5ae5579e3110dab98a04b91c7d919429 should be reviewed to determine whether it contains the fix. In the interim, the most effective compensating control is to refuse to load any .mrb bytecode that does not originate from a trusted, integrity-checked source - for example, by requiring bytecode to be signed or hashed before execution. Applications that must accept externally supplied bytecode should run the mrubyc VM in an isolated process or sandbox so that a crash does not affect the broader system. Restricting which users or network paths can supply .mrb files to the application also reduces exposure.

Affected VersionsENISA

mrubyc 2.0 ≤4.0.0

Affected Packages

euvd mrubyc 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

mrubyc (cpe:2.3:a:mrubyc:mrubyc:*:*:*:*:*:*:*:*) is a lightweight, resource-constrained implementation of mruby targeting microcontrollers and embedded systems. It executes pre-compiled .mrb bytecode through a register-based virtual machine defined in src/vm.c. CWE-476 (Null Pointer Dereference) applies: the op_enter() handler at line 1537 of the release-4.0.0 source assumes a valid call frame is on the execution stack when processing OP_ENTER opcodes, but the VM does not enforce this precondition for top-level bytecode. A specially constructed .mrb file can place OP_ENTER at the outermost scope, causing the handler to dereference a null pointer and generating a fatal signal in the host process.

Know when Mrubyc 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 6.9 MEDIUM
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
vuln.today AI 6.2 MEDIUM

Local vector because exploit requires supplying a crafted file; no privileges needed to craft the file; availability-only impact from process crash.

3.1 AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/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
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

1
CVSS changed
Sep 09, 2026 - 10:37 NVD
6.2 (MEDIUM) 6.9 (MEDIUM)

DescriptionCVE.org

mrubyc through 4.0.0 contains a null pointer dereference vulnerability in the op_enter() handler in src/vm.c when processing untrusted bytecode. Attackers can craft malicious .mrb bytecode files with OP_ENTER instructions at the top level to crash the embedding application and cause denial of service.

Threat Intelligence Overview

EPSS Score
0.1%
Top 97% exploitable
Prevalence
Rare
niche embedded Ruby VM for microcontrollers, minimal enterprise footprint
Data Quality
6 sources
Confidence: High

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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.1%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.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· derived
Defer
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

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

Attack Technique

A null pointer dereference occurs when a program attempts to access memory through a pointer that has been set to NULL (address 0x0).

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

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