CVE-2021-31810 in Debian Linux and 3 more products
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 disclose...
Affects 4 products from 4 vendors. Facts below cite their sources.
Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, can impact systems beyond the vulnerable component, no integrity impact, no availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Debian | Debian Linux | 9.0 |
| Oracle | Jd Edwards Enterpriseone Tools | < 9.2.6.1 |
| Ruby-Lang | Ruby | ≤ 2.6.7 ≥ 2.7.0, ≤ 2.7.3 ≥ 3.0.0, ≤ 3.0.1 |
Platforms listed by the source (the vulnerable product runs on these; they are not themselves vulnerable): Fedoraproject Fedora
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official 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).
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2021-31810 |
|---|---|
| BreachSpider ID | BS-2021-GLOBAL-076815-M |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N |
| Published | 2021-07-13 |
| Last modified | 2026-06-17 |
| Source | NVD |
Analysis AI-written, not human-reviewed
This vulnerability was disclosed in 2021. A medium severity vulnerability affects Debian systems (CVE-2021-31810). No public exploit code is currently available. Isolate affected systems if patching is not feasible.
Vulnerability details: 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.
Questions
What is CVE-2021-31810?
This vulnerability was disclosed in 2021. A medium severity vulnerability affects Debian systems (CVE-2021-31810). No public exploit code is currently available. Isolate affected systems if patching is not feasible.
What is the CVSS score for CVE-2021-31810?
CVE-2021-31810 has CVSS 5.8 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N. EPSS: 3.1%.
Is CVE-2021-31810 actively exploited?
No confirmed active exploitation of CVE-2021-31810 as of 2026-09-25.
How do I remediate CVE-2021-31810?
Priority: MONITOR. Advisory: https://www.ruby-lang.org/en/news/2021/07/07/trusting-pasv-responses-in-net-ftp/
What systems are affected by CVE-2021-31810?
CVE-2021-31810 affects Debian Debian Linux; Oracle Jd Edwards Enterpriseone Tools; Ruby-Lang Ruby.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Debian","product":"Debian Linux","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.