{"id":"CVE-2025-13120","published":"2025-11-13T15:32:07Z","modified":"2026-03-04T15:06:08Z","title":"mruby array.c sort_cmp use after free","vendor":null,"product":null,"tier":"tail","description":{"text":"A vulnerability has been found in mruby up to 3.4.0. This vulnerability affects the function sort_cmp of the file src/array.c. Such manipulation leads to use after free. 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 eb398971bfb43c38db3e04528b68ac9a7ce509bc. It is advisable to implement a patch to correct this issue.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L/E:P/RL:O/RC:C","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0023,"percentile":0.08234,"provenance":"source"},"cwes":[{"id":"CWE-416","name":"Use After Free"},{"id":"CWE-119","name":"Improper Restriction of Operations within the Bounds of a Memory Buffer"}],"references":[{"url":"https://vuldb.com/?id.332325","tags":["vdb-entry","technical-description"]},{"url":"https://vuldb.com/?ctiid.332325","tags":["signature","permissions-required"]},{"url":"https://vuldb.com/?submit.683435","tags":["third-party-advisory"]},{"url":"https://github.com/mruby/mruby/issues/6649","tags":["issue-tracking"]},{"url":"https://github.com/makesoftwaresafe/mruby/pull/263","tags":["issue-tracking"]},{"url":"https://github.com/mruby/mruby/issues/6649#issue-3534393003","tags":["exploit","issue-tracking"]},{"url":"https://github.com/mruby/mruby/commit/eb398971bfb43c38db3e04528b68ac9a7ce509bc","tags":["patch"]},{"url":"https://github.com/mruby/mruby/","tags":["product"]}],"priority":{"score":10.4,"factors":[{"name":"EPSS percentile","points":1.65},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":3.71}]},"affectedVersions":[{"vendor":"n/a","product":"mruby","versions":["3.0","3.1","3.2","3.3","3.4.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-11-13T16:19:04.859653Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2025-175315","exploited":false,"provenance":"source"},"exploitRefs":["https://github.com/mruby/mruby/issues/6649#issue-3534393003"],"lineage":{"familyId":"fam-mruby-mruby-cve-2021-4188","parents":[{"from":"CVE-2021-4188","to":"CVE-2025-13120","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/array.c"],"commits":["https://github.com/mruby/mruby/commit/27d1e0132a0804581dca28df042e7047fd27eaa8","https://github.com/mruby/mruby/commit/eb398971bfb43c38db3e04528b68ac9a7ce509bc"],"basis":"rarely changed file"}]}]}}