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 package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| ruby-lang ruby | up to 2.6.7, from 2.7.0 up to 2.7.3, from 3.0.0 up to 3.0.1 | NVD |
| debian debian_linux | 9.0 | NVD |
| oracle jd_edwards_enterpriseone_tools | before 9.2.6.1 | NVD |
| ruby (Bitnami) | before 2.6.8, from 2.7.0 before 2.7.4, from 3.0.0 before 3.0.2 | Bitnami Vulnerability Database |
| ruby-min (Bitnami) | before 2.6.8, from 2.7.0 before 2.7.4, from 3.0.0 before 3.0.2 | Bitnami Vulnerability Database |
All scores
| NVD | 5.8medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N |
| NVD | 5.0medium CVSS:2.0 | AV:N/AC:L/Au:N/C:P/I:N/A:N |
| Bitnami Vulnerability Database | medium 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/1145454 | advisory, 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.html | advisory, mailing-list, third-party-advisory | |
| https://www.oracle.com/security-alerts/cpuapr2022.html | advisory, 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.html | mailing-list, web | |
| https://security.gentoo.org/glsa/202401-27 | vendor-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2021-31810 | web | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-31810 changed 2024-08-03 | CVE Terms of Use |
| NVD | CVE-2021-31810 changed 2026-06-17 | Public domain |
| Bitnami Vulnerability Database | BIT-RUBY-2021-31810 changed 2026-09-08 | Apache-2.0 |
| Bitnami Vulnerability Database | BIT-RUBY-MIN-2021-31810 changed 2026-09-08 | Apache-2.0 |