# CVE-2021-41817: Regular expression denial of service vulnerability (ReDoS) in date

- Severity: High 7.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 3.46%, higher than 89% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-11-16T00:32:30.000Z
- Modified: 2026-09-08T08:48:19.392Z
- Also known as: GHSA-qg54-694p-wgpp, BIT-RUBY-2021-41817, BIT-RUBY-MIN-2021-41817
- Weaknesses: CWE-1333
- Assigned by: mitre

## Description

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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- date (RubyGems): from 3.2.0 before 3.2.1; from 3.1.0 before 3.1.2; from 3.0.0 before 3.0.2; before 2.0.1
- ruby-lang date: before 2.0.1; from 3.0.0 before 3.0.2; from 3.1.0 before 3.1.2; 3.2.0
- ruby-lang ruby: from 2.6.0 before 2.6.9; from 2.7.0 before 2.7.5; from 3.0.0 before 3.0.3
- redhat software_collections: no versions given
- redhat enterprise_linux: 7.0; 8.0
- fedoraproject fedora: 34; 35
- debian debian_linux: 9.0; 10.0; 11.0
- suse linux_enterprise: 12.0; 15.0
- opensuse factory: no versions given
- opensuse leap: 15.2
- ruby (Bitnami): from 2.6.0 before 2.6.9; from 2.7.0 before 2.7.5; from 3.0.0 before 3.0.3
- ruby-min (Bitnami): from 2.6.0 before 2.6.9; from 2.7.0 before 2.7.5; from 3.0.0 before 3.0.3

## Every score

- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:N/A:P`
- Bitnami Vulnerability Database: rating High

## References

- <https://www.ruby-lang.org/en/news/2021/11/15/date-parsing-method-regexp-dos-cve-2021-41817/> (exploit, advisory, vendor-advisory)
- <https://hackerone.com/reports/1254844> (permissions-required, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/IUXQCH6FRKANCVZO2Q7D2SQX33FP3KWN/> (vendor-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UTOJGS5IEFDK3UOO7IY4OTTFGHGLSWZF/> (vendor-advisory, web)
- <https://security.gentoo.org/glsa/202401-27> (vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-41817> (advisory, web)
- <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%40lists.fedoraproject.org/message/IUXQCH6FRKANCVZO2Q7D2SQX33FP3KWN> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UTOJGS5IEFDK3UOO7IY4OTTFGHGLSWZF> (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)
- <https://www.ruby-lang.org/en/news/2021/11/15/date-parsing-method-regexp-dos-cve-2021-41817> (web)

## Sources

- CVE List: [CVE-2021-41817](https://www.cve.org/CVERecord?id=CVE-2021-41817), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-qg54-694p-wgpp](https://github.com/advisories/GHSA-qg54-694p-wgpp), CC-BY-4.0, modified 2025-01-27
- NVD: [CVE-2021-41817](https://nvd.nist.gov/vuln/detail/CVE-2021-41817), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-RUBY-2021-41817](https://osv.dev/vulnerability/BIT-RUBY-2021-41817), Apache-2.0, modified 2026-09-08
- Bitnami Vulnerability Database: [BIT-RUBY-MIN-2021-41817](https://osv.dev/vulnerability/BIT-RUBY-MIN-2021-41817), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2021-41817 · Whole record: https://cve.day/CVE-2021-41817.json · Rebuilt by cve.day 2026-11-25T22:58:06.323Z
