CVE-2021-41817Published Jan 1, 2022 · Jan 1Updated Oct 24
Regular expression denial of service vulnerability (ReDoS) in date
High7.5Fix available
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| date RubyGems |
|
|
| Product | Affected | Fixed in |
|---|---|---|
| date RubyGems |
|
|
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.
From the CVE record · mitre
Date.parse in the RubyGems date package is vulnerable to regular-expression denial of service when given a long string. An attacker who can supply a string to Date.parse could trigger the issue; the input does not specify network access, authentication, or user-interaction requirements.
Check RubyGems date installations on versions below 2.0.1, from 3.0.0 to below 3.0.2, from 3.1.0 to below 3.1.2, or from 3.2.0 to below 3.2.1.