# CVE-2021-28966

- Priority: **Prioritise**
- Reason: Public exploit (reference, Date unknown)
- Next step: Check applicability: affected before 2.7.3, 3.0.1 (CNA); fix release not confirmed
- Status: published
- Published: 2021-07-27 · Modified: 2024-08-03
- Aliases: ALPINE-CVE-2021-28966, GHSA-46f2-3v63-3xrp, BIT-ruby-2021-28966, BIT-ruby-min-2021-28966
- Record: https://cvemate.com/vulnerability/CVE-2021-28966 · JSON: https://cvemate.com/vulnerability/CVE-2021-28966/json

## Description

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

## Signals

- CVSS: 7.5 high (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
- EPSS: 58.039%, percentile 99.107%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (reference)

## Affected

- alpine ruby (Alpine Linux): ≥ 3.0.0, \< 2.5.9-r0 \| ≥ 3.0.0, \< 2.6.7-r0 \| ≥ 3.0.0, \< 2.7.3-r0 \| \< 2.5.9-r0 \| \< 2.6.7-r0 \| \< 2.7.3-r0
- RubyGems tmpdir (RubyGems): \< 0.1.2
- ruby-lang ruby: \< 2.7.3 \| ≥ 3.0.0, \< 3.0.1

## References

- <https://hackerone.com/reports/1131465>
- <https://security.netapp.com/advisory/ntap-20210902-0004/>
- <https://security.alpinelinux.org/vuln/CVE-2021-28966>
- <https://nvd.nist.gov/vuln/detail/CVE-2021-28966>
- <https://github.com/ruby/tmpdir/pull/8>
- <https://github.com/ruby/tmpdir/commit/93798c01cb7c10476e50a4d80130a329ba47f348>
- <https://github.com/ruby/tmpdir>
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/tmpdir/CVE-2021-28966.yml>
- <https://rubygems.org/gems/tmpdir>
- <https://security.netapp.com/advisory/ntap-20210902-0004>
- <https://www.ruby-lang.org/en/news/2021/04/05/tempfile-path-traversal-on-windows-cve-2021-28966>

---

Data as of 2026-12-05T05:11:07.965Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
