CVE-2025-13120
mruby array.c sort_cmp use after free
- State
- Published
- Severity
- 4.8 Medium
- Published
- Nov 13, 2025
- Updated
- Mar 4, 2026
- Reserved
- Nov 13, 2025
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.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 4.0 | 4.8 Medium | CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P | VulDB |
| 3.1 | 5.3 Medium | 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 | VulDB |
| 3.0 | 5.3 Medium | CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L/E:P/RL:O/RC:C | VulDB |
| 2.0 | 4.3 Medium | AV:L/AC:L/Au:S/C:P/I:P/A:P/E:POC/RL:OF/RC:C | VulDB |
Weaknesses
Affected Products
| Product | Versions |
|---|---|
mrubyn/a |
|
References
- VDB-332325 | mruby array.c sort_cmp use after freevdb-entrytechnical-description
- VDB-332325 | CTI Indicators (IOB, IOC, IOA)signaturepermissions-required
- Submit #683435 | mruby 3.4.0 Use After Freethird-party-advisory
- https://github.com/mruby/mruby/issues/6649issue-tracking
- https://github.com/makesoftwaresafe/mruby/pull/263issue-tracking
- https://github.com/mruby/mruby/issues/6649#issue-3534393003exploitissue-tracking
- https://github.com/mruby/mruby/commit/eb398971bfb43c38db3e04528b68ac9a7ce509bcpatch
- https://github.com/mruby/mruby/product
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.