CVE-2021-28966
HIGH 7.5CVSS 3.1Tempfile on Windows path traversal vulnerability
In Ruby through 3.0 on Windows, a remote attacker can submit a crafted path when a Web application handles a parameter with TmpDir.
- Published
- 30 Jul 2021
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-22
- Also known as
- BIT-ruby-2021-28966BIT-ruby-min-2021-28966GHSA-46f2-3v63-3xrp
- Sources
- NVDJSONOSV GHSA-46f2-3v63-3xrpJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.0 | AV:N/AC:L/Au:N/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | ruby-lang | rubycpe:2.3:a:ruby-lang:ruby:*:*:*:*:*:*:*:* |
< 2.7.3 | 2.7.3 |
| NVD | ruby-lang | rubycpe:2.3:a:ruby-lang:ruby:*:*:*:*:*:*:*:* |
>= 3.0.0, < 3.0.1 | 3.0.1 |
| OSV | RubyGems | tmpdir | < 0.1.2 | 0.1.2 |
References
- https://hackerone.com/reports/1131465 · Exploit, Issue Tracking, Patch, Third Party Advisory, WEB
- https://security.netapp.com/advisory/ntap-20210902-0004/ · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-28966 · ADVISORY
- https://github.com/ruby/tmpdir/pull/8 · WEB
- https://github.com/ruby/tmpdir/commit/93798c01cb7c10476e50a4d80130a329ba47f348 · WEB
- https://github.com/ruby/tmpdir · PACKAGE
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/tmpdir/CVE-2021-28966.yml · WEB
- https://rubygems.org/gems/tmpdir · WEB
- https://www.ruby-lang.org/en/news/2021/04/05/tempfile-path-traversal-on-windows-cve-2021-28966 · WEB
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 30 Jul 2021)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 6 May 2021)