CVE-2025-7207 Details
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.
A heap-based buffer overflow vulnerability has been identified in mruby versions through 3.4.0-rc2. The issue arises in the 'scope_new' function within the 'mrbgems/mruby-compiler/core/codegen.c' file, specifically related to the nregs handler. This vulnerability requires local access to exploit and has been publicly disclosed, with an available proof-of-concept exploit.
Users are advised to update to the latest version of mruby, where this vulnerability has been patched.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jul 9, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/mruby/mruby/issues/6509 | CISA-ADP | ExploitIssue Tracking |
| https://github.com/mruby/mruby/commit/1fdd96104180cc0fb5d3cb086b05ab6458911bb9 | [email protected] | Patch |
| https://github.com/mruby/mruby/issues/6509 | [email protected] | ExploitIssue Tracking |
| https://github.com/mruby/mruby/issues/6509#event-17145516649 | [email protected] | ExploitIssue Tracking |
| https://github.com/user-attachments/files/19619499/mruby_crash.txt | [email protected] | Exploit |
| https://vuldb.com/?ctiid.315156 | [email protected] | Permissions RequiredVDB Entry |
| https://vuldb.com/?id.315156 | [email protected] | Third Party AdvisoryVDB Entry |
| https://vuldb.com/?submit.607683 | [email protected] | Third Party AdvisoryVDB Entry |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-787 | Out-of-bounds Write | [email protected] |
| CWE-119 | Improper Restriction of Operations within the Bounds of a Memory Buffer | [email protected] |
| CWE-122 | Heap-based Buffer Overflow | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| mruby mruby | < 3.4.0 3.4.0 rc 3.4.0 rc2 |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 29, 2026 | Data Remediation | [email protected] |
| Oct 1, 2025 | Initial Analysis | [email protected] |
| Jul 9, 2025 | CVE Modified | CISA-ADP |
| Jul 9, 2025 | New CVE Received | [email protected] |