CVE-2025-13120
JSON

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 packageVersionsReported by
mruby3.0, 3.1, 3.2, 3.3, 3.4.0CVE List
mruby mrubyup to 3.4.0NVD

All scores

VulDB4.8medium CVSS:4.0CVSS: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
VulDB5.3medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L/E:P/RL:O/RC:C
VulDB5.3medium CVSS:3.0CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L/E:P/RL:O/RC:C
VulDB4.3medium CVSS:2.0AV:L/AC:L/Au:S/C:P/I:P/A:P/E:POC/RL:OF/RC:C
NVD5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Classification

CWE-119CWE-416

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

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

Sources

SourceRecordLicence
CVE ListCVE-2025-13120 changed 2026-03-04CVE Terms of Use
NVDCVE-2025-13120 changed 2026-10-19Public domain