{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2021-28966","id":"CVE-2021-28966","title":"Tempfile on Windows path traversal vulnerability","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.","descriptionLong":"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":"2021-07-27T16:01:12.000Z","updated":"2026-10-24T10:30:18.110234372Z","reserved":"2021-03-22T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"mitre","metric":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","rating":"high","source":"NVD"},"metrics":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","rating":"high","source":"NVD"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","rating":"high","source":"OSV"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","rating":"high","source":"GitHub"},{"version":"2.0","score":5,"vector":"AV:N/AC:L/Au:N/C:N/I:P/A:N","rating":"medium","source":"NVD"}],"rating":"high","products":[],"affectedProducts":[{"vendor":"n/a","product":"n/a","defaultStatus":null,"versions":[{"status":"affected","version":"n/a"}],"platforms":[]}],"packages":[{"ecosystem":"RubyGems","name":"tmpdir","purl":"pkg:gem/tmpdir","ranges":["<0.1.2"],"fixed":["0.1.2"],"advisory":"GHSA-46f2-3v63-3xrp"}],"cwes":["CWE-22"],"aliases":["BIT-ruby-2021-28966","BIT-ruby-min-2021-28966","GHSA-46f2-3v63-3xrp"],"references":[{"url":"https://hackerone.com/reports/1131465","tags":["x_refsource_MISC","x_transferred","Exploit","Issue Tracking","Patch","Third Party Advisory","fix","web"]},{"url":"https://security.netapp.com/advisory/ntap-20210902-0004/","tags":["x_refsource_CONFIRM","x_transferred","Third Party Advisory","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-28966","tags":["advisory"]},{"url":"https://github.com/ruby/tmpdir/pull/8","tags":["web"]},{"url":"https://github.com/ruby/tmpdir/commit/93798c01cb7c10476e50a4d80130a329ba47f348","tags":["web"]},{"url":"https://github.com/ruby/tmpdir","tags":["package"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/tmpdir/CVE-2021-28966.yml","tags":["web"]},{"url":"https://rubygems.org/gems/tmpdir","tags":["web"]},{"url":"https://security.netapp.com/advisory/ntap-20210902-0004","tags":["web"]},{"url":"https://www.ruby-lang.org/en/news/2021/04/05/tempfile-path-traversal-on-windows-cve-2021-28966","tags":["web"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.58039,"epssPercentile":0.99107,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2021-28966","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-28966","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2021-28966","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-46f2-3v63-3xrp","ok":true,"note":"GHSA-46f2-3v63-3xrp"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2021-28966","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":["EPSS 58% with CVSS 7.5"],"attention":null}