Skip to content
OpenAdvisories
High · 7.5 CVE-2021-28966 BIT-ruby-2021-28966BIT-ruby-min-2021-28966EUVD-2021-0931GHSA-46f2-3v63-3xrp

Tempfile on Windows path traversal vulnerability

Published Jul 27, 2021 · Updated Aug 3, 2024 · Assigned by mitre

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Alpine v3.24 ruby 2.7.3-r0 —
Alpine v3.23 ruby 2.7.3-r0 —
Alpine v3.22 ruby 2.7.3-r0 —
Alpine v3.21 ruby 2.7.3-r0 —
Alpine v3.20 ruby 2.7.3-r0 —
Show 10 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 ruby 2.7.3-r0 —
Alpine v3.18 ruby 2.7.3-r0 —
Alpine v3.17 ruby 2.7.3-r0 —
Alpine v3.16 ruby 2.7.3-r0 —
Alpine v3.15 ruby 2.7.3-r0 —
Alpine v3.14 ruby 2.7.3-r0 —
Alpine v3.13 ruby 2.7.3-r0 —
Alpine v3.12 ruby 2.7.3-r0 —
Alpine v3.11 ruby 2.6.7-r0 —
Alpine v3.10 ruby 2.5.9-r0 —

Affected packages

EcosystemPackageAffectedFixedRecord
RubyGems tmpdir < 0.1.2 0.1.2 GHSA-46f2-3v63-3xrp

Advisories 1

References