UNKNOWN READ vulnerability in mruby

mruby Updated 02 Oct 2025

Summary

01/07/2020
MEDIUM
Yes i
Medium
Not published

OSV-2020-739: UNKNOWN READ in str_decref. Affects mruby versions >= caba5fef274ab7df91b7247182ecbf2483b853b8, < 45aa5081e418423b47a32a06e0515406f63b64d2. Fixed in 45aa5081e418423b47a32a06e0515406f63b64d2. 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 embeddable and portable, making it suitable for use in resource-constrained environments. This vulnerability affects the mruby package and can lead to an UNKNOWN READ crash when certain conditions are met.

Vulnerability Detail

The vulnerability originates from a crash state in the str_decref function, which is part of the garbage collection process in mruby. When triggered, it can result in an UNKNOWN READ operation, potentially leading to a crash or other unexpected behavior. The impact of this vulnerability can vary depending on the specific usage of mruby in an application.

How To Fix

Minimum fixed version

45aa5081e418423b47a32a06e0515406f63b64d2

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 mentioned for this vulnerability.

Conclusion

In conclusion, the UNKNOWN READ vulnerability in mruby can lead to crashes or other unexpected behavior. It is recommended to update the mruby package to a version that includes the fix to address this vulnerability. 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 that is designed to be embeddable and portable.

The impact of this vulnerability can vary depending on the specific usage of mruby in an application. It can potentially lead to crashes or other unexpected behavior.

To fix this vulnerability, it is recommended to update the mruby package to a version that includes the fix. The fix was implemented in commit 45aa5081e418423b47a32a06e0515406f63b64d2.

There is no specific workaround mentioned for this vulnerability.

More information about this vulnerability can be found in the OSS-Fuzz report: [link to the report]

Related vulnerabilities

Recent vulnerabilities recorded for mruby.

How To Fix

Minimum fixed version

45aa5081e418423b47a32a06e0515406f63b64d2

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