Vulnerability in Ruby-Lang Date
CVE-2021-41817
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.
Vulnerability class: ReDoS (Regular Expression Denial of Service)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.5 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
EPSS exploit prediction
EPSS 0.035, 89.2th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Ruby-Lang Date — versions 3.2.0
- Ruby-Lang Ruby
- Debian Linux — versions 9.0, 10.0, 11.0
- Fedoraproject Fedora — versions 34, 35
- openSUSE Factory
- openSUSE Leap — versions 15.2
- Red Hat Enterprise Linux — versions 7.0, 8.0
- Red Hat Software Collections
- SUSE Linux Enterprise — versions 12.0, 15.0
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 3 other repositories (ARPSyndicate/cvemon, engn33r/awesome-redos-security, lifeparticle/Ruby-Cheatsheet). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- hackerone.com/reports/1254844 (Permissions Required)
- www.ruby-lang.org/en/news/2021/11/15/date-parsing-method-regexp-dos-cve-2021-41… (Exploit, Vendor Advisory)
- FEDORA-2022-82a9edac27 (vendor-advisory)
- FEDORA-2022-8cf0124add (vendor-advisory)
- GLSA-202401-27 (vendor-advisory)