Buffer overflow in Mruby
CVE-2025-12875
A weakness has been identified in mruby 3.4.0. This vulnerability affects the function ary_fill_exec of the file mrbgems/mruby-array-ext/src/array.c. Executing a manipulation of the argument start/length can lead to out-of-bounds write. The attack needs to be launched locally. The exploit has been made available to the public and could be used for attacks. This patch is called 93619f06dd378db6766666b30c08978311c7ec94. It is best practice to apply a patch to resolve this issue.
Vulnerability class: Buffer Overflow
Published · last modified .
CVSS v3 metric
CVSS v3 base score 5.3 (Medium). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L.
EPSS exploit prediction
EPSS 0.002, 6.9th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Mruby — versions 3.4.0
- Mruby — versions 3.4.0
Weakness classification (CWE)
References
- VDB-331511 | mruby array.c ary_fill_exec out-of-bounds write (technical-description, Third Party Advisory, VDB Entry, vdb-entry)
- VDB-331511 | CTI Indicators (IOB, IOC, IOA) (signature, Permissions Required, permissions-required, VDB Entry)
- Submit #680879 | mruby 3.4.0 Out-of-bounds Write (Third Party Advisory, VDB Entry, third-party-advisory)
- github.com/mruby/mruby/issues/6650 (issue-tracking, Issue Tracking)
- github.com/mruby/mruby/issues/6650 (issue-tracking, Issue Tracking)
- github.com/mruby/mruby/issues/6650 (issue-tracking, Patch, exploit)
- github.com/makesoftwaresafe/mruby/commit/93619f06dd378db6766666b30c08978311c7ec… (Patch, patch)
- github.com/mruby/mruby/ (product)