CVE-2021-41817 — Vulnerability in date — CVE Details
Regular expression denial of service vulnerability (ReDoS) in date
Summary
Advisory Timeline
- First published November 16, 2021 (1791 days ago).
- Last revised January 27, 2025 — 1168 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
gem install date -v 2.0.1
gem install date -v 3.0.2
gem install date -v 3.1.2
gem install date -v 3.2.1
After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.
Affected Packages (4)
Affects 1 ecosystem: rubygems (1).
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-1333
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 7.5 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
References
- https://nvd.nist.gov/vuln/detail/CVE-2021-41817ADVISORY
- https://github.com/ruby/date/commit/3959accef8da5c128f8a8e2fd54e932a4fb253b0WEB
- https://hackerone.com/reports/1254844WEB
- https://github.com/ruby/datePACKAGE
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/date/CVE-2021-41817.ymlWEB
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/IUXQCH6FRKANCVZO2Q7D2SQX33FP3KWNWEB
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UTOJGS5IEFDK3UOO7IY4OTTFGHGLSWZFWEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/IUXQCH6FRKANCVZO2Q7D2SQX33FP3KWNWEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UTOJGS5IEFDK3UOO7IY4OTTFGHGLSWZFWEB
- https://security.gentoo.org/glsa/202401-27WEB
- https://www.ruby-lang.org/en/news/2021/11/15/date-parsing-method-regexp-dos-cve-2021-41817WEB
Frequently Asked Questions
- What is CVE-2021-41817?
- Regular expression denial of service vulnerability (ReDoS) in date This vulnerability has been assigned a severity rating of HIGH (CVSS score: 7.5/10).
- How do I check if my project is affected by CVE-2021-41817?
- CVE-2021-41817 affects date. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2021-41817 and 200,000+ other known vulnerabilities.
Severity & Exploitability
High exploitability or significant impact. Prioritize remediation within days.
Also Known As
Related CVEs
- CVE-2026-94462HIGH
Spree: Broken Access Control in `PATCH /api/v3/store/carts/:id/associate` (IDOR)
- CVE-2026-77601HIGH
OpenC3 COSMOS: Authenticated OS command injection via the `pypi_url` setting
Check if you're affected
Scan your dependencies to see if this vulnerability affects your projects.
Scan Your Dependencies