CVE-2021-31810

MEDIUMCVSS 5.8/10EPSS 3.05%

Last modified

CVE-2021-31810 is a medium-severity vulnerability rated 5.8/10 on the CVSS scale. An issue was discovered in Ruby through 2.6.7, 2.7.x through 2.7.3, and 3.x through 3.0.1. A malicious FTP server can use the PASV response to trick Net::FTP into connecting back to a given IP address and port. EPSS estimates a 3.05% chance of exploitation in the next 30 days.

Description

An issue was discovered in Ruby through 2.6.7, 2.7.x through 2.7.3, and 3.x through 3.0.1. A malicious FTP server can use the PASV response to trick Net::FTP into connecting back to a given IP address and port. This potentially makes curl extract information about services that are otherwise private and not disclosed (e.g., the attacker can conduct port scans and service banner extractions).

Metrics

CVSS 3.1
5.8/10

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N

EPSS Probability
3.05%

85.9th percentile

Probability of exploitation in the next 30 days. Learn more

Affected Software

VendorProductVersions
Ruby-LangRuby<= 2.6.7
Ruby-LangRuby>= 2.7.0, <= 2.7.3
Ruby-LangRuby>= 3.0.0, <= 3.0.1
DebianDebian Linux9.0
OracleJd Edwards Enterpriseone Tools< 9.2.6.1

References

Timeline

Published
Last Modified
Status
Modified

Frequently Asked Questions

What is CVE-2021-31810?
An issue was discovered in Ruby through 2.6.7, 2.7.x through 2.7.3, and 3.x through 3.0.1. A malicious FTP server can use the PASV response to trick Net::FTP into connecting back to a given IP address and port. This potentially makes curl extract information about services that are otherwise private and not disclosed (e.g., the attacker can conduct port scans and service banner extractions).
How severe is CVE-2021-31810?
CVE-2021-31810 has a CVSS score of 5.8/10 (MEDIUM severity). The EPSS model estimates a 3.05% probability of exploitation in the next 30 days.
How do I fix CVE-2021-31810?
Check the vendor references and advisories linked above for patched versions and mitigation guidance. You can also run a Strix scan to test if your systems are affected.

Are you affected by CVE-2021-31810?

Run a free Strix scan to check your systems for this vulnerability.

Scan your code now

Source: NVD / NIST