GitHub Advisoryadvisory · RubyGems

GHSA-46f2-3v63-3xrp Tempfile on Windows path traversal vulnerability

HIGH Published 2021-05-06 Modified 2022-08-15 Official page ↗
Aliases
CVE-2021-28966
Ecosystem
RubyGems
Packages
tmpdir
Severity
High
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Weaknesses
CWE-22
Reviewed
2021-05-06

Affected packages

• RubyGems tmpdir: < 0.1.2 → fixed in 0.1.2

Description

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.

Related

Alias · CVE (1)

  • CVE-2021-28966 In Ruby through 3.0 on Windows, a remote attacker can submit a crafted path when a Web application handles a parameter with TmpDir. vulnerability

Weakness · CWE (1)

  • CWE-22 Improper Limitation of a Pathname to a Restricted Directory weakness

References