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

exploitDog

github логотип

GHSA-2m96-52r3-2f3g

Опубликовано: 19 авг. 2024
Источник: github
Github: Прошло ревью
CVSS4: 5.3
CVSS3: 5.3

Описание

fugit parse and parse_nat stall on lengthy input

Impact

The fugit "natural" parser, that turns "every wednesday at 5pm" into "0 17 * * 3", accepted any length of input and went on attempting to parse it, not returning promptly, as expected. The parse call could hold the thread with no end in sight.

Fugit dependents that do not check (user) input length for plausability are impacted.

Patches

Problem was reported in #104 and the fix was released in fugit 1.11.1

Workarounds

By making sure that Fugit.parse(s), Fugit.do_parse(s), Fugit.parse_nat(s), Fugit.do_parse_nat(s), Fugit::Nat.parse(s), and Fugit::Nat.do_parse(s) are not fed strings too long. 1000 chars feels ok, while 10_000 chars makes it stall.

In fewer words, making sure those fugit methods are not fed unvetted input strings.

References

gh-104

Пакеты

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

fugit

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

< 1.11.1

1.11.1

EPSS

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

5.3 Medium

CVSS4

5.3 Medium

CVSS3

Дефекты

CWE-400

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

CVSS3: 5.3
ubuntu
больше 1 года назад

fugit contains time tools for flor and the floraison group. The fugit "natural" parser, that turns "every wednesday at 5pm" into "0 17 * * 3", accepted any length of input and went on attempting to parse it, not returning promptly, as expected. The parse call could hold the thread with no end in sight. Fugit dependents that do not check (user) input length for plausibility are impacted. A fix was released in fugit 1.11.1.

CVSS3: 3.3
redhat
больше 1 года назад

fugit contains time tools for flor and the floraison group. The fugit "natural" parser, that turns "every wednesday at 5pm" into "0 17 * * 3", accepted any length of input and went on attempting to parse it, not returning promptly, as expected. The parse call could hold the thread with no end in sight. Fugit dependents that do not check (user) input length for plausibility are impacted. A fix was released in fugit 1.11.1.

CVSS3: 5.3
nvd
больше 1 года назад

fugit contains time tools for flor and the floraison group. The fugit "natural" parser, that turns "every wednesday at 5pm" into "0 17 * * 3", accepted any length of input and went on attempting to parse it, not returning promptly, as expected. The parse call could hold the thread with no end in sight. Fugit dependents that do not check (user) input length for plausibility are impacted. A fix was released in fugit 1.11.1.

CVSS3: 5.3
debian
больше 1 года назад

fugit contains time tools for flor and the floraison group. The fugit ...

EPSS

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

5.3 Medium

CVSS4

5.3 Medium

CVSS3

Дефекты

CWE-400