Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

github логотип

GHSA-qg54-694p-wgpp

Опубликовано: 16 нояб. 2021
Источник: github
Github: Прошло ревью
CVSS3: 7.5

Описание

Regular expression denial of service vulnerability (ReDoS) in date

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. If you import date from the standard library rather than as a gem you should update your Ruby install to 3.0.3, 2.7.5, 2.6.9 or later.

Users unable to upgrade may consider using Date.strptime instead with a predefined date format

Date.strptime('2001-02-20', '%Y-%m-%d')

Пакеты

Наименование

date

rubygems
Затронутые версииВерсия исправления

>= 3.2.0, < 3.2.1

3.2.1

Наименование

date

rubygems
Затронутые версииВерсия исправления

>= 3.1.0, < 3.1.2

3.1.2

Наименование

date

rubygems
Затронутые версииВерсия исправления

>= 3.0.0, < 3.0.2

3.0.2

Наименование

date

rubygems
Затронутые версииВерсия исправления

< 2.0.1

2.0.1

EPSS

Процентиль: 61%
0.00422
Низкий

7.5 High

CVSS3

Дефекты

CWE-1333

Связанные уязвимости

CVSS3: 7.5
ubuntu
больше 3 лет назад

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.

CVSS3: 7.5
redhat
больше 3 лет назад

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.

CVSS3: 7.5
nvd
больше 3 лет назад

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.

CVSS3: 7.5
msrc
больше 3 лет назад

Описание отсутствует

CVSS3: 7.5
debian
больше 3 лет назад

Date.parse in the date gem through 3.2.0 for Ruby allows ReDoS (regula ...

EPSS

Процентиль: 61%
0.00422
Низкий

7.5 High

CVSS3

Дефекты

CWE-1333