Use-of-uninitialized-value in udiv - mruby

mruby Updated 02 Oct 2025

Summary

02/08/2022
MEDIUM
Yes i
Medium
Not published

OSV-2022-665: Use-of-uninitialized-value in udiv. Affects mruby versions >= de2ea3c389e4f5a4b0910fbf203b93d8cf409957, < 441c6ea30d52e25af56b79340b80b76763b4e453. Fixed in 441c6ea30d52e25af56b79340b80b76763b4e453. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

mruby is an open-source lightweight implementation of the Ruby programming language. It is designed to be embedded in other applications and provides a minimalistic and efficient runtime environment. The vulnerability in question affects mruby's udiv function, which is responsible for performing unsigned integer division. This vulnerability arises from the use of uninitialized values, leading to potential crashes or incorrect computation results.

Vulnerability Detail

The use-of-uninitialized-value vulnerability in mruby's udiv function can result in crashes or incorrect computation results. This vulnerability occurs when the function attempts to divide unsigned integers using uninitialized values. An attacker could potentially exploit this vulnerability to cause a denial-of-service condition or manipulate computation results, leading to unexpected behavior in applications utilizing mruby. The vulnerability has a medium severity rating.

How To Fix

Minimum fixed version

441c6ea30d52e25af56b79340b80b76763b4e453

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no specific workaround provided for this vulnerability. It is recommended to apply the fix mentioned in the 'how_to_fix' section to ensure the vulnerability is addressed.

Conclusion

The use-of-uninitialized-value vulnerability in mruby's udiv function can lead to crashes or incorrect computation results. It is crucial for developers to update their mruby installations to a version that includes the fix to mitigate the risk of exploitation. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for mruby →

Share this vulnerability

FAQ

mruby is a lightweight implementation of the Ruby programming language designed for embedding in other applications.

This vulnerability can result in crashes or incorrect computation results, potentially leading to denial-of-service conditions or unexpected behavior in applications utilizing mruby.

To fix this vulnerability, update your mruby installation to a version that includes the fix. Refer to the 'how_to_fix' section for more details.

No specific workaround is provided for this vulnerability. It is recommended to apply the fix mentioned in the 'how_to_fix' section.

This vulnerability has a medium severity rating.

Related vulnerabilities

Recent vulnerabilities recorded for mruby.

How To Fix

Minimum fixed version

441c6ea30d52e25af56b79340b80b76763b4e453

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback