Buffer overflow in Mruby
CVE-2025-7207
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.
Vulnerability class: Buffer Overflow
Published · last modified .
CVSS v3 metric
CVSS v3 base score 3.3 (Low). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L.
EPSS exploit prediction
EPSS 0.003, 18.7th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Mruby — versions 3.4.0
- Mruby — versions 3.4.0-rc1, 3.4.0-rc2
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 1 other repository (fkie-cad/nvd-json-data-feeds). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- VDB-315156 | mruby nregs codegen.c scope_new heap-based overflow (technical-description, Third Party Advisory, VDB Entry, vdb-entry)
- VDB-315156 | CTI Indicators (IOB, IOC, IOA) (signature, Permissions Required, permissions-required, VDB Entry)
- Submit #607683 | mruby mruby 3.4.0-rc2 (commit dd68681) Heap-based Buffer Overflow (Third Party Advisory, VDB Entry, third-party-advisory)
- github.com/mruby/mruby/issues/6509 (issue-tracking, Exploit, Issue Tracking)
- github.com/mruby/mruby/issues/6509 (issue-tracking, Exploit, Issue Tracking)
- github.com/user-attachments/files/19619499/mruby_crash.txt (Exploit, exploit)
- github.com/mruby/mruby/commit/1fdd96104180cc0fb5d3cb086b05ab6458911bb9 (Patch, patch)