{"id":"CVE-2021-28966","aliases":["BIT-ruby-2021-28966","BIT-ruby-min-2021-28966","GHSA-46f2-3v63-3xrp"],"url":"https://o3.security/vulnerability/CVE-2021-28966","summary":"Tempfile on Windows path traversal vulnerability","details":"There is an unintentional directory creation vulnerability in `tmpdir` library bundled with Ruby on Windows. And there is also an unintentional file creation vulnerability in tempfile library bundled with Ruby on Windows, because it uses tmpdir internally. \n","published":"2021-07-30T14:15:16.303Z","modified":"2026-07-08T21:26:35.858477Z","cvss":{"score":7.5,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"},"epss":null,"cisaKev":null,"exploitsKnown":null,"affectedPackages":[{"ecosystem":"RubyGems","name":"tmpdir","fixedVersion":"0.1.2"}],"fix":{"url":"https://github.com/ruby/tmpdir/pull/8","label":"ruby/tmpdir#8"},"references":[{"type":"ADVISORY","url":"https://security.netapp.com/advisory/ntap-20210902-0004/"},{"type":"FIX","url":"https://hackerone.com/reports/1131465"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-28966"},{"type":"WEB","url":"https://github.com/ruby/tmpdir/pull/8"},{"type":"WEB","url":"https://github.com/ruby/tmpdir/commit/93798c01cb7c10476e50a4d80130a329ba47f348"},{"type":"PACKAGE","url":"https://github.com/ruby/tmpdir"},{"type":"WEB","url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/tmpdir/CVE-2021-28966.yml"},{"type":"WEB","url":"https://rubygems.org/gems/tmpdir"},{"type":"WEB","url":"https://security.netapp.com/advisory/ntap-20210902-0004"},{"type":"WEB","url":"https://www.ruby-lang.org/en/news/2021/04/05/tempfile-path-traversal-on-windows-cve-2021-28966"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-07-08T21:26:35.858477Z"}}