Skip to main content
CVE-2025-7207VulnerabilityPublished

CVE-2025-7207: mruby · Heap-based Buffer Overflow

Affects mrubySource CVE Database V5

0

Not known to be exploited · CVSS 4.8 Medium.

Data as of 25 Oct 2026, 19:02 UTC

CVSS 4.0 base score
4.8Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.2% chance of exploitation in 30 days – higher than 17% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
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

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 9 Jul 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-25.

What to do

Affected software

ProductAffectedFixed in
GitHubmruby/mrubypkg:github/mruby/mrubyOther threatsAffected
  • =3.4.0-rc1
  • =3.4.0-rc2
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

European organizations should prioritize applying the official patch identified by commit 1fdd96104180cc0fb5d3cb086b05ab6458911bb9 to all affected mruby versions (3.4.0-rc1 and 3.4.0-rc2). Beyond patching, organizations should conduct an inventory of all software and embedded systems using mruby to assess exposure. Implement strict local access controls and monitoring to prevent unauthorized local access, including enforcing least privilege principles and using endpoint detection and response (EDR) solutions to detect anomalous behavior indicative of exploitation attempts. For embedded or IoT devices, ensure secure firmware update mechanisms are in place to deploy patches promptly. Additionally, code audits and static analysis of custom applications embedding mruby can help identify potential misuse or unsafe memory operations that could exacerbate the vulnerability. Finally, organizations should maintain robust incident response plans to quickly address any exploitation attempts.

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.

References

Community reviews

Loading reviews…