CVE-2021-41817
HIGH 7.5CVSS 3.1Regular expression denial of service vulnerability (ReDoS) in date
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.
- Published
- 1 Jan 2022
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-1333
- Also known as
- BIT-ruby-2021-41817BIT-ruby-min-2021-41817GHSA-qg54-694p-wgpp
- Sources
- NVDJSONOSV GHSA-qg54-694p-wgppJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | ruby-lang | datecpe:2.3:a:ruby-lang:date:*:*:*:*:*:ruby:*:* |
< 2.0.1 | 2.0.1 |
| NVD | ruby-lang | datecpe:2.3:a:ruby-lang:date:*:*:*:*:*:ruby:*:* |
>= 3.0.0, < 3.0.2 | 3.0.2 |
| NVD | ruby-lang | datecpe:2.3:a:ruby-lang:date:*:*:*:*:*:ruby:*:* |
>= 3.1.0, < 3.1.2 | 3.1.2 |
| NVD | ruby-lang | datecpe:2.3:a:ruby-lang:date:3.2.0:*:*:*:*:ruby:*:* |
= 3.2.0 | |
| NVD | ruby-lang | rubycpe:2.3:a:ruby-lang:ruby:*:*:*:*:*:*:*:* |
>= 2.6.0, < 2.6.9 | 2.6.9 |
| NVD | ruby-lang | rubycpe:2.3:a:ruby-lang:ruby:*:*:*:*:*:*:*:* |
>= 2.7.0, < 2.7.5 | 2.7.5 |
| NVD | ruby-lang | rubycpe:2.3:a:ruby-lang:ruby:*:*:*:*:*:*:*:* |
>= 3.0.0, < 3.0.3 | 3.0.3 |
| NVD | redhat | software_collectionscpe:2.3:a:redhat:software_collections:-:*:*:*:*:*:*:* |
(no version) | |
| NVD | redhat | enterprise_linuxcpe:2.3:o:redhat:enterprise_linux:7.0:*:*:*:*:*:*:* |
= 7.0 | |
| NVD | redhat | enterprise_linuxcpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:* |
= 8.0 | |
| NVD | fedoraproject | fedoracpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:* |
= 34 | |
| NVD | fedoraproject | fedoracpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:* |
= 35 | |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* |
= 9.0 | |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* |
= 10.0 | |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:* |
= 11.0 | |
| NVD | suse | linux_enterprisecpe:2.3:o:suse:linux_enterprise:12.0:*:*:*:*:*:*:* |
= 12.0 | |
| NVD | suse | linux_enterprisecpe:2.3:o:suse:linux_enterprise:15.0:*:*:*:*:*:*:* |
= 15.0 | |
| NVD | opensuse | factorycpe:2.3:a:opensuse:factory:-:*:*:*:*:*:*:* |
(no version) | |
| NVD | opensuse | leapcpe:2.3:o:opensuse:leap:15.2:*:*:*:*:*:*:* |
= 15.2 | |
| OSV | RubyGems | date | >= 3.2.0, < 3.2.1 | 3.2.1 |
| OSV | RubyGems | date | >= 3.1.0, < 3.1.2 | 3.1.2 |
| OSV | RubyGems | date | >= 3.0.0, < 3.0.2 | 3.0.2 |
| OSV | RubyGems | date | < 2.0.1 | 2.0.1 |
References
- https://hackerone.com/reports/1254844 · Permissions Required, WEB
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/IUXQCH6FRKANCVZO2Q7D2SQX33FP3KWN/ · WEB
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UTOJGS5IEFDK3UOO7IY4OTTFGHGLSWZF/ · WEB
- https://security.gentoo.org/glsa/202401-27 · WEB
- https://www.ruby-lang.org/en/news/2021/11/15/date-parsing-method-regexp-dos-cve-2021-41817/ · Exploit, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-41817 · ADVISORY
- https://github.com/ruby/date/commit/3959accef8da5c128f8a8e2fd54e932a4fb253b0 · WEB
- https://github.com/ruby/date · PACKAGE
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/date/CVE-2021-41817.yml · WEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/IUXQCH6FRKANCVZO2Q7D2SQX33FP3KWN · WEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UTOJGS5IEFDK3UOO7IY4OTTFGHGLSWZF · WEB
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 1 Jan 2022)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 16 Nov 2021)