Skip to main content

Mruby: Heap-buffer-overflow in udiv

0
Medium
Published: 08/07/2022 (08/07/2022, 00:01:59 UTC)
Source: GCVE Database
Product: mruby

Description

A heap-buffer-overflow vulnerability exists in the udiv function of mruby, as reported by OSS-Fuzz. This vulnerability involves a write overflow of 4 bytes on the heap. Multiple release candidate and stable versions of mruby from 3.2.0-rc through 4.1.0-rc are affected. No CVSS score or detailed impact analysis is provided, and no known exploits in the wild have been reported.

Affected software

OSS-Fuzzmore threats →ghsa
mruby
pkg:generic/mruby
Affected versions
>=e04184185ab43b94980550e850d8813a415fa438=3.2.0-rc=3.2.0-rc2=3.2.0-rc3=3.2.0-rc4=3.2.0=3.3.0-rc=3.3.0-rc2=3.3.0=3.4.0-rc=3.4.0=3.4.0-rc2=4.0.0-rc=4.0.0-rc2=4.0.0-rc3=4.0.0-rc4=4.0.0=4.1.0-rc

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/07/2026, 15:23:31 UTC

Technical Analysis

The vulnerability is a heap-buffer-overflow write of 4 bytes occurring in the udiv function within mruby. The issue was identified by OSS-Fuzz and is documented under OSV-2022-679. The crash state includes functions udiv, mrb_bint_mod, and int_mod, indicating the overflow occurs during integer division or modulo operations. Affected versions include multiple release candidates and stable releases from 3.2.0-rc up to 4.1.0-rc. No patch or remediation details are provided in the input data.

Potential Impact

The heap-buffer-overflow may lead to memory corruption, potentially causing crashes or undefined behavior in applications using affected mruby versions. No information about exploitation in the wild or further impact such as code execution is available.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory or OSS-Fuzz report for current remediation guidance. No official fix or patch links are provided in the data. Users should monitor official mruby channels for updates.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
OSV-2022-679
Osv Schema Version
1.3.0
Ecosystems
["OSS-Fuzz"]

Threat ID: 6a9af33facd9273b49e1cb8c

Added to database: 09/04/2026, 16:35:11 UTC

Last enriched: 09/07/2026, 15:23:31 UTC

Last updated: 10/04/2026, 09:15:56 UTC

Views: 132

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses