CVE-2021-28966
JSON

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 packageVersionsReported by
Unspecified productn/aCVE List
tmpdir (RubyGems)before 0.1.2GitHub Advisory Database
ruby-lang rubybefore 2.7.3, from 3.0.0 before 3.0.1NVD
ruby (Bitnami)before 2.7.3, from 3.0.0 before 3.0.1Bitnami Vulnerability Database
ruby-min (Bitnami)before 2.7.3, from 3.0.0 before 3.0.1Bitnami Vulnerability Database

All scores

GitHub7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
NVD5.0medium CVSS:2.0AV:N/AC:L/Au:N/C:N/I:P/A:N
Bitnami Vulnerability Databasehigh 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

SourceRecordLicence
CVE ListCVE-2021-28966 changed 2024-08-03CVE Terms of Use
GitHub Advisory DatabaseGHSA-46f2-3v63-3xrp changed 2025-01-27CC-BY-4.0
NVDCVE-2021-28966 changed 2026-06-17Public domain
Bitnami Vulnerability DatabaseBIT-RUBY-2021-28966 changed 2026-09-08Apache-2.0
Bitnami Vulnerability DatabaseBIT-RUBY-MIN-2021-28966 changed 2026-09-08Apache-2.0