Name | CVE-2021-41817 |
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. |
Source | CVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
References | DLA-2853-1, DSA-5066-1, DSA-5067-1, ELA-1148-1, ELA-531-1 |
Debian Bugs | 1002995 |
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|---|---|---|
ruby2.1 (PTS) | jessie, jessie (lts) | 2.1.5-2+deb8u14 | fixed |
ruby2.3 (PTS) | stretch (security) | 2.3.3-1+deb9u11 | fixed |
stretch (lts), stretch | 2.3.3-1+deb9u12 | fixed | |
ruby2.5 (PTS) | buster, buster (lts) | 2.5.5-3+deb10u7 | fixed |
buster (security) | 2.5.5-3+deb10u6 | fixed | |
ruby2.7 (PTS) | bullseye | 2.7.4-1+deb11u1 | fixed |
bullseye (security) | 2.7.4-1+deb11u2 | fixed |
The information below is based on the following data on fixed versions.
Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
---|---|---|---|---|---|---|
ruby2.1 | source | jessie | 2.1.5-2+deb8u14 | ELA-1148-1 | ||
ruby2.1 | source | (unstable) | (unfixed) | |||
ruby2.3 | source | stretch | 2.3.3-1+deb9u11 | DLA-2853-1 | ||
ruby2.3 | source | (unstable) | (unfixed) | |||
ruby2.5 | source | buster | 2.5.5-3+deb10u4 | DSA-5066-1 | ||
ruby2.5 | source | (unstable) | (unfixed) | |||
ruby2.7 | source | bullseye | 2.7.4-1+deb11u1 | DSA-5067-1 | ||
ruby2.7 | source | (unstable) | 2.7.5-1 | |||
ruby3.0 | source | (unstable) | 3.0.3-1 | 1002995 |
Fixed in Ruby 3.0.3, 2.7.5, 2.6.9
https://www.ruby-lang.org/en/news/2021/11/15/date-parsing-method-regexp-dos-cve-2021-41817/
Fixed by: https://github.com/ruby/date/commit/3959accef8da5c128f8a8e2fd54e932a4fb253b0 (v3.2.2)
Followups to mimic previous behaviour:
https://github.com/ruby/date/commit/8f2d7a0c7e52cea8333824bd527822e5449ed83d (v3.2.2)
https://github.com/ruby/date/commit/376c65942bd1d81803f14d37351737df60ec4664 (v3.2.2)