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

exploitDog

nvd логотип

CVE-2022-41715

Опубликовано: 14 окт. 2022
Источник: nvd
CVSS3: 7.5
EPSS Низкий

Уязвимость DoS атаки и истощения памяти при компиляции регулярных выражений из недоверенных источников

Описание

Программы, которые компилируют регулярные выражения из недоверенных источников, уязвимы для DoS-атак или истощения памяти (memory exhaustion). Хотя представление разбора (парсинга) регулярных выражений линейно зависит от размера входных данных, в некоторых случаях коэффициент роста может достигать 40,000, что приводит к значительному потреблению памяти даже при относительно небольших выражениях.

Исправление

После исправления каждое парсируемое регулярное выражение ограничено мемориальным объемом в 256 МБ. Регулярные выражения, чье представление требует больше места, отвергаются. Нормальное использование регулярных выражений не затрагивается.

Тип уязвимости

  • DoS атака
  • Истощение памяти

Уязвимые конфигурации

Конфигурация 1

Одно из

cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*
Версия до 1.18.7 (исключая)
cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*
Версия от 1.19.0 (включая) до 1.19.2 (исключая)

EPSS

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

7.5 High

CVSS3

Дефекты

NVD-CWE-Other

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

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

Programs which compile regular expressions from untrusted sources may be vulnerable to memory exhaustion or denial of service. The parsed regexp representation is linear in the size of the input, but in some cases the constant factor can be as high as 40,000, making relatively small regexps consume much larger amounts of memory. After fix, each regexp being parsed is limited to a 256 MB memory footprint. Regular expressions whose representation would use more space than that are rejected. Normal use of regular expressions is unaffected.

CVSS3: 6.5
redhat
больше 2 лет назад

Programs which compile regular expressions from untrusted sources may be vulnerable to memory exhaustion or denial of service. The parsed regexp representation is linear in the size of the input, but in some cases the constant factor can be as high as 40,000, making relatively small regexps consume much larger amounts of memory. After fix, each regexp being parsed is limited to a 256 MB memory footprint. Regular expressions whose representation would use more space than that are rejected. Normal use of regular expressions is unaffected.

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

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

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

Programs which compile regular expressions from untrusted sources may ...

CVSS3: 7.5
github
больше 2 лет назад

Programs which compile regular expressions from untrusted sources may be vulnerable to memory exhaustion or denial of service. The parsed regexp representation is linear in the size of the input, but in some cases the constant factor can be as high as 40,000, making relatively small regexps consume much larger amounts of memory. After fix, each regexp being parsed is limited to a 256 MB memory footprint. Regular expressions whose representation would use more space than that are rejected. Normal use of regular expressions is unaffected.

EPSS

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

7.5 High

CVSS3

Дефекты

NVD-CWE-Other