CVE-2021-28966: Ruby-Lang Ruby

High severity, CVSS 7.5. EPSS: 58% probability of exploitation activity in the next 30 days.

In Ruby through 3.0 on Windows, a remote attacker can submit a crafted path when a Web application handles a parameter with TmpDir.

What to do

The record states a fixed version for each range of affected versions. Update to the one for the range your version is in: a later release on another branch may not have the fix.

  • Ruby-Lang Ruby, before 2.7.3: fixed in 2.7.3
  • Ruby-Lang Ruby, from 3.0.0, before 3.0.1: fixed in 3.0.1

Affected products

  • Ruby-Lang Ruby: before 2.7.3 (fixed in 2.7.3); from 3.0.0, before 3.0.1 (fixed in 3.0.1)

Affected packages

Published 2021-07-30. Last modified 2026-06-17.