Vulnerability · Published Nov 7, 2025 · Assigned by VulDB
CVE-2025-12875mruby array.c ary_fill_exec out-of-bounds write
Medium 5.3
In plain English
A medium-severity out-of-bounds write in mruby. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 7% of all known vulnerabilities).
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | mruby | no fix listed | DEBIAN-CVE-2025-12875 |
| Debian:13 | mruby | no fix listed | DEBIAN-CVE-2025-12875 |
| Debian:14 | mruby | no fix listed | DEBIAN-CVE-2025-12875 |
| Ubuntu:22.04:LTS | mruby | no fix listed | UBUNTU-CVE-2025-12875 |
| Ubuntu:24.04:LTS | mruby | no fix listed | UBUNTU-CVE-2025-12875 |
| Ubuntu:25.10 | mruby | no fix listed | UBUNTU-CVE-2025-12875 |
| Ubuntu:26.04:LTS | mruby | no fix listed | UBUNTU-CVE-2025-12875 |
| Ubuntu:26.10 | mruby | no fix listed | UBUNTU-CVE-2025-12875 |
Affected products (as reported)
Weakness: CWE-787, CWE-119 · Vector: 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
References
- VDB-331511 | mruby array.c ary_fill_exec out-of-bounds write vdb-entry, technical-description
- VDB-331511 | CTI Indicators (IOB, IOC, IOA) signature, permissions-required
- Submit #680879 | mruby 3.4.0 Out-of-bounds Write third-party-advisory
- https://github.com/mruby/mruby/issues/6650 issue-tracking
- https://github.com/mruby/mruby/issues/6650#event-20443453808 issue-tracking
- https://github.com/mruby/mruby/issues/6650#issuecomment-3430851605 exploit, issue-tracking
- https://github.com/makesoftwaresafe/mruby/commit/93619f06dd378db6766666b30c08978311c7ec94 patch
- https://github.com/mruby/mruby/ product