Skip to content
Emerging threatsHigh

CVE-2021-28966Ruby Path Traversal

Tempfile on Windows path traversal vulnerability

Published May 6, 2021 · Updated Oct 31, 2026 · Also known as ALPINE-CVE-2021-28966, BIT-ruby-2021-28966, BIT-ruby-min-2021-28966, CLEANSTART-2026-ES78953, CLEANSTART-2026-YW10276, GHSA-46f2-3v63-3xrp, JLSEC-2026-1283

Key Facts

Patch immediately
  • CVE-2021-28966 is a high-severity vulnerability (CVSS 7.5 v3.1) affecting Ruby (Ruby-Lang), ruby-3.2 (cleanstart), ruby-3.3 (cleanstart) and 4 more products.
  • It is not listed in any known-exploited vulnerabilities catalog. No public exploit code is known.
  • EPSS estimates a 58% probability of exploitation in the next 30 days.
  • Fixed versions are available, including Ruby 2.5.9-r0, Ruby 2.6.7-r0, Ruby 2.6.8-r0.
  • Brandefense priority: patch immediately, because it is very likely to be exploited soon.

Scores

CVSS v3.1

7.5

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

EPSS (30-day exploit likelihood)

58%

Higher than 99.1% of all scored CVEs

Exploit maturity

None known

ATLAS score

30/100

Publication score, see How it works

Exploitation Verdict

KEV listed

Not listed

Federal due date

None

No federal due date

Ransomware use

Not reported

Attributed actors

None named

Exploit & Defence Guidance

Exploit maturity

None known

Public exploit code

0

Proof-of-concept links

In-the-wild evidence

0

Reports of active use

Description

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

Affected Products

26 affected entries in total
ProductAffected versionsFixed in
RubyRuby-LangSee advisory2.7.3
ruby-3.2cleanstartSee advisory2.7.3-r0
ruby-3.3cleanstartSee advisory2.7.3-r0
ruby-minbitnamiSee advisory2.7.3
ruby2.7debianSee advisory0
2 more affected products in the full CVE brief

Patched Releases

Ruby

2.5.9-r0, 2.6.7-r0, 2.6.8-r0, 2.7.3, 2.7.3-r0, 3.0.1

ruby-3.2

2.7.3-r0

ruby-3.3

2.7.3-r0

ruby-min

2.7.3, 3.0.1

tmpdir

0.1.2

Timeline

  1. Publicly disclosed

    May 6, 2021

  2. Last updated

    Oct 31, 2026

Weakness Type

  • CWE-22 Improper Limitation of a Pathname to a Restricted Directory

References

9 more references in the full CVE brief

FAQ

Common Questions.

Is CVE-2021-28966 On Your Attack Surface?

Brandefense matches it against the products discovered on your perimeter and opens a finding the day a CVE like this is listed.

Request A Demo

Figures as of Dec 4, 2026. Compiled by Brandefense technologies from public vulnerability catalogs; scoring as described in How it works.

To report an error, contact Brandefense.