Skip to content
Heist/ feed
Back to feed
High

mruby — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2025-12875

A weakness has been identified in mruby 3.4.0. This vulnerability affects the function ary_fill_exec of the file mrbgems/mruby-array-ext/src/array.c. Executing a manipulation of the argument start/length can lead to out-of-bounds write. The attack needs to be launched locally. The exploit has been made available to the public and could be used for attacks. This patch is called 93619f06dd378db6766666b30c08978311c7ec94. It is best practice to apply a patch to resolve this issue.

Products
mruby
Affected versions
1.1.0+20150817+gita1731254-1, 1.1.0+20150906+git1cbbb7e1-1, 1.2.0+20160315+git4f20d58a-1, 1.3.0+20170925+git38185028-1, 1.3.0+20171029+git77edafb0-1, 1.3.0-1, 1.4.0-1, 2.0.0-1, 2.1.2-3, 3.0.0-1, 3.0.0-3, 3.2.0-1, 3.2.0-2, 3.3.0-1, 3.4.0-2, 3.4.0-3, 4.0.0-1
Fixed versions
Not specified
CVEs
CVE-2025-12875
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 01:24 UTC · Revision 1

Source evidence

UBUNTU-CVE-2025-12875

core-osv · Original source

Published 7 Nov 2025, 21:15 UTC

A weakness has been identified in mruby 3.4.0. This vulnerability affects the function ary_fill_exec of the file mrbgems/mruby-array-ext/src/array.c. Executing a manipulation of the argument start/length can lead to out-of-bounds write. The attack needs to be launched locally. The exploit has been made available to the public and could be used for attacks. This patch is called 93619f06dd378db6766666b30c08978311c7ec94. It is best practice to apply a patch to resolve this issue.

osv:UBUNTU-CVE-2025-12875

mruby

Fixed versions: Not specified

mruby

Fixed versions: Not specified

mruby

Fixed versions: Not specified

mruby

Fixed versions: Not specified

mruby

Fixed versions: Not specified

mruby

Fixed versions: Not specified

mruby

Fixed versions: Not specified

mruby

Fixed versions: Not specified

Complete source record
{
  "id": "d4854c50c6b74e15aec895992b5c08af3061003a64798746154df26b9b1853d4",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2025-12875",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2025-12875",
    "summary": "A weakness has been identified in mruby 3.4.0. This vulnerability affects the function ary_fill_exec of the file mrbgems/mruby-array-ext/src/array.c. Executing a manipulation of the argument start/length can lead to out-of-bounds write. The attack needs to be launched locally. The exploit has been made available to the public and could be used for attacks. This patch is called 93619f06dd378db6766666b30c08978311c7ec94. It is best practice to apply a patch to resolve this issue.",
    "evidence": "osv:UBUNTU-CVE-2025-12875",
    "products": [
      {
        "name": {
          "value": "mruby",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.1.0+20150817+gita1731254-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.1.0+20150906+git1cbbb7e1-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.2.0+20160315+git4f20d58a-1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "mruby",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.3.0-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "1.3.0+20170925+git38185028-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "1.3.0+20171029+git77edafb0-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "1.4.0-1",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "mruby",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.0.0-1",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "mruby",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.1.2-3",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "3.0.0-1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "3.0.0-3",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "mruby",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3.2.0-1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "3.2.0-2",
            "evidence": "/affected/4/versions"
          }
        ]
      },
      {
        "name": {
          "value": "mruby",
          "evidence": "/affected/5/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3.3.0-1",
            "evidence": "/affected/5/versions"
          }
        ]
      },
      {
        "name": {
          "value": "mruby",
          "evidence": "/affected/6/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3.4.0-2",
            "evidence": "/affected/6/versions"
          },
          {
            "value": "3.4.0-3",
            "evidence": "/affected/6/versions"
          },
          {
            "value": "4.0.0-1",
            "evidence": "/affected/6/versions"
          }
        ]
      },
      {
        "name": {
          "value": "mruby",
          "evidence": "/affected/7/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3.3.0-1",
            "evidence": "/affected/7/versions"
          },
          {
            "value": "3.4.0-2",
            "evidence": "/affected/7/versions"
          }
        ]
      }
    ],
    "severity": "high",
    "structured": {
      "id": "UBUNTU-CVE-2025-12875",
      "aliases": [
        "UBUNTU-CVE-2025-12875"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L"
        },
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
        },
        {
          "type": "CVSS_V4",
          "score": "CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "mruby",
            "purl": "pkg:deb/ubuntu/mruby?arch=source&distro=xenial",
            "ecosystem": "Ubuntu:16.04:LTS"
          },
          "versions": [
            "1.1.0+20150817+gita1731254-1",
            "1.1.0+20150906+git1cbbb7e1-1",
            "1.2.0+20160315+git4f20d58a-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-12875.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "mruby",
                "binary_version": "1.2.0+20160315+git4f20d58a-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "mruby",
            "purl": "pkg:deb/ubuntu/mruby?arch=source&distro=bionic",
            "ecosystem": "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"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-12875.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "mruby",
                "binary_version": "1.4.0-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "mruby",
            "purl": "pkg:deb/ubuntu/mruby?arch=source&distro=focal",
            "ecosystem": "Ubuntu:20.04:LTS"
          },
          "versions": [
            "2.0.0-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-12875.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "mruby",
                "binary_version": "2.0.0-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "mruby",
            "purl": "pkg:deb/ubuntu/mruby?arch=source&distro=jammy",
            "ecosystem": "Ubuntu:22.04:LTS"
          },
          "versions": [
            "2.1.2-3",
            "3.0.0-1",
            "3.0.0-3"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-12875.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "mruby",
                "binary_version": "3.0.0-3"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "mruby",
            "purl": "pkg:deb/ubuntu/mruby?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "3.2.0-1",
            "3.2.0-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-12875.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "mruby",
                "binary_version": "3.2.0-2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "mruby",
            "purl": "pkg:deb/ubuntu/mruby?arch=source&distro=questing",
            "ecosystem": "Ubuntu:25.10"
          },
          "versions": [
            "3.3.0-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-12875.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "mruby",
                "binary_version": "3.3.0-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "mruby",
            "purl": "pkg:deb/ubuntu/mruby?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "3.4.0-2",
            "3.4.0-3",
            "4.0.0-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-12875.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "mruby",
                "binary_version": "4.0.0-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "mruby",
            "purl": "pkg:deb/ubuntu/mruby?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "3.3.0-1",
            "3.4.0-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-12875.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "mruby",
                "binary_version": "3.4.0-2"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T12:56:48.040961287Z",
      "provider": "osv",
      "upstream": [
        "CVE-2025-12875"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2025-12875",
        "https://www.cve.org/CVERecord?id=CVE-2025-12875",
        "https://github.com/mruby/mruby/issues/6650",
        "https://github.com/makesoftwaresafe/mruby/commit/93619f06dd378db6766666b30c08978311c7ec94",
        "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"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2025-12875",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/1/score"
  },
  "source_id": "core-osv",
  "document_id": 356304,
  "published_at": "2025-11-07T21:15:00+00:00"
}