CVE-2025-7207: mruby · Heap-based Buffer Overflow
Affects mrubySource CVE Database V5
Not known to be exploited · CVSS 4.8 Medium.
Data as of 25 Oct 2026, 19:02 UTC
- EPSS
- 0.2% chance of exploitation in 30 days – higher than 17% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:PExploitation evidence
Disclosed: evidence found.
CVE published 9 Jul 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-25.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
GitHubmruby/mrubypkg:github/mruby/mrubyOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
European organizations should prioritize applying the official patch identified by commit 1fdd96104180cc0fb5d3cb086b05ab6458911bb9 to all affected mruby versions (3.4.0-rc1 and 3.4.0-rc2). Beyond patching, organizations should conduct an inventory of all software and embedded systems using mruby to assess exposure. Implement strict local access controls and monitoring to prevent unauthorized local access, including enforcing least privilege principles and using endpoint detection and response (EDR) solutions to detect anomalous behavior indicative of exploitation attempts. For embedded or IoT devices, ensure secure firmware update mechanisms are in place to deploy patches promptly. Additionally, code audits and static analysis of custom applications embedding mruby can help identify potential misuse or unsafe memory operations that could exacerbate the vulnerability. Finally, organizations should maintain robust incident response plans to quickly address any exploitation attempts.
Description
A vulnerability, which was classified as problematic, was found in mruby up to 3.4.0-rc2. Affected is the function scope_new of the file mrbgems/mruby-compiler/core/codegen.c of the component nregs Handler. The manipulation leads to heap-based buffer overflow. An attack has to be approached locally. The exploit has been disclosed to the public and may be used. The name of the patch is 1fdd96104180cc0fb5d3cb086b05ab6458911bb9. It is recommended to apply a patch to fix this issue.
References
- vuldb.com (opens in a new tab)
- vuldb.com (opens in a new tab)
- vuldb.com (opens in a new tab)
- github.com/mruby/mruby/issues/6509 (opens in a new tab)
- github.com/mruby/mruby/issues/6509 (opens in a new tab)
- github.com/user-attachments/files/19619499/mruby_crash.txt (opens in a new tab)
- github.com/mruby/mruby/commit/1fdd96104180cc0fb5d3cb086b05ab6458911bb9 (opens in a new tab)