p PatchFirst

CVE-2025-13120

CVE-2025-13120 · mruby array.c sort_cmp use after free

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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.

CVSS 4.8 · Medium · EPSS 0.2% · Fix available

Published
Updated

Stack: system

Affected products and versions

  • mruby

    Versions
    • 3.0: Affected
    • 3.1: Affected
    • 3.2: Affected
    • 3.3: Affected
    • 3.4.0: Affected

    No fix published

  • mruby Debian:12

    Versions
    • 3.1.0-3
    • 3.2.0-1
    • 3.2.0-2
    • 3.3.0-1
    • 3.3.0~rc2-1
    • 3.4.0-1
    • 3.4.0-1~exp1
    • 3.4.0-1~exp2
    • 3.4.0-2
    • 3.4.0-3
    • 4.0.0-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • mruby Debian:13

    Versions
    • 3.3.0-1
    • 3.4.0-1
    • 3.4.0-1~exp1
    • 3.4.0-1~exp2
    • 3.4.0-2
    • 3.4.0-3
    • 4.0.0-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • mruby Debian:14

    Versions
    • 3.3.0-1
    • 3.4.0-1
    • 3.4.0-1~exp1
    • 3.4.0-1~exp2
    • 3.4.0-2
    • 3.4.0-3
    Affected ranges
    • ECOSYSTEM: < 4.0.0-1

    Update to 4.0.0-1

  • mruby Ubuntu:16.04:LTS

    Versions
    • 1.1.0+20150817+gita1731254-1
    • 1.1.0+20150906+git1cbbb7e1-1
    • 1.2.0+20160315+git4f20d58a-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • mruby Ubuntu:18.04:LTS

    Versions
    • 1.3.0-1
    • 1.3.0+20170925+git38185028-1
    • 1.3.0+20171029+git77edafb0-1
    • 1.4.0-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • mruby Ubuntu:20.04:LTS

    Versions
    • 2.0.0-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • mruby Ubuntu:22.04:LTS

    Versions
    • 2.1.2-3
    • 3.0.0-1
    • 3.0.0-3
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • mruby Ubuntu:24.04:LTS

    Versions
    • 3.2.0-1
    • 3.2.0-2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • mruby Ubuntu:25.10

    Versions
    • 3.3.0-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • mruby Ubuntu:26.10

    Versions
    • 3.4.0-2
    • 3.4.0-3
    • 4.0.0-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • mruby Ubuntu:26.04:LTS

    Versions
    • 3.3.0-1
    • 3.4.0-2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

Original sources

Check your server →