CVE-2025-13120 mruby array.c sort_cmp use after free
MediumCVSS 4.8
EPSS 0.16%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- UbuntuDebian
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.
Upgrade path
10 packages: 2 fixed, 8 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| azure linux rust(Azure Linux 3.0) | All versions | No fix listed | No fix yet |
| cbl-mariner rust(CBL-Mariner 2.0) | All versions | No fix listed | No fix yet |
| debian/mruby(Debian 12) | = 3.1.0-3; = 3.2.0-1; = 3.2.0-2; = 3.3.0-1 +8 more | No fix listed | No fix yet |
| debian/mruby(Debian 13) | = 3.3.0-1; = 3.4.0-1; = 3.4.0-1~exp1; = 3.4.0-1~exp2 +4 more | No fix listed | No fix yet |
| ubuntu/mruby(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/mruby(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| ubuntu/mruby(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| ubuntu/mruby(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| debian/mruby(Debian 14) | < 4.0.0-1; = 3.3.0-1; = 3.4.0-1; = 3.4.0-1~exp1 +3 more | 4.0.0-1 | Fixed |
| mruby | <= 3.4.0; = 3.0; = 3.1; = 3.2 +2 more | after 3.4.0 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| cbl-mariner rust(CBL-Mariner:2.0) | All versions | No fix listed |
| azure linux rust(Azure Linux:3.0) | All versions | No fix listed |
| debian/mruby(Debian:12) | All versions | No fix listed |
| debian/mruby(Debian:12) | = 3.1.0-3 | No fix listed |
| debian/mruby(Debian:12) | = 3.2.0-1 | No fix listed |
| debian/mruby(Debian:12) | = 3.2.0-2 | No fix listed |
| debian/mruby(Debian:12) | = 3.3.0-1 | No fix listed |
| debian/mruby(Debian:12) | = 3.3.0~rc2-1 | No fix listed |
| debian/mruby(Debian:12) | = 3.4.0-1 | No fix listed |
| debian/mruby(Debian:12) | = 3.4.0-1~exp1 | No fix listed |
| debian/mruby(Debian:12) | = 3.4.0-1~exp2 | No fix listed |
| debian/mruby(Debian:12) | = 3.4.0-2 | No fix listed |
| debian/mruby(Debian:12) | = 3.4.0-3 | No fix listed |
| debian/mruby(Debian:12) | = 4.0.0-1 | No fix listed |
| debian/mruby(Debian:13) | All versions | No fix listed |
| debian/mruby(Debian:13) | = 3.3.0-1 | No fix listed |
| debian/mruby(Debian:13) | = 3.4.0-1 | No fix listed |
| debian/mruby(Debian:13) | = 3.4.0-1~exp1 | No fix listed |
| debian/mruby(Debian:13) | = 3.4.0-1~exp2 | No fix listed |
| debian/mruby(Debian:13) | = 3.4.0-2 | No fix listed |
| debian/mruby(Debian:13) | = 3.4.0-3 | No fix listed |
| debian/mruby(Debian:13) | = 4.0.0-1 | No fix listed |
| debian/mruby(Debian:14) | < 4.0.0-1 | 4.0.0-1 |
| debian/mruby(Debian:14) | = 3.3.0-1 | No fix listed |
| debian/mruby(Debian:14) | = 3.4.0-1 | No fix listed |
Show 14 more
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/mruby(Debian:14) | = 3.4.0-1~exp1 | No fix listed |
| debian/mruby(Debian:14) | = 3.4.0-1~exp2 | No fix listed |
| debian/mruby(Debian:14) | = 3.4.0-2 | No fix listed |
| debian/mruby(Debian:14) | = 3.4.0-3 | No fix listed |
| mruby | = 3.0 | No fix listed |
| mruby | = 3.1 | No fix listed |
| mruby | = 3.2 | No fix listed |
| mruby | = 3.3 | No fix listed |
| mruby | = 3.4.0 | No fix listed |
| ubuntu/mruby(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/mruby(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/mruby(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/mruby(Ubuntu:26.10) | All versions | No fix listed |
| mruby | <= 3.4.0 | No fix listed |
References
- MSRC Security Update Guide vendor-advisory
- Debian Security Tracker CVE-2025-13120 vendor-advisory
- VDB-332325 | mruby array.c sort_cmp use after free technical-description third-party-advisory vdb-entry
- VDB-332325 | CTI Indicators (IOB, IOC, IOA) permissions-required signature vdb-entry
- Submit #683435 | mruby 3.4.0 Use After Free third-party-advisory vdb-entry
- github.com exploit issue-tracking vendor-advisory
- github.com issue-tracking
- github.com patch
- github.com product
- Ubuntu CVE tracker vendor-advisory
- www.cve.org
- bugs.debian.org issue-tracking