In Ruby through 3.0 on Windows, a remote attacker can submit a crafted path when a Web…
Priority HIGH 67CWE-22Published · Updated
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- None · High · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub.
Summary
In Ruby through 3.0 on Windows, a remote attacker can submit a crafted path when a Web application handles a parameter with TmpDir.
Why it matters now
EPSS 0.58039 99th percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Fixed tmpdir (RubyGems): 0.1.2
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
| — | tmpdir (RubyGems) | before 0.1.2 | 0.1.2 | Patch available | GHSA-46f2-3v63-3xrp |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
- tmpdir (RubyGems) Vendor— Affected before 0.1.2 Fixed in 0.1.2 Patch available GHSA-46f2-3v63-3xrp
Remediation
- Fix · GHSA-46f2-3v63-3xrp tmpdir (RubyGems) Fixed in 0.1.2 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2021-28966
- 2026-10-03 Alias added: GHSA-46f2-3v63-3xrp
References
Advisory 2
Other 7
- 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
More Ruby vulnerabilities
- TI-2026-71508 Integer overflow in GitLab allows code execution on the server KEVCVSS 3.1CRITICAL 10.0
- TI-2017-12709 Ruby before 2.4.3 allows Net::FTP command injection. CVSS 3.0HIGH 8.8
- TI-2008-03501 Algorithmic complexity vulnerability in the WEBrick::HTTPUtils.split_header_value… CVSS 2.0HIGH 7.8
- TI-2013-03637 Heap-based buffer overflow in Ruby 1.8, 1.9 before 1.9.3-p484, 2.0 before 2.0.0-p353, 2.1… CVSS 2.0MEDIUM 6.8
- TI-2018-11751 An issue was discovered in the OpenSSL library in Ruby before 2.3.8, 2.4.x before 2.4.5… CVSS 3.0CRITICAL 9.8
- TI-2017-07892 The Basic authentication code in WEBrick library in Ruby before 2.2.8, 2.3.x before… CVSS 3.0HIGH 8.8
Sources
- CVE-2021-28966 · CVE Program
- CVE-2021-28966 · NVD
- FIRST EPSS
- GHSA-46f2-3v63-3xrp · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences