mruby array.c sort_cmp use after free
Vulnerability Description
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.
Impact Analysis
Refer to official advisory for detailed impact metrics.
Remediation
Ensure systems are updated to the latest vendor-supplied patch levels.
Am I Vulnerable?
Launch our assessment wizard to check if your infrastructure is exposed to • CVE-2025-13120
Credits & Attribution
The following person or organization is credited with identifying this vulnerability, as recorded in the NVD database:
- tjbecker (VulDB User)
References
- https://vuldb.com/?id.332325
- https://vuldb.com/?ctiid.332325
- https://vuldb.com/?submit.683435
- https://github.com/mruby/mruby/issues/6649
- https://github.com/makesoftwaresafe/mruby/pull/263
- https://github.com/mruby/mruby/issues/6649#issue-3534393003
- https://github.com/mruby/mruby/commit/eb398971bfb43c38db3e04528b68ac9a7ce509bc
- https://github.com/mruby/mruby/