PT-2021-18004
CVE-2021-28966
·
Published
2021-04-05
·
Updated
2026-10-31
Description by
CVSS 3.1
7.5
HighMetricsAV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Name of the Vulnerable Software and Affected Versions:
Ruby versions prior to 3.0 on Windows
Description:
A remote attacker can submit a crafted path when a Web application handles a parameter with TmpDir, potentially allowing them to exit the directory and impact the system. There is an unintentional directory creation vulnerability in the
tmpdir library bundled with Ruby on Windows, and an unintentional file creation vulnerability in the tempfile library, as it uses tmpdir internally.Recommendations:
For Ruby versions prior to 3.0 on Windows, consider restricting access to the
tmpdir library and tempfile library until a patch is available. As a temporary workaround, avoid using the tmpdir library and tempfile library in Web applications that handle parameters with TmpDir.Exploitability
Exploit
Fix
Impacts
Vendors
Affected products
Found an issue in the description? Have something to add? Feel free to write us 👾