Moderate: ruby:3.3 security, bug fix, and enhancement update
Summary
ALSA-2024:3670: Moderate: ruby:3.3 security, bug fix, and enhancement update. Affects ruby versions < 3.3.1-2.module_el8.10.0+3855+767cb125. Fixed in 3.3.1-2.module_el8.10.0+3855+767cb125. 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
Ruby is an extensible, interpreted, object-oriented, scripting language. It has features to process text files and to perform system management tasks. The vulnerability affects the following packages: ruby, ruby-bundled-gems, ruby-default-gems, ruby-devel, ruby-doc, ruby-libs, rubygem-abrt, rubygem-abrt-doc, rubygem-bigdecimal, rubygem-bundler, rubygem-io-console, rubygem-irb, rubygem-json, rubygem-minitest, rubygem-mysql2, rubygem-mysql2-doc, rubygem-pg, rubygem-pg-doc, rubygem-power_assert, rubygem-psych, rubygem-racc, rubygem-rake, rubygem-rbs, rubygem-rdoc, rubygem-rexml, rubygem-rss, rubygem-test-unit, rubygem-typeprof, rubygems, and rubygems-devel.
Vulnerability Detail
The vulnerability includes three security issues:
- Buffer overread vulnerability in StringIO (CVE-2024-27280)
- RCE vulnerability with .rdoc_options in RDoc (CVE-2024-27281)
- Arbitrary memory address read vulnerability with Regex search (CVE-2024-27282)
These vulnerabilities can lead to various security risks, including potential remote code execution and arbitrary memory address read.
How To Fix
Minimum fixed version
3.3.1-2.module_el8.10.0+3855+767cb125
This is the first release that contains the fix.
sudo dnf update ruby
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
No workaround has been provided for this vulnerability.
Conclusion
In conclusion, the Ruby packages are affected by three security vulnerabilities that can lead to remote code execution and arbitrary memory address read. It is crucial to upgrade the affected packages to the fixed version (ruby 3.3.1-2.module_el8.10.0+3855+767cb125) to mitigate these risks. For further support on vulnerability remediation, you can contact DevNack.com.
See every vulnerability recorded for ruby →
FAQ
These vulnerabilities can lead to remote code execution and arbitrary memory address read, potentially allowing attackers to execute malicious code or access sensitive information.
You can use Vulert's playground (https://vulert.com/scanner) to check if your application is affected by this vulnerability. Simply upload your manifest file (e.g., package-lock.json) and Vulert will analyze it for open-source vulnerabilities in real-time.
There are no known exploits for these vulnerabilities at the moment. However, it is important to apply the recommended fix to mitigate any potential risks.
You can find more details about these vulnerabilities, including the impact, CVSS score, acknowledgments, and related information, on the CVE pages: CVE-2024-27280, CVE-2024-27281, and CVE-2024-27282.
You can refer to the AlmaLinux advisory page (https://github.com/AlmaLinux/osv-database/blob/master/advisories/almalinux8/ALSA-2024:3670.json) for more information about the fix and the specific packages that have been upgraded.
Related vulnerabilities
Recent vulnerabilities recorded for ruby.