CVE-2025-13120: mruby array.c sort_cmp use after free
A vulnerability has been found in mruby up to 3.4.0. This vulnerability affects the function sortcmp 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.
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2025-13120?
CVE-2025-13120 has been classified as a local vulnerability with potential for use after free exploitation.
How do I fix CVE-2025-13120?
Fix CVE-2025-13120 by upgrading mruby to a version higher than 3.4.0.
What components are affected by CVE-2025-13120?
CVE-2025-13120 affects mruby versions up to and including 3.4.0.
Is CVE-2025-13120 exploitable remotely?
CVE-2025-13120 requires local access for exploitation, making it a local vulnerability.
What function in mruby is impacted by CVE-2025-13120?
CVE-2025-13120 affects the sort_cmp function in the src/array.c file.