mruby up to 3.4.0-rc2 nregs codegen.c scope_new heap-based overflow

CVSS Meta Temp Score
CVSS is a standardized scoring system to determine possibilities of attacks. The Temp Score considers temporal factors like disclosure, exploit and countermeasures. The unique Meta Score calculates the average score of different sources to provide a normalized scoring system.
Current Exploit Price (≈)
Our analysts are monitoring exploit markets and are in contact with vulnerability brokers. The range indicates the observed or calculated exploit price to be seen on exploit markets. A good indicator to understand the monetary effort required for and the popularity of an attack.
CTI Interest Score
Our Cyber Threat Intelligence team is monitoring different web sites, mailing lists, exploit markets and social media networks. The CTI Interest Score identifies the interest of attackers and the security community for this specific vulnerability in real-time. A high score indicates an elevated risk to be targeted for this vulnerability.
3.1$0-$5k0.27

Summaryinfo

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.

Detailsinfo

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.

Productinfo

Type

Name

Version

License

Website

CPE 2.3info

CPE 2.2info

CVSSv4info

VulDB Vector: 🔒
VulDB Reliability: 🔍

CNA CVSS-B Score: 🔒
CNA CVSS-BT Score: 🔒
CNA Vector: 🔒

CVSSv3info

VulDB Meta Base Score: 3.3
VulDB 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: 🔒

CVSSv2info

AVACAuCIA
💳💳💳💳💳💳
💳💳💳💳💳💳
💳💳💳💳💳💳
VectorComplexityAuthenticationConfidentialityIntegrityAvailability
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock

VulDB Base Score: 🔒
VulDB Temp Score: 🔒
VulDB Reliability: 🔍

Exploitinginfo

Class: Heap-based overflow
CWE: 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-DayUnlockUnlockUnlockUnlock
TodayUnlockUnlockUnlockUnlock

Threat Intelligenceinfo

Interest: 🔍
Active Actors: 🔍
Active APT Groups: 🔍

Countermeasuresinfo

Recommended: Patch
Status: 🔍

0-Day Time: 🔒

Patch: 1fdd96104180cc0fb5d3cb086b05ab6458911bb9

Timelineinfo

07/07/2025 Advisory disclosed
07/07/2025 +0 days VulDB entry created
07/09/2025 +2 days VulDB entry last update

Sourcesinfo

Product: github.com

Advisory: 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

Entryinfo

Created: 07/07/2025 02:27 PM
Updated: 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

Submitinfo

Accepted

  • Submit #607683: mruby mruby 3.4.0-rc2 (commit dd68681) Heap-based Buffer Overflow (by JJLeo)

Discussion

No comments yet. Languages: en.

Please log in to comment.

Do you know our Splunk app?

Download it now for free!