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.002 (12.2th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 12th percentile — 12.2% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.002 · newest: 0.002 · change: +0.000
Affected products
- Mruby — versions 3.4.0
- Mruby — versions 3.4.0-rc1, 3.4.0-rc2
Weakness classification (CWE)
Public proof-of-concept exploits
References
- vuldb.com/ (technical-description, VDB Entry, Third Party Advisory, vdb-entry)
- vuldb.com/ (signature, Permissions Required, permissions-required, VDB Entry)
- vuldb.com/ (VDB Entry, Third Party Advisory, 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)
Frequently asked questions
- What is CVE-2025-7207?
- CVE-2025-7207 is a low-severity vulnerability in Mruby, classified under Improper Restriction of Operations within the Bounds of a Memory Buffer. CVSS score: 3.3/10. Published 2025-07-09.
- How severe is CVE-2025-7207?
- Low severity. CVSS v3 base score is 3.3 out of 10.
- Is CVE-2025-7207 known to be exploited?
- 1 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.