{"id":"CVE-2022-1286","summary":"heap-buffer-overflow in mrb_vm_exec in mruby/mruby in mruby/mruby","details":"heap-buffer-overflow in mrb_vm_exec in mruby/mruby in GitHub repository mruby/mruby prior to 3.2. Possible arbitrary code execution if being exploited.","modified":"2026-08-12T12:59:37.518371Z","published":"2022-04-10T10:40:09Z","related":["openSUSE-SU-2024:12024-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/1xxx/CVE-2022-1286.json","cna_assigner":"@huntrdev","cwe_ids":["CWE-122"]},"references":[{"type":"WEB","url":"https://huntr.dev/bounties/f918376e-b488-4113-963d-ffe8716e4189"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/1xxx/CVE-2022-1286.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-1286"},{"type":"FIX","url":"https://github.com/mruby/mruby/commit/b1d0296a937fe278239bdfac840a3fd0e93b3ee9"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/mruby/mruby","events":[{"introduced":"0"},{"fixed":"87260e7bb1a9edfb2ce9b41549c4142129061ca5"},{"fixed":"b1d0296a937fe278239bdfac840a3fd0e93b3ee9"}],"database_specific":{"extracted_events":[{"introduced":"0"},{"fixed":"3.2"}],"source":["CPE_RANGE","REFERENCES"],"cpe":"cpe:2.3:a:mruby:mruby:*:*:*:*:*:*:*:*"}}],"versions":["3.2.0-rc4","3.2.0-rc3","3.2.0-rc2","3.2.0-rc","3.0.0-preview","1.2.0","1.1.0","1.0.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-1286.json","vanir_signatures_modified":"2026-08-12T12:59:37Z","vanir_signatures":[{"source":"https://github.com/mruby/mruby/commit/b1d0296a937fe278239bdfac840a3fd0e93b3ee9","target":{"file":"src/class.c","function":"mrb_remove_method"},"deprecated":false,"digest":{"function_hash":"247492600817286190057563036038273421833","length":256},"id":"CVE-2022-1286-736c7aa9","signature_type":"Function","signature_version":"v1"},{"source":"https://github.com/mruby/mruby/commit/b1d0296a937fe278239bdfac840a3fd0e93b3ee9","target":{"file":"src/class.c"},"deprecated":false,"digest":{"line_hashes":["259367594531599583054158057858247157755","253356097824957435396565925400410528301","102512842315698149060632734968274965302","261759070071364822565035039493212483244"],"threshold":0.9},"id":"CVE-2022-1286-951bba30","signature_type":"Line","signature_version":"v1"}]}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L"}]}