Medium severity · published Jul 13, 2021
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
5.8
CVSS
3%
EPSS
No
On KEV
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).
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
Low
Integrity
None
Availability
None
Scope
Changed
Exploitation
Is it being used?
Exploit prediction (EPSS)3.0% · higher than 88% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
DL
Debian Linux · Debian
9.0 · source: NVD
JE
JD Edwards Enterpriseone Tools · Oracle
before 9.2.6.1 · source: NVD
RU
Ruby · Ruby-lang
through 2.6.7; 2.7.0 through 2.7.3; 3.0.0 through 3.0.1 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2021-31810
CVE.org
https://www.cve.org/CVERecord?id=CVE-2021-31810
Exploit
https://hackerone.com/reports/1145454
Mailing List
https://lists.debian.org/debian-lts-announce/2021/10/msg00009.html
lists.debian.org
https://lists.debian.org/debian-lts-announce/2023/04/msg00033.html
lists.fedoraproject.org
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MWXHK5UUHVSHF7HTHMX6JY3WXDVNIHSL/
security.gentoo.org
https://security.gentoo.org/glsa/202401-27
Third Party Advisory
https://security.netapp.com/advisory/ntap-20210917-0001/
More from Debian Linux
10.0
CVE-2025-32433
Erlang/OTP SSH Vulnerable to Pre-Authentication RCE
10.0
CVE-2025-24201
Apple Multiple Products WebKit Out-of-Bounds Write Vulnerability
10.0
CVE-2021-44228
Apache Log4j2 JNDI features do not protect against attacker controlled LDAP and other JNDI related endpoints
10.0
CVE-2015-3306
ProFTPD Improper Access Control Vulnerability
9.8
CVE-2026-111497
Out-of-Bounds Write in Google Brotli Decoder
