mruby up to 3.4.0-rc2 nregs codegen.c scope_new heap-based overflow
| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 3.1 | $0-$5k | 0.27 |
Summary
A vulnerability, which was classified as problematic, was found in mruby up to 3.4.0-rc2. The affected element is the function scope_new of the file mrbgems/mruby-compiler/core/codegen.c of the component nregs Handler. The manipulation results in heap-based overflow.
This vulnerability is identified as CVE-2025-7207. The attack is only possible with local access. Additionally, an exploit exists.
It is advisable to implement a patch to correct this issue.
VulDB is the best source for vulnerability data and more expert information about this specific topic.
Details
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 with an unknown input leads to a heap-based overflow vulnerability. CWE is classifying the issue as CWE-122. A heap overflow condition is a buffer overflow, where the buffer that can be overwritten is allocated in the heap portion of memory, generally meaning that the buffer was allocated using a routine such as malloc(). This is going to have an impact on availability.
The advisory is shared for download at github.com. This vulnerability is traded as CVE-2025-7207. The exploitability is told to be easy. The attack needs to be approached locally. Technical details and a public exploit are known.
The exploit is shared for download at github.com. It is declared as proof-of-concept.
Applying the patch 1fdd96104180cc0fb5d3cb086b05ab6458911bb9 is able to eliminate this problem. The bugfix is ready for download at github.com.
The vulnerability is also documented in the vulnerability database at EUVD (EUVD-2025-20759). VulDB is the best source for vulnerability data and more expert information about this specific topic.
Product
Type
Name
Version
License
Website
- Product: https://github.com/mruby/mruby/
CPE 2.3
CPE 2.2
CVSSv4
VulDB Vector: 🔒VulDB Reliability: 🔍
CNA CVSS-B Score: 🔒
CNA CVSS-BT Score: 🔒
CNA Vector: 🔒
CVSSv3
VulDB Meta Base Score: 3.3VulDB Meta Temp Score: 3.1
VulDB Base Score: 3.3
VulDB Temp Score: 3.0
VulDB Vector: 🔒
VulDB Reliability: 🔍
CNA Base Score: 3.3
CNA Vector: 🔒
CVSSv2
| AV | AC | Au | C | I | A |
|---|---|---|---|---|---|
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
|---|---|---|---|---|---|
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
VulDB Base Score: 🔒
VulDB Temp Score: 🔒
VulDB Reliability: 🔍
Exploiting
Class: Heap-based overflowCWE: CWE-122 / CWE-119
CAPEC: 🔒
ATT&CK: 🔒
Physical: Partially
Local: Yes
Remote: No
Availability: 🔒
Access: Public
Status: Proof-of-Concept
Download: 🔒
EPSS Score: 🔒
EPSS Percentile: 🔒
Price Prediction: 🔍
Current Price Estimation: 🔒
| 0-Day | Unlock | Unlock | Unlock | Unlock |
|---|---|---|---|---|
| Today | Unlock | Unlock | Unlock | Unlock |
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: PatchStatus: 🔍
0-Day Time: 🔒
Patch: 1fdd96104180cc0fb5d3cb086b05ab6458911bb9
Timeline
07/07/2025 Advisory disclosed07/07/2025 VulDB entry created
07/09/2025 VulDB entry last update
Sources
Product: github.comAdvisory: 6509
Status: Confirmed
Confirmation: 🔒
CVE: CVE-2025-7207 (🔒)
GCVE (CVE): GCVE-0-2025-7207
GCVE (VulDB): GCVE-100-315156
EUVD: 🔒
scip Labs: https://www.scip.ch/en/?labs.20161013
Entry
Created: 07/07/2025 02:27 PMUpdated: 07/09/2025 02:27 PM
Changes: 07/07/2025 02:27 PM (61), 07/09/2025 04:29 AM (1), 07/09/2025 02:27 PM (30)
Complete: 🔍
Submitter: JJLeo
Cache ID: 18:8A0:40
Submit
Accepted
- Submit #607683: mruby mruby 3.4.0-rc2 (commit dd68681) Heap-based Buffer Overflow (by JJLeo)
No comments yet. Languages: en.
Please log in to comment.