Live threats

All CVEs / Ruby-lang

CVE-2021-28966Ruby-lang Ruby

High 7.5 No auth neededHigh EPSS

Priority
66
CVSS 3.1
7.5
EPSS
58.0%
probability of exploitation in 30 days · percentile 99
Auth required
No
Published
Jul 30, 2021
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-22
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

What happens

In Ruby through 3.0 on Windows, a remote attacker can submit a crafted path when a Web application handles a parameter with TmpDir.

Original NVD text.

What to do

  1. Apply the vendor's security update for Ruby.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
RubyGems tmpdir < 0.1.2 0.1.2 gem "tmpdir", ">= 0.1.2"

Per OSV / GitHub Advisories (GHSA-46f2-3v63-3xrp). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
ruby-langruby< 2.7.3
ruby-langruby≥ 3.0.0 < 3.0.1

Official sources

References

Links published by the sources. Open them with care.