# CVE-2025-13120: A vulnerability has been found in mruby up to 3.4.0. This vulnerability affects the function sort_cmp of the file…

Source: https://junglewise.ai/threats/cve-2025-13120-a-vulnerability-has-been-found-in-mruby-up-to-3-4-0-this  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2025-11-13  
License: CC BY 4.0 with a link back

CVE-2025-13120 · Severity: medium · CVSS 5.3 · Published 2025-11-13

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.

Technologies: [Mruby](https://junglewise.ai/threats/technologies/mruby). Vendors: [Mruby](https://junglewise.ai/threats/vendors/mruby).

## Quick answers

**Is CVE-2025-13120 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2025-13120 being exploited in the wild.

**How severe is CVE-2025-13120?** Medium severity, with a CVSS score of 5.3, published 13 November 2025.

**Which products and versions are affected?** Mruby. The advisory does not name versions.

**Is there a fix for CVE-2025-13120?** No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.

**Am I affected by CVE-2025-13120?** Check whether you run Mruby. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Affected products

- Mruby

## Related threats

- [mruby NULL pointer dereference in Prism parser](https://junglewise.ai/threats/cve-2026-79590-mruby-null-pointer-dereference-in-prism-parser)
- [mruby floating point comparison flaw in bigint division](https://junglewise.ai/threats/cve-2022-4996-mruby-floating-point-comparison-flaw-in-bigint-division)
- [A weakness has been identified in mruby 3.4.0. This vulnerability affects the function ary_fill_exec of the file…](https://junglewise.ai/threats/cve-2025-12875-a-weakness-has-been-identified-in-mruby-3-4-0-this-vulnerability)
