CVE-2021-28966
Ruby vulnerability analysis and mitigation

Overview

CVE-2021-28966 affects Ruby through version 3.0 on Windows systems. The vulnerability was discovered and disclosed in March 2021, allowing remote attackers to submit crafted paths when a Web application handles parameters with TmpDir. This vulnerability specifically impacts Ruby installations on Windows operating systems (NVD, CVE).

Technical details

The vulnerability has been assigned a CVSS v3.1 base score of 7.5 (HIGH) with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N. This indicates that the vulnerability can be exploited remotely with low attack complexity, requires no privileges or user interaction, and can result in high impact to integrity while not affecting confidentiality or availability. The vulnerability is classified as CWE-22, which refers to Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') (NVD).

Impact

Successful exploitation of this vulnerability could lead to high integrity impact, potentially allowing attackers to modify data through path manipulation. The vulnerability specifically affects the way Ruby handles parameters with TmpDir on Windows systems (NetApp Advisory).

Mitigation and workarounds

The vulnerability was fixed in Ruby version 2.7.3 and 3.0.1. Users running affected versions should upgrade to these patched versions or later to mitigate the vulnerability (NVD).

Additional resources


SourceThis report was generated using AI

Related Ruby vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-68271CRITICAL10
  • RubyRuby
  • openc3
NoYesJan 13, 2026
GHSA-5qw5-wf2q-f538HIGH8.8
  • RubyRuby
  • activerecord-jdbc-adapter
NoYesJan 16, 2026
CVE-2026-22589HIGH7.5
  • RubyRuby
  • spree_core
NoYesJan 10, 2026
CVE-2026-23885MEDIUM6.6
  • RubyRuby
  • alchemy_cms
NoYesJan 19, 2026
GHSA-mpwp-4h2m-765cMEDIUM6.6
  • RubyRuby
  • activejob
NoYesJan 16, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management