CVE-2021-28966
7.5high
Tempfile on Windows path traversal vulnerability
- Severity
- 7.5high CVSS:3.1 by NVD
- Exploit likelihood
- 58.0% (higher than 99% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- GHSA-46f2-3v63-3xrpBIT-RUBY-2021-28966BIT-RUBY-MIN-2021-28966
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| tmpdir (RubyGems) | before 0.1.2 | GitHub Advisory Database |
| ruby-lang ruby | before 2.7.3, from 3.0.0 before 3.0.1 | NVD |
| ruby (Bitnami) | before 2.7.3, from 3.0.0 before 3.0.1 | Bitnami Vulnerability Database |
| ruby-min (Bitnami) | before 2.7.3, from 3.0.0 before 3.0.1 | Bitnami Vulnerability Database |
All scores
| GitHub | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| NVD | 5.0medium CVSS:2.0 | AV:N/AC:L/Au:N/C:N/I:P/A:N |
| Bitnami Vulnerability Database | high rating |
Classification
What each source says
CVE List
In Ruby through 3.0 on Windows, a remote attacker can submit a crafted path when a Web application handles a parameter with TmpDir.
GitHub Advisory Database
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.
NVD (es)
En Ruby versiones hasta 3.0 en Windows, un atacante remoto puede enviar una ruta diseñada cuando una aplicación web maneja un parámetro con TmpDir
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-28966 changed 2024-08-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-46f2-3v63-3xrp changed 2025-01-27 | CC-BY-4.0 |
| NVD | CVE-2021-28966 changed 2026-06-17 | Public domain |
| Bitnami Vulnerability Database | BIT-RUBY-2021-28966 changed 2026-09-08 | Apache-2.0 |
| Bitnami Vulnerability Database | BIT-RUBY-MIN-2021-28966 changed 2026-09-08 | Apache-2.0 |