CVE Vulnerabilities

CVE-2019-20922

Uncontrolled Resource Consumption

Published: Sep 30, 2020 | Modified: Nov 21, 2024
CVSS 3.x
7.5
HIGH
Source:
NVD
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS 2.x
7.8 HIGH
AV:N/AC:L/Au:N/C:N/I:N/A:C
RedHat/V2
RedHat/V3
7.5 MODERATE
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Ubuntu
MEDIUM
root.io logo minimus.io logo echo.ai logo

Handlebars before 4.4.5 allows Regular Expression Denial of Service (ReDoS) because of eager matching. The parser may be forced into an endless loop while processing crafted templates. This may allow attackers to exhaust system resources.

Weakness

The product does not properly control the allocation and maintenance of a limited resource.

Affected Software

NameVendorStart VersionEnd Version
HandlebarsHandlebarsjs4.0.0 (including)4.4.5 (excluding)
Red Hat OpenShift Container Platform 4.6RedHatopenshift4/ose-logging-kibana6:v4.6.0-202106181629.p0.git.40f3e72*
Red Hat Quay 3RedHatquay/quay-rhel8:v3.6.0-62*
Red Hat Virtualization Engine 4.4RedHatovirt-web-ui-0:1.6.5-1.el8ev*
RHPAM 7.13.1 asyncRedHathandlebars*
Libjs-handlebarsUbuntutrusty*
Node-handlebarsUbuntubionic*
Node-handlebarsUbuntutrusty*
Node-handlebarsUbuntuupstream*

Potential Mitigations

  • Mitigation of resource exhaustion attacks requires that the target system either:

  • The first of these solutions is an issue in itself though, since it may allow attackers to prevent the use of the system by a particular valid user. If the attacker impersonates the valid user, they may be able to prevent the user from accessing the server in question.

  • The second solution is simply difficult to effectively institute – and even when properly done, it does not provide a full solution. It simply makes the attack require more resources on the part of the attacker.

References