Code execution in mruby



Risk Low
Patch available YES
Number of vulnerabilities 1
CVE-ID CVE-2025-12875
CWE-ID CWE-119
Exploitation vector Local
Public exploit Public exploit code for vulnerability #1 is available.
Vulnerable software
mruby
Universal components / Libraries / Scripting languages

Vendor mruby

Security Bulletin

This security bulletin contains one low risk vulnerability.

1) Buffer overflow

EUVDB-ID: #VU118342

Risk: Low

CVSSv4.0: 7.1 [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 - Memory corruption

Exploit availability: Yes

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.

Mitigation

Install updates from vendor's website.

Vulnerable software versions

mruby: 3.4.0

CPE2.3 External links

https://github.com/makesoftwaresafe/mruby/commit/93619f06dd378db6766666b30c08978311c7ec94
https://github.com/mruby/mruby/issues/6650
https://github.com/mruby/mruby/issues/6650#event-20443453808
https://github.com/mruby/mruby/issues/6650#issuecomment-3430851605
https://vuldb.com/?ctiid.331511
https://vuldb.com/?id.331511
https://vuldb.com/?submit.680879


Q & A

Can this vulnerability be exploited remotely?

No. This vulnerability can be exploited locally. The attacker should have authentication credentials and successfully authenticate on the system.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability. However, proof of concept for this vulnerability is available.



###SIDEBAR###