CVE-2018-12248

Source
https://nvd.nist.gov/vuln/detail/CVE-2018-12248
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-12248.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2018-12248
Downstream
Published
2018-06-12T14:29:00Z
Modified
2025-10-21T04:24:47.477960Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
[none]
Details

An issue was discovered in mruby 1.4.1. There is a heap-based buffer over-read associated with OP_ENTER because mrbgems/mruby-fiber/src/fiber.c does not extend the stack in cases of many arguments to fiber.

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

Database specific

vanir_signatures

[
    {
        "signature_version": "v1",
        "digest": {
            "function_hash": "147070256114492561439229310213750951605",
            "length": 1425.0
        },
        "deprecated": false,
        "signature_type": "Function",
        "source": "https://github.com/mruby/mruby/commit/778500563a9f7ceba996937dc886bd8cde29b42b",
        "target": {
            "function": "fiber_switch",
            "file": "mrbgems/mruby-fiber/src/fiber.c"
        },
        "id": "CVE-2018-12248-57dd5406"
    },
    {
        "signature_version": "v1",
        "digest": {
            "line_hashes": [
                "279665797800738958414960149610261648694",
                "126518444906473700447655695037853586908",
                "20559788607066877032068248299978847995",
                "209494054320537949101552931986372205443",
                "22221124249016034453580577284055838032",
                "91268916105831621533622244742851572844",
                "305217786895579078748468691908486590145",
                "185034954096646194127965433998711624991",
                "219336761342710677225899571521653541945",
                "316249854355391370072921855180627731711",
                "285233862504349142769183547588553601873",
                "334994637967466365511739291662493057004",
                "198558109256871638307795241135490981851",
                "266147102060991913635262564430149535902",
                "208405107013978956115196911008454797251",
                "324396588618655799450191183593268507354",
                "249383793064843333912001284948644464934",
                "84710594130326809198579967604788435076",
                "72526865657363877838250552687526864350",
                "200848887334134031069234585636769649815",
                "90524830406101585123909238316358164647",
                "195322834296668541039780842188718179536",
                "135770582455980523770569232759809025244",
                "331320109063418657266139318525759669180",
                "229755145831027627768656589443992544207",
                "235856800093588102611269600381015740395"
            ],
            "threshold": 0.9
        },
        "deprecated": false,
        "signature_type": "Line",
        "source": "https://github.com/mruby/mruby/commit/778500563a9f7ceba996937dc886bd8cde29b42b",
        "target": {
            "file": "mrbgems/mruby-fiber/src/fiber.c"
        },
        "id": "CVE-2018-12248-f67b30c9"
    }
]