CVE-2025-7207
published 2025-07-09CVE-2025-7207: 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…
PriorityP427medium5.5CVSS 3.1
AVLACLPRLUINSUCNINAH
EPSS
0.21%
11.7th percentile
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.
Affected
12 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | mruby | < mruby 3.4.0-2 (forky) | mruby 3.4.0-2 (forky) |
| mruby | mruby | < 3.4.0 | 3.4.0 |
| mruby | mruby | — | — |
| mruby | mruby | — | — |
| mruby | mruby | — | — |
| mruby | mruby | >= 0 < 3.4.0-2 | 3.4.0-2 |
| msrc | azl3_nghttp2_1.61.0-2_on_azure_linux_3.0 | — | — |
| msrc | azl3_rust_1.75.0-16_on_azure_linux_3.0 | — | — |
| msrc | azl3_rust_1.86.0-3_on_azure_linux_3.0 | — | — |
| msrc | cbl2_cpio_2.13-5_on_cbl_mariner_2.0 | — | — |
| msrc | cbl2_nghttp2_1.57.0-2_on_cbl_mariner_2.0 | — | — |
| msrc | cbl2_rust_1.72.0-10_on_cbl_mariner_2.0 | — | — |
CVSS provenance
nvdv3.15.5MEDIUMCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
nvdv4.01.9LOWCVSS: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/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
nvdv2.01.7LOWAV:L/AC:L/Au:S/C:N/I:N/A:P
osv4.8MEDIUM
vendor_msrc4.9MEDIUM
vendor_debian4.8MEDIUM
vendor_redhat4.8MEDIUM
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
Red Hat
mruby: mruby Heap Buffer Overflow
vendor_redhat·2025-07-09·CVSS 4.8
CVE-2025-7207 [MEDIUM] CWE-787 mruby: mruby Heap Buffer Overflow
mruby: mruby Heap Buffer Overflow
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.
A flaw was found in mruby. The `scope_new` function in `mrbgems/mruby-compiler/core/codegen.c` contains a heap-based buffer manipulation, potentially leading to memory corruption. A local attacker can trigger this vulnerability through crafted input, resulting in a potential deni
Microsoft
mruby nregs codegen.c scope_new heap-based overflow
vendor_msrc·2025-07-08·CVSS 3.3
CVE-2025-7207 [MEDIUM] CWE-122 mruby nregs codegen.c scope_new heap-based overflow
mruby nregs codegen.c scope_new heap-based overflow
FAQ: Is Azure Linux the only Microsoft product that includes this open-source library and is therefore potentially affected by this vulnerability?
One of the main benefits to our customers who choose to use the Azure Linux distro is the commitment to keep it up to date with the most recent and most secure versions of the open source libraries with which the distro is composed. Microsoft is committed to transparency in this work which is why we began publishing CSAF/VEX in October 2025. See this blog post for more information. If impact to additional products is identified, we will update the CVE to reflect this.
Mariner: Mariner
VulDB: VulDB
Customer Action Required: Yes
Debian
CVE-2025-7207: mruby - A vulnerability, which was classified as problematic, was found in mruby up to 3...
vendor_debian·2025·CVSS 4.8
CVE-2025-7207 [MEDIUM] CVE-2025-7207: mruby - A vulnerability, which was classified as problematic, was found in mruby up to 3...
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.
Scope: local
bookworm: open
bullseye: open
forky: resolved (fixed in 3.4.0-2)
sid: resolved (fixed in 3.4.0-2)
trixie: open
Microsoft
Debian's cpio contains a path traversal vulnerability. This issue was introduced by reverting CVE-2015-1197 patches which had caused a regression in --no-absolute-filenames. Upstream has since provide
vendor_msrc·2024-01-09·CVSS 4.9
CVE-2023-7207 [LOW] CWE-22 Debian's cpio contains a path traversal vulnerability. This issue was introduced by reverting CVE-2015-1197 patches which had caused a regression in --no-absolute-filenames. Upstream has since provide
Debian's cpio contains a path traversal vulnerability. This issue was introduced by reverting CVE-2015-1197 patches which had caused a regression in --no-absolute-filenames. Upstream has since provided a proper fix to --no-absolute-filenames.
FAQ: Is Azure Linux the only Microsoft product that includes this open-source library and is therefore potentially affected by this vulnerability?
One of the main benefits to our customers who choose to use the Azure Linux distro is the commitment to keep it up to date with the most recent and most secure versions of the open source libraries with which the distro is composed. Microsoft is committed to transparency in this work which is why we began publishing CSAF/VEX in October 2025. See this blog post for more information. If impact to additional
OSV
CVE-2025-7207: A vulnerability, which was classified as problematic, was found in mruby up to 3
osv·2025-07-09·CVSS 4.8
CVE-2025-7207 [MEDIUM] CVE-2025-7207: A vulnerability, which was classified as problematic, was found in mruby up to 3
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.
GHSA
GHSA-48pr-6hvf-39v3: A vulnerability, which was classified as problematic, was found in mruby up to 3
ghsa_unreviewed·2025-07-09
CVE-2025-7207 [MEDIUM] CWE-119 GHSA-48pr-6hvf-39v3: A vulnerability, which was classified as problematic, was found in mruby up to 3
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.
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
https://github.com/mruby/mruby/commit/1fdd96104180cc0fb5d3cb086b05ab6458911bb9https://github.com/mruby/mruby/issues/6509https://github.com/mruby/mruby/issues/6509#event-17145516649https://github.com/user-attachments/files/19619499/mruby_crash.txthttps://vuldb.com/?ctiid.315156https://vuldb.com/?id.315156https://vuldb.com/?submit.607683https://github.com/mruby/mruby/issues/6509
2025-07-09
Published