CVE-2025-13120
published medium CVSS 4.0 · 4.8mruby array.c sort_cmp use after free
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | mruby3.0 · 3.1 · 3.2 · 3.3 · 3.4.0 | Affected | Not stated | 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 4.8 / 10
- Severity
- medium
- Provider
- VulDB · cna
- Vector string
- 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
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 5.3 | medium | VulDB · cna | 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 | — |
| 3.0 | 5.3 | medium | VulDB · cna | 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 | — |
| 2.0 | 4.3 | medium | VulDB · cna | AV:L/AC:L/Au:S/C:P/I:P/A:P/E:POC/RL:OF/RC:C | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | mruby | 3.0 (affected)3.1 (affected)3.2 (affected)3.3 (affected)3.4.0 (affected) | VulDB · cna |
Weaknesses
2- CWE-416 Use After Free
- CWE-119 Memory Corruption
References
8- https://github.com/makesoftwaresafe/mruby/pull/263
- https://github.com/mruby/mruby/
- https://github.com/mruby/mruby/commit/eb398971bfb43c38db3e04528b68ac9a7ce509bc
- https://github.com/mruby/mruby/issues/6649
- https://github.com/mruby/mruby/issues/6649#issue-3534393003
- VDB-332325 | CTI Indicators (IOB, IOC, IOA) https://vuldb.com/?ctiid.332325
- VDB-332325 | mruby array.c sort_cmp use after free https://vuldb.com/?id.332325
- Submit #683435 | mruby 3.4.0 Use After Free https://vuldb.com/?submit.683435
Provider assertions
2VulDB · cna
mruby array.c sort_cmp use after free
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 09baad1cb44ed117235bce36685e76c0a1097ad8e5716dc677017a330672e4cf
- Ingested
- 23 Sep 2026, 08:37:10 UTC
- Source record
- Official CVE record