CVE & CISA-KEV Catalog

CVE-2021-31810

MEDIUMEPSS 86th pctl
5.8
CVSS v3
NVD

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).

How to fix

Remediation Available
jrubyDebian
Fixed in:9.3.9.0+ds-1CVE-2021-31810
Fixed in:9.3.9.0+ds-1CVE-2021-31810
Fixed in:9.3.9.0+ds-1CVE-2021-31810
ruby4Rocky
Fixed in:0-main@aarch64RHSA-2026:8838
Fixed in:0-main@noarchRHSA-2026:8838
Fixed in:0-main@x86_64RHSA-2026:8838
Fixed in:0-main@srcRHSA-2026:8838
ruby4Red Hat / RHEL
Fixed in:0-main@noarchRHSA-2026:8838
Fixed in:0-main@aarch64RHSA-2026:8838
Fixed in:0-main@srcRHSA-2026:8838
Fixed in:0-main@x86_64RHSA-2026:8838
libruby2.3Ubuntu
Fixed in:2.3.1-2~ubuntu16.04.16+esm1USN-5020-1
libruby2.5Ubuntu
Fixed in:2.5.1-1ubuntu1.10USN-5020-1
libruby2.7Ubuntu
Fixed in:2.7.0-5ubuntu1.5USN-5020-1
ruby2.3Ubuntu
Fixed in:2.3.1-2~ubuntu16.04.16+esm1USN-5020-1
ruby2.5Ubuntu
Fixed in:2.5.1-1ubuntu1.10USN-5020-1
ruby2.7Ubuntu
Fixed in:2.7.0-5ubuntu1.5USN-5020-1

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorNetwork
Attack ComplexityLow
Privileges RequiredNone
User InteractionNone
ScopeChanged

Impact

ConfidentialityLow
IntegrityNone
AvailabilityNone

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

Exploit Intelligence

3.05%probability of exploitation in 30 days
86thpercentile

Elevated risk: more likely to be exploited than 86% of all known CVEs.

References

Embed a live status badge for CVE-2021-31810
CVE-2021-31810 severity badge

Markdown

[![CVE-2021-31810](https://tridentstack.com/cve/badge/CVE-2021-31810.svg)](https://tridentstack.com/cve/CVE-2021-31810)

HTML

<a href="https://tridentstack.com/cve/CVE-2021-31810"><img src="https://tridentstack.com/cve/badge/CVE-2021-31810.svg" alt="CVE-2021-31810"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

Start free

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2024-11-21.