🛡️ CVE-2021-31810 — ruby
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
CVE-2021-31810 is recorded against 2 packages.
- ruby
- ruby-min
Timeline and source
Published on 6 March 2024 and last revised on 3 April 2025. No public exploit is currently recorded for this entry. Record sourced from OSV.
References
hackerone.com (Web)
lists.debian.org (Web)
lists.debian.org (Web)
lists.fedoraproject.org (Web)
security.gentoo.org (Web)
security.netapp.com (Web)
www.oracle.com (Web)
www.ruby-lang.org (Web)
nvd.nist.gov (Web)
CVE-2021-31810 on other distributions
Each distribution ships its own build and its own fixed version. Pick the one you run:
Details
Affected Packages
| Software | From version | Fixed in |
|---|---|---|
| ruby | — | — |
| ruby-min | — | — |
References
Similar Threats
- Unknown ALPINE-CVE-2026-27820
- Unknown ALPINE-CVE-2025-61594
- Unknown ALPINE-CVE-2025-27219
- Unknown ALPINE-CVE-2024-27280
- Unknown ALPINE-CVE-2024-27281
More CVE 2021 advisories
Browse all of CVE 2021 in the advisory index.
Vulnerability Monitoring
Track new vulnerabilities in ruby
CVE-2021-31810 is rated CVSS 5.0 Medium. BotEraser monitors your WordPress installation and notifies you when software you use appears in our vulnerability database.
Set Up Free Alerts →No credit card required · Results in minutes
ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.