4.8medium
mruby array.c sort_cmp use after free
- Severity
- 4.8medium CVSS:4.0 by VulDB
- Exploit likelihood
- 0.16% (higher than 5% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- VulDB
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| mruby | 3.0, 3.1, 3.2, 3.3, 3.4.0 | CVE List |
| mruby mruby | up to 3.4.0 | NVD |
All scores
| VulDB | 4.8medium CVSS:4.0 | 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 | 5.3medium CVSS:3.1 | 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 | 5.3medium CVSS:3.0 | 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 | 4.3medium CVSS:2.0 | AV:L/AC:L/Au:S/C:P/I:P/A:P/E:POC/RL:OF/RC:C |
| NVD | 5.5medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Classification
What each source says
CVE List
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.
NVD (es)
Una vulnerabilidad ha sido encontrada en mruby hasta 3.4.0. Esta vulnerabilidad afecta a la función sort_cmp del archivo src/array.c. Dicha manipulación conduce a uso después de liberar. Un ataque debe ser abordado localmente. El exploit ha sido divulgado al público y puede ser usado. El nombre del parche es eb398971bfb43c38db3e04528b68ac9a7ce509bc. Es aconsejable implementar un parche para corregir este problema.
References
| https://vuldb.com/?id.332325 | technical-description, third-party-advisory, vdb-entry | |
| https://vuldb.com/?ctiid.332325 | permissions-required, signature, vdb-entry | |
| https://vuldb.com/?submit.683435 | third-party-advisory, vdb-entry | |
| https://github.com/mruby/mruby/issues/6649 | issue-tracking, vendor-advisory | |
| https://github.com/makesoftwaresafe/mruby/pull/263 | issue-tracking | |
| https://github.com/mruby/mruby/issues/6649#issue-3534393003 | exploit, issue-tracking, vendor-advisory | |
| https://github.com/mruby/mruby/commit/eb398971bfb43c38db3e04528b68ac9a7ce509bc | patch | |
| https://github.com/mruby/mruby/ | product | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-13120 changed 2026-03-04 | CVE Terms of Use |
| NVD | CVE-2025-13120 changed 2026-10-19 | Public domain |