Skip to content
Noroxi
NVD / CVE Program· CNA mitre

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.

MediumCVSS 5.8 · v3.1—No exploit Fix available

Noroxi assessment

Priority: Monitor (action score 24/100)

  • The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
  • Probability of exploitation in the next 30 days: 3% (FIRST EPSS); higher than 87.7% of all records.
  • Anyone who can reach it over the internet can trigger it. No account or password is required. No user action is required. No special conditions are required; it is repeatable.
  • Fixed version: ruby (AlmaLinux:8) 2.6.9-108.module_el8.5.0+2623+08a8ba32, 2.6.9-108.module_el8.5.0+250+ba22dbf7, 2.7.4-137.module_el8.4.0+2515+f744ca41; ruby-default-gems (AlmaLinux:8) 2.7.4-137.module_el8.4.0+2515+f744ca41; ruby-devel (AlmaLinux:8) 2.7.4-137.module_el8.4.0+2515+f744ca41, 2.6.9-108.module_el8.5.0+250+ba22dbf7, 2.5.9-109.module_el8.5.0+259+8cec6917.
  • Mentioned 1 time in Turkish national cyber security advisories (siberguvenlik.gov.tr).

Low priority for now. Upgrade to ruby (AlmaLinux:8) 2.6.9-108.module_el8.5.0+2623+08a8ba32, 2.6.9-108.module_el8.5.0+250+ba22dbf7, 2.7.4-137.module_el8.4.0+2515+f744ca41; ruby-default-gems (AlmaLinux:8) 2.7.4-137.module_el8.4.0+2515+f744ca41; ruby-devel (AlmaLinux:8) 2.7.4-137.module_el8.4.0+2515+f744ca41, 2.6.9-108.module_el8.5.0+250+ba22dbf7, 2.5.9-109.module_el8.5.0+259+8cec6917 or later.

Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it

Primary sources: NVD · CVE.org · FIRST EPSS

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).

Published
Jul 13, 2021
Updated
Jun 16, 2026
EPSS
3.0% · 87th percentile
CWE
—

Report tools

JSON

Action score

24

Monitor

Low priority for now.

CVSS
23 / 40 · 5.8 / 10
CISA KEV
0 / 30 · Not listed
EPSS
1 / 30 · 3.0%

Get told when this record changes

  • Not in KEV: no record of exploitation in the wild
  • No public exploit code on record
  • A fix has been released

If any of these changes, we'll tell you in the daily email digest.

Follow CVE-2021-31810

When you'll hear from us

  • when it enters CISA KEV
  • when exploit code appears or is weaponized
  • when the record is updated (including a fixed version)
  • when EPSS rises 20 points in a week

One daily email digest (06:00 UTC); connect a webhook for KEV listings and weaponized exploits every 10 minutes on paid plans, on the hour on the free plan.

Your free account also gets you

  • CVE alerts: add the products and versions you run, get the new CVEs that affect them
  • Uptime monitoring: 1 site, instant email when it goes down
  • Add your domain: subdomains and takeover risk scanned every week (1 domain)
  • 10 scans an hour on the security tools, at most 30 a day (3 a day without an account), an API key and MCP
  • All your scans in one panel: findings, what changed in the last scan, a report per domain or per client (PDF, share link)
All free tools
Is your version affected? Check it

Noroxi analysis

What does it mean in your environment?

The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.

We use this product, ask for help

Affected systems

Is your version affected?

Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.

VendorProduct
ruby-langruby
fedoraprojectfedora
debiandebian linux
oraclejd edwards enterpriseone tools

Affected versions

NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.

  • debian debian linux9.0
  • oracle jd edwards enterpriseone toolsbefore 9.2.6.1
  • ruby-lang rubyup to 2.6.7 inclusive
  • ruby-lang ruby2.7.0 and later · up to 2.7.3 inclusive
  • ruby-lang ruby3.0.0 and later · up to 3.0.1 inclusive

Package-level exposure

OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.

EcosystemPackageAffected rangeFix
AlmaLinux:8rubybefore 2.6.9-108.module_el8.5.0+2623+08a8ba322.6.9-108.module_el8.5.0+2623+08a8ba32
AlmaLinux:8rubybefore 2.6.9-108.module_el8.5.0+250+ba22dbf72.6.9-108.module_el8.5.0+250+ba22dbf7
AlmaLinux:8rubybefore 2.7.4-137.module_el8.4.0+2515+f744ca412.7.4-137.module_el8.4.0+2515+f744ca41
AlmaLinux:8rubybefore 2.5.9-109.module_el8.5.0+259+8cec69172.5.9-109.module_el8.5.0+259+8cec6917
AlmaLinux:8rubybefore 2.5.9-109.module_el8.5.0+2627+d9c243ca2.5.9-109.module_el8.5.0+2627+d9c243ca
AlmaLinux:8rubybefore 2.7.4-137.module_el8.5.0+117+35d1289b2.7.4-137.module_el8.5.0+117+35d1289b
AlmaLinux:8ruby-default-gemsbefore 2.7.4-137.module_el8.4.0+2515+f744ca412.7.4-137.module_el8.4.0+2515+f744ca41
AlmaLinux:8ruby-develbefore 2.7.4-137.module_el8.4.0+2515+f744ca412.7.4-137.module_el8.4.0+2515+f744ca41
AlmaLinux:8ruby-develbefore 2.6.9-108.module_el8.5.0+250+ba22dbf72.6.9-108.module_el8.5.0+250+ba22dbf7
AlmaLinux:8ruby-develbefore 2.5.9-109.module_el8.5.0+259+8cec69172.5.9-109.module_el8.5.0+259+8cec6917
AlmaLinux:8ruby-develbefore 2.7.4-137.module_el8.5.0+117+35d1289b2.7.4-137.module_el8.5.0+117+35d1289b
AlmaLinux:8ruby-develbefore 2.5.9-109.module_el8.5.0+2627+d9c243ca2.5.9-109.module_el8.5.0+2627+d9c243ca
AlmaLinux:8ruby-develbefore 2.6.9-108.module_el8.5.0+2623+08a8ba322.6.9-108.module_el8.5.0+2623+08a8ba32
AlmaLinux:8ruby-docbefore 2.5.9-109.module_el8.5.0+259+8cec69172.5.9-109.module_el8.5.0+259+8cec6917
AlmaLinux:8ruby-docbefore 2.6.9-108.module_el8.5.0+250+ba22dbf72.6.9-108.module_el8.5.0+250+ba22dbf7
AlmaLinux:8ruby-docbefore 2.7.4-137.module_el8.4.0+2515+f744ca412.7.4-137.module_el8.4.0+2515+f744ca41
AlmaLinux:8ruby-docbefore 2.6.9-108.module_el8.5.0+2623+08a8ba322.6.9-108.module_el8.5.0+2623+08a8ba32
AlmaLinux:8ruby-docbefore 2.5.9-109.module_el8.5.0+2627+d9c243ca2.5.9-109.module_el8.5.0+2627+d9c243ca
AlmaLinux:8ruby-irbbefore 2.5.9-109.module_el8.5.0+2627+d9c243ca2.5.9-109.module_el8.5.0+2627+d9c243ca
AlmaLinux:8ruby-irbbefore 2.5.9-109.module_el8.5.0+259+8cec69172.5.9-109.module_el8.5.0+259+8cec6917
AlmaLinux:8ruby-libsbefore 2.5.9-109.module_el8.5.0+2627+d9c243ca2.5.9-109.module_el8.5.0+2627+d9c243ca
AlmaLinux:8ruby-libsbefore 2.5.9-109.module_el8.5.0+259+8cec69172.5.9-109.module_el8.5.0+259+8cec6917
AlmaLinux:8ruby-libsbefore 2.6.9-108.module_el8.5.0+250+ba22dbf72.6.9-108.module_el8.5.0+250+ba22dbf7
AlmaLinux:8ruby-libsbefore 2.7.4-137.module_el8.4.0+2515+f744ca412.7.4-137.module_el8.4.0+2515+f744ca41

+96

Other highest-scoring records for the same primary product.

  • CVE-2017-17405Ruby before 2.4.3 allows Net::FTP command injection.
    57Plan
  • CVE-2008-3656Algorithmic complexity vulnerability in the WEBrick::HTTPUtils.split_header_value function in WEBrick::HTTP::DefaultFileHandler in WEBrick…
    52Plan
  • CVE-2021-28966In Ruby through 3.0 on Windows, a remote attacker can submit a crafted path when a Web application handles a parameter with TmpDir.
    47Plan

Published before and after this one in the same product

  • ← EarlierCVE-2020-10933May 4, 2020 · An issue was discovered in Ruby 2.5.x through 2.5.7, 2.6.x through 2.6.5, and 2.7.0.
    22Monitor
  • ← EarlierCVE-2020-25613Oct 6, 2020 · An issue was discovered in Ruby through 2.5.8, 2.6.x through 2.6.6, and 2.7.x through 2.7.1.
    31Monitor
  • Later →CVE-2021-32066Aug 1, 2021 · An issue was discovered in Ruby through 2.6.7, 2.7.x through 2.7.3, and 3.x through 3.0.1.
    30Monitor

Remediation

Which version to upgrade to

Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.

Product / packageFixed versionSource
almalinux:ruby2.7.4-137.module_el8.4.0+2515+f744ca41 · AlmaLinux:8Package registry (OSV)
almalinux:ruby-default-gems2.7.4-137.module_el8.4.0+2515+f744ca41 · AlmaLinux:8Package registry (OSV)
almalinux:ruby-devel2.7.4-137.module_el8.5.0+117+35d1289b · AlmaLinux:8Package registry (OSV)
almalinux:ruby-doc2.7.4-137.module_el8.4.0+2515+f744ca41 · AlmaLinux:8Package registry (OSV)
almalinux:ruby-libs2.7.4-137.module_el8.4.0+2515+f744ca41 · AlmaLinux:8Package registry (OSV)
almalinux:rubygem-abrt0.4.0-1.module_el8.4.0+2399+4e3a532a · AlmaLinux:8Package registry (OSV)
almalinux:rubygem-abrt-doc0.4.0-1.module_el8.5.0+118+1ab773e1 · AlmaLinux:8Package registry (OSV)
almalinux:rubygem-bigdecimal2.0.0-137.module_el8.4.0+2515+f744ca41 · AlmaLinux:8Package registry (OSV)
almalinux:rubygem-bson4.8.1-1.module_el8.5.0+117+35d1289b · AlmaLinux:8Package registry (OSV)
almalinux:rubygem-bson-doc4.8.1-1.module_el8.3.0+6147+d0dfc1e4 · AlmaLinux:8Package registry (OSV)
almalinux:rubygem-bundler2.2.24-137.module_el8.4.0+2515+f744ca41 · AlmaLinux:8Package registry (OSV)
almalinux:rubygem-io-console0.5.6-137.module_el8.4.0+2515+f744ca41 · AlmaLinux:8Package registry (OSV)
alpine:ruby2.6.8-r0 · Alpine:v3.11Package registry (OSV)
debian:jruby9.3.9.0+ds-1 · Debian:12Package registry (OSV)
debian:ruby2.32.3.3-1+deb9u10 · Debian:9Package registry (OSV)
debian:ruby2.52.5.5-3+deb10u4 · Debian:10Package registry (OSV)
opensuse:ruby2.52.5.9-150000.4.23.1 · openSUSE:Leap 15.3Package registry (OSV)
opensuse:ruby2.72.7.4-1.1 · openSUSE:TumbleweedPackage registry (OSV)
opensuse:ruby3.03.0.2-1.1 · openSUSE:TumbleweedPackage registry (OSV)
opensuse:ruby3.13.1.0-1.1 · openSUSE:TumbleweedPackage registry (OSV)
opensuse:ruby3.23.2.1-1.1 · openSUSE:TumbleweedPackage registry (OSV)
opensuse:ruby3.33.3.0-1.2 · openSUSE:TumbleweedPackage registry (OSV)
opensuse:ruby3.43.4.1-1.1 · openSUSE:TumbleweedPackage registry (OSV)
opensuse:ruby4.04.0.0~preview2-1.1 · openSUSE:TumbleweedPackage registry (OSV)
red hat:ruby0:2.7.4-137.module+el8.4.0+12025+f744ca41 · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
red hat:ruby-debuginfo0:2.7.4-137.module+el8.4.0+12025+f744ca41 · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
red hat:ruby-debugsource0:2.7.4-137.module+el8.4.0+12025+f744ca41 · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
red hat:ruby-default-gems0:2.7.4-137.module+el8.4.0+12025+f744ca41 · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
red hat:ruby-devel0:2.7.4-137.module+el8.4.0+12025+f744ca41 · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
red hat:ruby-doc0:2.7.4-137.module+el8.4.0+12025+f744ca41 · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)

+17

Exploit status

No known public exploit

No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.

Research context

For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.

Timeline

From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.

No dated events beyond publication.

Bug bounty scope

The product’s vendor appears in a public program. Matched by name; verify the scope text in the program.

National notice (Türkiye Cybersecurity Directorate / USOM)

Official security notices citing this record; remediation advice is on the agency's page.

All national notices →

Not on record for this CVE: EPSS history · patch commit or PR link · researcher credit · variant or chain candidate.

Technical details

Attack conditions

  • Anyone who can reach it over the internet can trigger it.
  • No account or password is required.
  • No user action is required.
  • No special conditions are required; it is repeatable.

If successful

Confidentiality
low · data can be read
Integrity
none
Availability
none

Impact can extend beyond the vulnerable component (scope changes).

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Changed
Confidentiality impact
Low
Integrity impact
None
Availability impact
None

Weakness class (CWE)

—

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N

nvd-primary

Attack context

MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.

MITRE has no CAPEC/ATT&CK mapping for this CWE.

References

All records