Buffer overflow in mruby - CVE-2025-12875

 

Buffer overflow in mruby - CVE-2025-12875

Published: November 12, 2025


Vulnerability identifier: #VU118342
CSH Severity: Low
CVSS v4.0: CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P/U:Clear
CVE-ID: CVE-2025-12875
CWE-ID: CWE-119
Exploitation vector: Local access
Exploit availability: Public exploit is available
Vendor: mruby
Affected software:
mruby

Detailed vulnerability description

The vulnerability allows a local user to execute arbitrary code on the target system.

The vulnerability exists due to a boundary error in the "ary_fill_exec" function in the "mrbgems/mruby-array-ext/src/array.c" file. A local user can trigger memory corruption and execute arbitrary code on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.


How to mitigate CVE-2025-12875

Install updates from vendor's website.

Sources