# CVE-2025-12875: mruby array.c ary_fill_exec out-of-bounds write

- Severity: Medium 4.8 (CVSS:4.0, scored by VulDB) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.18%, higher than 7% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2025-11-07T20:32:07.100Z
- Modified: 2026-10-19T13:10:00.110Z
- Weaknesses: CWE-119, CWE-787
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: VulDB

## 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.

(As written by CVE List.)

## Affected

- mruby: 3.4.0
- mruby mruby: 3.4.0

## Every score

- VulDB: CVSS:4.0 4.8 Medium `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 5.3 Medium `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 5.3 Medium `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 4.3 Medium `AV:L/AC:L/Au:S/C:P/I:P/A:P/E:POC/RL:OF/RC:C`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/mruby/mruby/issues/6650> (exploit, issue-tracking)
- <https://github.com/mruby/mruby/issues/6650#issuecomment-3430851605> (exploit, issue-tracking, patch)
- <https://vuldb.com/?id.331511> (technical-description, third-party-advisory, vdb-entry)
- <https://vuldb.com/?ctiid.331511> (permissions-required, signature, vdb-entry)
- <https://vuldb.com/?submit.680879> (third-party-advisory, vdb-entry)
- <https://github.com/mruby/mruby/issues/6650#event-20443453808> (issue-tracking)
- <https://github.com/makesoftwaresafe/mruby/commit/93619f06dd378db6766666b30c08978311c7ec94> (patch)
- <https://github.com/mruby/mruby/> (product)

## Sources

- CVE List: [CVE-2025-12875](https://www.cve.org/CVERecord?id=CVE-2025-12875), CVE Terms of Use, modified 2026-02-24
- NVD: [CVE-2025-12875](https://nvd.nist.gov/vuln/detail/CVE-2025-12875), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2025-12875 · Whole record: https://cve.day/CVE-2025-12875.json · Rebuilt by cve.day 2026-11-25T22:59:07.356Z
