CVE-2025-13120

MEDIUM
Published Nov 13, 2025 Modified Apr 29, 2026 CWE-119 CWE-416

Description

A vulnerability has been found in mruby up to 3.4.0. This vulnerability affects the function sort_cmp of the file src/array.c. Such manipulation leads to use after free. An attack has to be approached locally. The exploit has been disclosed to the public and may be used. The name of the patch is eb398971bfb43c38db3e04528b68ac9a7ce509bc. It is advisable to implement a patch to correct this issue.

Is your site exposed to CVE-2025-13120?

Run a free security scan — no signup, results in seconds.

CVSS v3.1 Score

5.3
MEDIUM
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L

Weakness Type (CWE)

CWE-119 Buffer Overflow
CWE-416 Use After Free

Affected Products

Vendor Product
mruby mruby

References

Frequently Asked Questions

What is CVE-2025-13120? +
A vulnerability has been found in mruby up to 3.4.0. This vulnerability affects the function sort_cmp of the file src/array.c. Such manipulation leads to use after free. An attack has to be approached locally. The exploit has been disclosed to the public and may be used. The name of the patch is eb398971bfb43c38db3e04528b68ac9a7ce509bc. It is advisable to implement a patch to correct this issue. It has a CVSS v3.1 base score of 5.3 (MEDIUM).
How severe is CVE-2025-13120? +
CVE-2025-13120 has a CVSS v3.1 score of 5.3 out of 10, rated MEDIUM. This is a medium-severity vulnerability that should be remediated as part of regular maintenance.
What products are affected by CVE-2025-13120? +
CVE-2025-13120 affects products from mruby, specifically: mruby. Check the affected products table above for specific version ranges.
How do I check if I'm vulnerable to CVE-2025-13120? +
You can use Secably's free Website Scanner to check your website for known vulnerabilities. For infrastructure scanning, use the Port Scanner to identify exposed services that may be affected. Check the vendor advisories linked above for specific patch and version information.

Related Vulnerabilities

Don't wait for an exploit

Scan your website for vulnerabilities like CVE-2025-13120 — free, no signup required.