CVE-2025-7207: mruby nregs codegen.c scope_new heap-based overflow

Published Jul 9, 2025
·
Updated

A vulnerability, which was classified as problematic, was found in mruby up to 3.4.0-rc2. Affected is the function scopenew 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.

Affected Software

4 affected components
mruby mruby<=3.4.0-rc2
mruby Mruby Ruby<3.4.0
mruby Mruby Ruby=3.4.0-rc
mruby Mruby Ruby=3.4.0-rc2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade mruby to a version that resolves this vulnerability.

    Patch 1fdd96104180cc0fb5d3cb086b05ab6458911bb9

Event History

Jul 9, 2025
CVE Published
via MITRE·12:02 AM
Data Sourced
via MITRE·12:02 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·01:15 AM
RemedyDescriptionSeverityWeaknessAffected Software
Aug 26, 57721
Event
via NVD·05:55 AM

Frequently Asked Questions

1

What is the severity of CVE-2025-7207?

CVE-2025-7207 is classified as a problematic vulnerability due to its potential for heap-based buffer overflow.

2

How do I fix CVE-2025-7207?

To mitigate CVE-2025-7207, upgrade mruby to a version later than 3.4.0-rc2 that addresses the vulnerability.

3

What components are affected by CVE-2025-7207?

CVE-2025-7207 affects the nregs Handler within the scope_new function in mruby versions up to 3.4.0-rc2.

4

What type of attack can be conducted through CVE-2025-7207?

An attacker can exploit CVE-2025-7207 to perform heap-based buffer overflow attacks.

5

Who is responsible for patching CVE-2025-7207?

It is the responsibility of maintainers and users of mruby to apply patches and updates to mitigate CVE-2025-7207.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203