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

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

Name Vendor Start Version End Version
Handlebars Handlebarsjs 4.0.0 (including) 4.4.5 (excluding)
Red Hat OpenShift Container Platform 4.6 RedHat openshift4/ose-logging-kibana6:v4.6.0-202106181629.p0.git.40f3e72 *
Red Hat Quay 3 RedHat quay/quay-rhel8:v3.6.0-62 *
Red Hat Virtualization Engine 4.4 RedHat ovirt-web-ui-0:1.6.5-1.el8ev *
RHPAM 7.13.1 async RedHat handlebars *
Libjs-handlebars Ubuntu trusty *
Node-handlebars Ubuntu bionic *
Node-handlebars Ubuntu trusty *
Node-handlebars Ubuntu upstream *

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