CVE-2025-13120: mruby array.c sort_cmp use after free

Published Nov 13, 2025
·
Updated

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

2 affected components
mruby mruby<3.4.0
mruby Mruby Ruby<=3.4.0

Event History

Nov 13, 2025
CVE Published
via MITRE·03:32 PM
Data Sourced
via MITRE·03:32 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·04:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Nov 19, 2025
Data Sourced
via Microsoft·01:02 AM
DescriptionSeverityWeakness

Frequently Asked Questions

1

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.

2

How do I fix CVE-2025-13120?

Fix CVE-2025-13120 by upgrading mruby to a version higher than 3.4.0.

3

What components are affected by CVE-2025-13120?

CVE-2025-13120 affects mruby versions up to and including 3.4.0.

4

Is CVE-2025-13120 exploitable remotely?

CVE-2025-13120 requires local access for exploitation, making it a local vulnerability.

5

What function in mruby is impacted by CVE-2025-13120?

CVE-2025-13120 affects the sort_cmp function in the src/array.c file.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203