p PatchFirst

CVE-2025-7207

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

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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.

CVSS 4.8 · Medium · EPSS 0.3% · Fix available

Published
Updated

Stack: system

Affected products and versions

  • mruby

    Versions
    • 3.4.0-rc1: Affected
    • 3.4.0-rc2: Affected

    No fix published

  • mruby Debian:12

    Versions
    • 3.1.0-3
    • 3.2.0-1
    • 3.2.0-2
    • 3.3.0-1
    • 3.3.0~rc2-1
    • 3.4.0-1
    • 3.4.0-1~exp1
    • 3.4.0-1~exp2
    • 3.4.0-2
    • 3.4.0-3
    • 4.0.0-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • mruby Debian:13

    Versions
    • 3.3.0-1
    • 3.4.0-1
    • 3.4.0-1~exp1
    • 3.4.0-1~exp2
    • 3.4.0-2
    • 3.4.0-3
    • 4.0.0-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • mruby Debian:14

    Versions
    • 3.3.0-1
    • 3.4.0-1
    • 3.4.0-1~exp1
    • 3.4.0-1~exp2
    Affected ranges
    • ECOSYSTEM: < 3.4.0-2

    Update to 3.4.0-2

  • mruby Ubuntu:16.04:LTS

    Versions
    • 1.1.0+20150817+gita1731254-1
    • 1.1.0+20150906+git1cbbb7e1-1
    • 1.2.0+20160315+git4f20d58a-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • mruby Ubuntu:18.04:LTS

    Versions
    • 1.3.0-1
    • 1.3.0+20170925+git38185028-1
    • 1.3.0+20171029+git77edafb0-1
    • 1.4.0-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • mruby Ubuntu:20.04:LTS

    Versions
    • 2.0.0-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • mruby Ubuntu:22.04:LTS

    Versions
    • 2.1.2-3
    • 3.0.0-1
    • 3.0.0-3
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • mruby Ubuntu:24.04:LTS

    Versions
    • 3.2.0-1
    • 3.2.0-2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • mruby Ubuntu:25.10

    Versions
    • 3.3.0-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • mruby Ubuntu:26.10

    Versions
    • 3.4.0-2
    • 3.4.0-3
    • 4.0.0-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • mruby Ubuntu:26.04:LTS

    Versions
    • 3.3.0-1
    • 3.4.0-2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

Original sources

Check your server →