Original 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 software
- Ruby ≥ 3.0.0 ≤ 3.0.1≤ 2.6.7≥ 2.7.0 ≤ 2.7.3 exact match
Details
- Published
- 2021-07-13
- Last modified
- 2024-08-04
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N- EPSS (30-day exploit probability)
- 3.05% (percentile 88)
References
- cve.org/CVE-2021-31810
- nvd.nist.gov/vuln/detail/CVE-2021-31810
- hackerone.com/reports/1145454
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/M...
- lists.debian.org/debian-lts-announce/2021/10/msg00009.html
- www.oracle.com/security-alerts/cpuapr2022.html
- www.ruby-lang.org/en/news/2021/07/07/trusting-pasv-responses-in-net-ftp/
- security.netapp.com/advisory/ntap-20210917-0001/
- lists.debian.org/debian-lts-announce/2023/04/msg00033.html
- security.gentoo.org/glsa/202401-27
Track these versions on your own servers
InfraGuard collects installed software versions from every server and flags the ones with known vulnerabilities. Self-hosted — nothing leaves your network.
This product uses data from the NVD API but is not endorsed or certified by the NVD. CVE® is a registered trademark of The MITRE Corporation; CVE records are used under the CVE Program Terms of Use.