CVE-2025-7207

Source
https://nvd.nist.gov/vuln/detail/CVE-2025-7207
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-7207.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2025-7207
Downstream
Published
2025-07-09T01:15:50.380Z
Modified
2025-11-20T12:40:43.793773Z
Severity
  • 5.5 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
[none]
Details

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

Affected packages

Git / github.com/mruby/mruby

Affected ranges

Type
GIT
Repo
https://github.com/mruby/mruby
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

1.*

1.0.0
1.1.0
1.2.0
1.3.0
1.4.0
1.4.1

2.*

2.0.0
2.0.1
2.1.0
2.1.0-rc
2.1.1
2.1.1-rc
2.1.1-rc2
2.1.2
2.1.2-rc
2.1.2-rc2

3.*

3.0.0
3.0.0-preview
3.0.0-rc
3.1.0
3.1.0-rc
3.1.0-rc2
3.2.0
3.2.0-rc
3.2.0-rc2
3.2.0-rc3
3.2.0-rc4
3.3.0
3.3.0-rc
3.3.0-rc2

Database specific

vanir_signatures

[
    {
        "signature_version": "v1",
        "signature_type": "Line",
        "id": "CVE-2025-7207-0bb44fdc",
        "digest": {
            "line_hashes": [
                "141266604221001985793224242864605512940",
                "201051330543098260658739143609200290685",
                "114062220145791056822979273817029798431",
                "138611975655859434585922915600240392592"
            ],
            "threshold": 0.9
        },
        "source": "https://github.com/mruby/mruby/commit/1fdd96104180cc0fb5d3cb086b05ab6458911bb9",
        "target": {
            "file": "mrbgems/mruby-compiler/core/codegen.c"
        },
        "deprecated": false
    },
    {
        "signature_version": "v1",
        "signature_type": "Function",
        "id": "CVE-2025-7207-cae25e8d",
        "digest": {
            "length": 1770.0,
            "function_hash": "92542564917111018304300587475293972028"
        },
        "source": "https://github.com/mruby/mruby/commit/1fdd96104180cc0fb5d3cb086b05ab6458911bb9",
        "target": {
            "file": "mrbgems/mruby-compiler/core/codegen.c",
            "function": "scope_new"
        },
        "deprecated": false
    }
]

source

"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-7207.json"