CVE-2021-28966Ruby-lang Ruby
High 7.5 No auth neededHigh EPSS
Follow: this CVE · Ruby-lang · Ruby-lang Ruby We alert you by email or Slack (account required).
- Priority
- 66
- CVSS 3.1
- 7.5
- EPSS
- 58.0% probability of exploitation in 30 days · percentile 99
- Auth required
- No
- Published
- Jul 30, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-22
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
What happens
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
- Apply the vendor's security update for Ruby.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| RubyGems | tmpdir |
< 0.1.2 |
0.1.2 |
gem "tmpdir", ">= 0.1.2" |
Per OSV / GitHub Advisories (GHSA-46f2-3v63-3xrp). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| ruby-lang | ruby | < 2.7.3 |
| ruby-lang | ruby | ≥ 3.0.0 < 3.0.1 |
Official sources
References
Links published by the sources. Open them with care.
- hackerone.com Exploit Issue Tracking Patch
- security.netapp.com Third Party Advisory