Interpreter crash via corrupted pattern-matching bytecode
Published Feb 6, 2026 · Updated Feb 6, 2026
Heap use-after-free in mruby 3.0 through 3.4.0 allows local users to crash the interpreter with crafted Ruby code. The pattern-matching compiler treats a three-byte OP_JMP for an undefined pinned variable as a four-byte OP_JMPNOT, corrupting a preceding bytecode operand and leaving mrb_vm_exec to read freed memory. Exploitation requires local ability to submit Ruby source to a build containing the rational and bigint extensions; the demonstrated consequence is interpreter termination.
Summary
What happened
Heap use-after-free in mruby 3.0 through 3.4.0 allows local users to crash the interpreter with crafted Ruby code. The pattern-matching compiler treats a three-byte OP_JMP for an undefined pinned variable as a four-byte OP_JMPNOT, corrupting a preceding bytecode operand and leaving mrb_vm_exec to read freed memory. Exploitation requires local ability to submit Ruby source to a build containing the rational and bigint extensions; the demonstrated consequence is interpreter termination.
The record
- CVE
- CVE-2026-1979
- Published
- Feb 6, 2026
- Updated
- Feb 6, 2026
- Vendor
- mruby
- Product
- mruby
- Classifications
- CWE-416, CWE-119
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- Feb 6, 2026CVE publishedPublication date reported by the CVE source.
- Feb 6, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=3.0
- Affected versionversion=3.1
- Affected versionversion=3.2
- Affected versionversion=3.3
- Affected versionversion=3.4.0
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- mruby issue 6701 crashing inputproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo