Skip to content
OpenAdvisories
Medium · 5.3 CVE-2025-13120 EUVD-2025-175315GHSA-j383-q79v-268x

mruby array.c sort_cmp use after free

Published Nov 13, 2025 · Updated Mar 4, 2026 · Assigned by VulDB

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.

Affected products

VendorProductAffectedFixed
— mruby 3.0, 3.1, 3.2, 3.3, 3.4.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 mruby 4.0.0-1 —
Debian 13 mruby No fix yet —
Debian 12 mruby No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 mruby No fix yet —
Ubuntu 26.04 LTS mruby No fix yet —
Ubuntu 25.10 mruby No fix yet —
Ubuntu 24.04 LTS mruby No fix yet —
Ubuntu 22.04 LTS mruby No fix yet —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS mruby No fix yet —
Ubuntu 18.04 LTS mruby No fix yet —
Ubuntu 16.04 LTS mruby No fix yet —

References