CVE-2025-7207CWE-119CWE-122

mruby nregs codegen.c scope_new heap-based overflow

Medium · published July 9, 2025

CVSS v4.0
4.8
EPSS
0%
Percentile
16.7
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v4.0
4.8 · MEDIUM
Vector
CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P
EPSS
0.00260 · 16.7th percentile
Weaknesses
CWE-119 · Improper Restriction of Operations within the Bounds of a Memory Buffer; CWE-122 · Heap-based Buffer Overflow
Published
2025-07-09T00:02Z
EPSS history
Timeline
  • 09 JUL 00:02Z
    mruby nregs codegen.c scope_new heap-based overflow
    cvelistv5