mruby array.c sort_cmp use after free (mruby)
At a glance
- Source
- NVD
- EPSS
- EPSS 0.16 % Β· percentile 5 ()
- State
- PUBLISHED
- Published
- Updated
- Assigner
- VulDB
- NVD status
- Modified
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.
Weaknesses (CWE)
- CWE-416 β Use After Free
- CWE-119 β Improper Restriction of Operations within the Bounds of a Memory Buffer
References
- https://vuldb.com/?id.332325
- https://vuldb.com/?ctiid.332325
- https://vuldb.com/?submit.683435
- https://github.com/mruby/mruby/issues/6649
- https://github.com/makesoftwaresafe/mruby/pull/263
- https://github.com/mruby/mruby/issues/6649#issue-3534393003
- https://github.com/mruby/mruby/commit/eb398971bfb43c38db3e04528b68ac9a7ce509bc
- https://github.com/mruby/mruby/
Scores
| Version | Score | Vector | Scored by |
|---|---|---|---|
| CVSS 4.0 | MEDIUM 4.8 | 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 |
| CVSS 3.1 | MEDIUM 5.3 | 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 |
| CVSS 3.0 | MEDIUM 5.3 | 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 |
| CVSS 2.0 | MEDIUM 4.3 | AV:L/AC:L/Au:S/C:P/I:P/A:P/E:POC/RL:OF/RC:C | VulDB |
| CVSS 4.0 | LOW 1.9 | 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/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X | NVD Β· cna@vuldb.com (Secondary) |
| CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L | NVD Β· cna@vuldb.com (Secondary) |
| CVSS 3.1 | MEDIUM 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H | NVD Β· nvd@nist.gov (Primary) |
| CVSS 2.0 | MEDIUM 4.3 | AV:L/AC:L/Au:S/C:P/I:P/A:P | NVD Β· cna@vuldb.com (Secondary) |
European references
- ENISA EUVD Β· EUVD-2025-175315
- GCVE Β· GCVE-0-2025-13120
Affected configurations (NVD CPE)
cpe:2.3:a:mruby:mruby:*:*:*:*:*:ruby:*:*β€ 3.4.0
Affected products
| Product | Versions |
|---|---|
| mruby | affected 3.0 ; affected 3.1 ; affected 3.2 ; affected 3.3 ; affected 3.4.0 |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST β attribution requested |
| ENISA EUVD | ENISA β reproduction authorised, source acknowledged |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain β this product uses data from the NVD API but is not endorsed or certified by the NVD |