CVE-2021-28966
mediumpriority · attend · 50EPSS 0.580 · 99 %ileDEEUUSEPSS · scored 2026-10-27
In Ruby through 3.0 on Windows, a remote attacker can submit a crafted path when a Web application handles a parameter with TmpDir.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · medium–high · 5–7.5
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (19)
Products and version ranges known to be affected.
advisories (4)
Vendor and ecosystem advisories describing this.
- WID-SEC-W-2023-2462Ruby: Mehrere SchwachstellenDeutsch2021-04-05csaf · cert_bundDE
Ein entfernter, anonymer Angreifer kann mehrere Schwachstellen in Ruby ausnutzen, um Sicherheitsvorkehrungen zu umgehen und Dateien zu manipulieren.
- GHSA-46f2-3v63-3xrpTempfile on Windows path traversal vulnerability2021-05-06ghsa · osvUS
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.
- BIT-ruby-2021-289662024-03-06vendor · osvUS
In Ruby through 3.0 on Windows, a remote attacker can submit a crafted path when a Web application handles a parameter with TmpDir.
- BIT-ruby-min-2021-289662025-01-27vendor · osvUS
In Ruby through 3.0 on Windows, a remote attacker can submit a crafted path when a Web application handles a parameter with TmpDir.
also known as (6)
Other names and identifiers for this entity.
- CNNVD-202104-354cnnvd
- EUVD-2021-0931enisa_euvd
- GHSA-46f2-3v63-3xrpenisa_euvd
- BIT-ruby-2021-28966osv
- BIT-ruby-min-2021-28966osv
- GHSA-46f2-3v63-3xrposv
sources
Which sources assert this record, and when.
references (9)
External citations — patches, advisories, analysis.
- https://hackerone.com/reports/1131465cnnvd
- https://security.netapp.com/advisory/ntap-20210902-0004/cnnvd
- https://www.auscert.org.au/bulletins/ESB-2021.1145cnnvd
- https://www.cybersecurity-help.cz/vdb/SB2021041366cnnvd
- https://www.ruby-lang.org/en/news/2021/04/05/tempfile-path-traversal-on-windows-cve-2021-28966/Patchcnnvd
- https://hackerone.com/reports/1131465enisa_euvd
- https://security.netapp.com/advisory/ntap-20210902-0004/enisa_euvd
- https://hackerone.com/reports/1131465ExploitIssue TrackingPatchThird Party Advisorynvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan