CVE-2021-31810
JSON

5.8medium

An issue was discovered in Ruby through 2.6.7, 2.7.x through 2.7.3, and 3.x through 3.0.1.

Severity
5.8medium CVSS:3.1 by NVD
Exploit likelihood
3.10% (higher than 88% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre
Also known as
BIT-RUBY-2021-31810BIT-RUBY-MIN-2021-31810

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

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
ruby-lang rubyup to 2.6.7, from 2.7.0 up to 2.7.3, from 3.0.0 up to 3.0.1NVD
debian debian_linux9.0NVD
oracle jd_edwards_enterpriseone_toolsbefore 9.2.6.1NVD
ruby (Bitnami)before 2.6.8, from 2.7.0 before 2.7.4, from 3.0.0 before 3.0.2Bitnami Vulnerability Database
ruby-min (Bitnami)before 2.6.8, from 2.7.0 before 2.7.4, from 3.0.0 before 3.0.2Bitnami Vulnerability Database

All scores

NVD5.8medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N
NVD5.0medium CVSS:2.0AV:N/AC:L/Au:N/C:P/I:N/A:N
Bitnami Vulnerability Databasemedium rating

What each source says

CVE List

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

NVD (es)

Se ha detectado un problema en Ruby versiones hasta 2.6.7, versiones 2.7.x hasta 2.7.3, y versiones 3.x hasta 3.0.1. Un servidor FTP malicioso puede usar la respuesta PASV para engañar a la función Net::FTP para que se conecte de nuevo a una dirección IP y un puerto determinados. Esto potencialmente hace que curl extraiga información sobre servicios que de otra manera son privados y no son divulgados (por ejemplo, el atacante puede conducir escaneos de puertos y extracciones de banners de servicios)

References

https://hackerone.com/reports/1145454advisory, exploit, patch, third-party-advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MWXHK5UUHVSHF7HTHMX6JY3WXDVNIHSL/vendor-advisory, web
https://lists.debian.org/debian-lts-announce/2021/10/msg00009.htmladvisory, mailing-list, third-party-advisory
https://www.oracle.com/security-alerts/cpuapr2022.htmladvisory, patch, third-party-advisory
https://www.ruby-lang.org/en/news/2021/07/07/trusting-pasv-responses-in-net-ftp/advisory, vendor-advisory
https://security.netapp.com/advisory/ntap-20210917-0001/advisory, third-party-advisory
https://lists.debian.org/debian-lts-announce/2023/04/msg00033.htmlmailing-list, web
https://security.gentoo.org/glsa/202401-27vendor-advisory, web
https://nvd.nist.gov/vuln/detail/CVE-2021-31810web

Sources

SourceRecordLicence
CVE ListCVE-2021-31810 changed 2024-08-03CVE Terms of Use
NVDCVE-2021-31810 changed 2026-06-17Public domain
Bitnami Vulnerability DatabaseBIT-RUBY-2021-31810 changed 2026-09-08Apache-2.0
Bitnami Vulnerability DatabaseBIT-RUBY-MIN-2021-31810 changed 2026-09-08Apache-2.0