[RUBYSEC:DATE-2021-41817] Regular Expression Denial of Service Vulnerability of Date Parsing Methods

Severity High
Affected Packages 1
Fixed Packages 4
CVEs 1

Date's parsing methods including Date.parse are using Regexps internally, some of
which are vulnerable against regular expression denial of service. Applications and
libraries that apply such methods to untrusted input may be affected.

The fix limits the input length up to 128 bytes by default instead of changing the
regexps. This is because Date gem uses many Regexps and it is possible that there are
still undiscovered vulnerable Regexps. For compatibility, it is allowed to remove the
limitation by explicitly passing limit keywords as nil like
Date.parse(str, limit: nil), but note that it may take a long time to parse.

Please update the date gem to version 3.2.1, 3.1.2, 3.0.2, and 2.0.1, or later. You
can use gem update date to update it. If you are using bundler, please add
gem "date", ">= 3.2.1" to your Gemfile.

Package Affected Version
pkg:gem/date < 3.2.1
Package Fixed Version
pkg:gem/date = 2.0.1
pkg:gem/date = 3.0.2
pkg:gem/date = 3.1.2
pkg:gem/date >= 3.2.1
Source # ID Name URL
Security Advisory GHSA-qg54-694p-wgpp https://github.com/advisories/GHSA-qg54-694p-wgpp
Type Package URL Namespace Name / Product Version Distribution / Platform Arch Patch / Fix
Fixed pkg:gem/date date = 2.0.1
Fixed pkg:gem/date date = 3.0.2
Fixed pkg:gem/date date = 3.1.2
Fixed pkg:gem/date date >= 3.2.1
Affected pkg:gem/date date < 3.2.1
# CVE Description CVSS EPSS EPSS Trend (30 days) Affected Products Weaknesses Security Advisories Exploits PoC Pubblication Date Modification Date
# CVE Description CVSS EPSS EPSS Trend (30 days) Affected Products Weaknesses Security Advisories PoC Pubblication Date Modification Date
Loading...