UNKNOWN READ vulnerability in mruby
Summary
OSV-2020-739: UNKNOWN READ in str_decref. Affects mruby versions >= caba5fef274ab7df91b7247182ecbf2483b853b8, < 45aa5081e418423b47a32a06e0515406f63b64d2. Fixed in 45aa5081e418423b47a32a06e0515406f63b64d2. How to fix ↓
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.
No signup required · Results in about 60 seconds
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 →
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]
References
Related vulnerabilities
Recent vulnerabilities recorded for mruby.