Important: ruby:2.7 security update

ruby Updated 02 Oct 2025

Summary

05/08/2021
N/A
Yes i
High
8.8

RLSA-2021:3020: Important: ruby:2.7 security update. Affects ruby versions < 0:2.7.4-137.module+el8.4.0+629+f8f0bf91. Fixed in 0:2.7.4-137.module+el8.4.0+629+f8f0bf91. 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 Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Ruby is an extensible, interpreted, object-oriented, scripting language. It has features to process text files and to perform system management tasks.

Vulnerability Detail

This security update addresses multiple vulnerabilities in the Ruby package:

  1. CVE-2020-36327: Dependencies of gems with explicit source may be installed from a different source.
  2. CVE-2021-31799: Command injection vulnerability in RDoc.
  3. CVE-2021-31810: FTP PASV command response can cause Net::FTP to connect to an arbitrary host.
  4. CVE-2021-32066: StartTLS stripping vulnerability in Net::IMAP.

These vulnerabilities can lead to various security issues, including arbitrary code execution, command injection, and unauthorized network connections.

How To Fix

Minimum fixed version

0:2.7.4-137.module+el8.4.0+629+f8f0bf91

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 →

Conclusion

In conclusion, it is crucial to update the Ruby package to address these vulnerabilities and ensure the security of your system. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for ruby →

Share this vulnerability

FAQ

Ruby is an extensible, interpreted, object-oriented, scripting language used for processing text files and performing system management tasks.

These vulnerabilities can lead to arbitrary code execution, command injection, and unauthorized network connections, posing a significant security risk.

To fix these vulnerabilities, update the Ruby package to version 2.7.4-137.module+el8.4.0+629+f8f0bf91 or later.

No specific workarounds have been provided for these vulnerabilities.

You can find more information about these vulnerabilities in the CVE pages listed in the References section.

Related vulnerabilities

Recent vulnerabilities recorded for ruby.

How To Fix

Minimum fixed version

0:2.7.4-137.module+el8.4.0+629+f8f0bf91

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 →

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