Use After Free Vulnerability in mruby by mruby
CVE-2025-13120

4.8MEDIUM

Key Information:

Vendor

mruby

Status
Vendor
CVE Published:
13 November 2025

Badges

👾 Exploit Exists🟡 Public PoC

What is CVE-2025-13120?

A use after free vulnerability has been identified in mruby versions up to 3.4.0, specifically impacting the sort_cmp function in the src/array.c file. This flaw allows an attacker with local access to exploit the vulnerability potentially leading to unauthorized memory manipulation. Public disclosures regarding this issue have emerged, emphasizing the necessity for users to apply the patch identified by commit eb398971bfb43c38db3e04528b68ac9a7ce509bc to mitigate the risks associated with this vulnerability.

Affected Version(s)

mruby 3.0

mruby 3.1

mruby 3.2

Exploit Proof of Concept (PoC)

PoC code is written by security researchers to demonstrate the vulnerability can be exploited. PoC code is also a key component for weaponization which could lead to ransomware.

References

CVSS V4

Score:
4.8
Severity:
MEDIUM
Confidentiality:
Low
Integrity:
Low
Availability:
Low
Attack Vector:
Local
Attack Complexity:
Low
Attack Required:
None
Privileges Required:
Undefined
User Interaction:
None

Timeline

  • 🟡

    Public PoC available

  • 👾

    Exploit known to exist

  • Vulnerability published

  • Vulnerability Reserved

Credit

tjbecker (VulDB User)
.
CVE-2025-13120 : Use After Free Vulnerability in mruby by mruby