CVE Vulnerabilities

CVE-2018-20796

Uncontrolled Recursion

Published: Feb 26, 2019 | Modified: Nov 07, 2023
CVSS 3.x
7.5
HIGH
Source:
NVD
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS 2.x
5 MEDIUM
AV:N/AC:L/Au:N/C:N/I:N/A:P
RedHat/V2
RedHat/V3
5.3 MODERATE
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Ubuntu
NEGLIGIBLE

In the GNU C Library (aka glibc or libc6) through 2.29, check_dst_limits_calc_pos_1 in posix/regexec.c has Uncontrolled Recursion, as demonstrated by (227|)(11|t1|2537)+ in grep.

Weakness

The product does not properly control the amount of recursion that takes place, consuming excessive resources, such as allocated memory or the program stack.

Affected Software

Name Vendor Start Version End Version
Glibc Gnu * 2.29 (including)
Eglibc Ubuntu esm-infra-legacy/trusty *
Eglibc Ubuntu precise/esm *
Eglibc Ubuntu trusty *
Eglibc Ubuntu trusty/esm *
Glibc Ubuntu bionic *
Glibc Ubuntu cosmic *
Glibc Ubuntu devel *
Glibc Ubuntu disco *
Glibc Ubuntu eoan *
Glibc Ubuntu esm-infra/bionic *
Glibc Ubuntu esm-infra/xenial *
Glibc Ubuntu focal *
Glibc Ubuntu xenial *

Potential Mitigations

References