CVE-2021-41817Ruby-lang Date
High 7.5 No auth needed
Follow: this CVE · Ruby-lang · Ruby-lang Date We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.1
- 7.5
- EPSS
- 3.5% probability of exploitation in 30 days · percentile 90
- Auth required
- No
- Published
- Jan 1, 2022
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-1333
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
What happens
Date.parse in the date gem through 3.2.0 for Ruby allows ReDoS (regular expression Denial of Service) via a long string. The fixed versions are 3.2.1, 3.1.2, 3.0.2, and 2.0.1.
What to do
- Apply the vendor's security update for Date.
- 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 | date |
≥ 3.2.0 < 3.2.1 |
3.2.1 |
gem "date", ">= 3.2.1" |
| RubyGems | date |
≥ 3.1.0 < 3.1.2 |
3.1.2 |
gem "date", ">= 3.1.2" |
| RubyGems | date |
≥ 3.0.0 < 3.0.2 |
3.0.2 |
gem "date", ">= 3.0.2" |
| RubyGems | date |
< 2.0.1 |
2.0.1 |
gem "date", ">= 2.0.1" |
Per OSV / GitHub Advisories (GHSA-qg54-694p-wgpp). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| ruby-lang | date | < 2.0.1 |
| ruby-lang | date | ≥ 3.0.0 < 3.0.2 |
| ruby-lang | date | ≥ 3.1.0 < 3.1.2 |
| ruby-lang | date | 3.2.0 |
| ruby-lang | ruby | ≥ 2.6.0 < 2.6.9 |
| ruby-lang | ruby | ≥ 2.7.0 < 2.7.5 |
| ruby-lang | ruby | ≥ 3.0.0 < 3.0.3 |
| redhat | software_collections | all |
| redhat | enterprise_linux | 7.0 |
| redhat | enterprise_linux | 8.0 |
| fedoraproject | fedora | 34 |
| fedoraproject | fedora | 35 |
| debian | debian_linux | 9.0 |
| debian | debian_linux | 10.0 |
| debian | debian_linux | 11.0 |
| suse | linux_enterprise | 12.0 |
| suse | linux_enterprise | 15.0 |
| opensuse | factory | all |
| opensuse | leap | 15.2 |
Official advisories
- libruby4_0-4_0-4.0.0~preview2-1.1 on GA media · SUSE · openSUSE-SU-2025:15819-1 · Dec 12, 2025 Critical
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- hackerone.com Permissions Required
- lists.fedoraproject.org
- lists.fedoraproject.org
- security.gentoo.org
- www.ruby-lang.org Exploit Vendor Advisory