CVE-2025-7207 mruby nregs codegen.c scope_new heap-based overflow
MediumCVSS 4.8
EPSS 0.27%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: partial
- Technology
- UbuntuDebian
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.
Upgrade path
12 packages: 2 fixed, 10 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| azure linux nghttp2(Azure Linux 3.0) | All versions | No fix listed | No fix yet |
| azure linux rust(Azure Linux 3.0) | All versions | No fix listed | No fix yet |
| cbl-mariner nghttp2(CBL-Mariner 2.0) | All versions | No fix listed | No fix yet |
| cbl-mariner rust(CBL-Mariner 2.0) | All versions | No fix listed | No fix yet |
| debian/mruby(Debian 12) | = 3.1.0-3; = 3.2.0-1; = 3.2.0-2; = 3.3.0-1 +8 more | No fix listed | No fix yet |
| debian/mruby(Debian 13) | = 3.3.0-1; = 3.4.0-1; = 3.4.0-1~exp1; = 3.4.0-1~exp2 +4 more | No fix listed | No fix yet |
| ubuntu/mruby(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/mruby(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| ubuntu/mruby(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| ubuntu/mruby(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| debian/mruby(Debian 14) | < 3.4.0-2; = 3.3.0-1; = 3.4.0-1; = 3.4.0-1~exp1 +1 more | 3.4.0-2 | Fixed |
| mruby | < 3.4.0; = 3.4.0-rc; = 3.4.0-rc2 | 3.4.0 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| cbl-mariner rust(CBL-Mariner:2.0) | All versions | No fix listed |
| azure linux rust(Azure Linux:3.0) | All versions | No fix listed |
| cbl-mariner nghttp2(CBL-Mariner:2.0) | All versions | No fix listed |
| azure linux nghttp2(Azure Linux:3.0) | All versions | No fix listed |
| debian/mruby(Debian:12) | All versions | No fix listed |
| debian/mruby(Debian:12) | = 3.1.0-3 | No fix listed |
| debian/mruby(Debian:12) | = 3.2.0-1 | No fix listed |
| debian/mruby(Debian:12) | = 3.2.0-2 | No fix listed |
| debian/mruby(Debian:12) | = 3.3.0-1 | No fix listed |
| debian/mruby(Debian:12) | = 3.3.0~rc2-1 | No fix listed |
| debian/mruby(Debian:12) | = 3.4.0-1 | No fix listed |
| debian/mruby(Debian:12) | = 3.4.0-1~exp1 | No fix listed |
| debian/mruby(Debian:12) | = 3.4.0-1~exp2 | No fix listed |
| debian/mruby(Debian:12) | = 3.4.0-2 | No fix listed |
| debian/mruby(Debian:12) | = 3.4.0-3 | No fix listed |
| debian/mruby(Debian:12) | = 4.0.0-1 | No fix listed |
| debian/mruby(Debian:13) | All versions | No fix listed |
| debian/mruby(Debian:13) | = 3.3.0-1 | No fix listed |
| debian/mruby(Debian:13) | = 3.4.0-1 | No fix listed |
| debian/mruby(Debian:13) | = 3.4.0-1~exp1 | No fix listed |
| debian/mruby(Debian:13) | = 3.4.0-1~exp2 | No fix listed |
| debian/mruby(Debian:13) | = 3.4.0-2 | No fix listed |
| debian/mruby(Debian:13) | = 3.4.0-3 | No fix listed |
| debian/mruby(Debian:13) | = 4.0.0-1 | No fix listed |
| debian/mruby(Debian:14) | < 3.4.0-2 | 3.4.0-2 |
Show 11 more
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/mruby(Debian:14) | = 3.3.0-1 | No fix listed |
| debian/mruby(Debian:14) | = 3.4.0-1 | No fix listed |
| debian/mruby(Debian:14) | = 3.4.0-1~exp1 | No fix listed |
| debian/mruby(Debian:14) | = 3.4.0-1~exp2 | No fix listed |
| ubuntu/mruby(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/mruby(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/mruby(Ubuntu:26.04) | All versions | No fix listed |
| mruby | < 3.4.0 | 3.4.0 |
| mruby | = 3.4.0-rc | No fix listed |
| mruby | = 3.4.0-rc2 | No fix listed |
| ubuntu/mruby(Ubuntu:26.10) | All versions | No fix listed |
References
- MSRC Security Update Guide vendor-advisory
- Debian Security Tracker CVE-2025-7207 vendor-advisory
- VDB-315156 | mruby nregs codegen.c scope_new heap-based overflow technical-description third-party-advisory vdb-entry
- VDB-315156 | CTI Indicators (IOB, IOC, IOA) permissions-required signature vdb-entry
- Submit #607683 | mruby mruby 3.4.0-rc2 (commit dd68681) Heap-based Buffer Overflow third-party-advisory vdb-entry
- github.com exploit issue-tracking
- github.com exploit
- github.com patch
- Ubuntu CVE tracker vendor-advisory
- www.cve.org
- bugs.debian.org issue-tracking