nodejs-handlebars: an endless loop while processing specially-crafted templates leads to DoS
Published Sep 30, 2020
7.5
HIGHCVSS 3.1
EPSS 3.69%
Description
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.
Affected products
No data.
- ≥ 4.0.0 · < 4.4.5
No data.
RHPAM 7.13.1 async
handlebars
Fixed · RHSA-2023:1334
Red Hat OpenShift Container Platform 4.6
openshift4/ose-logging-kibana6:v4.6.0-202106181629.p0.git.40f3e72
Fixed · RHSA-2021:2500
Red Hat Quay 3
quay/quay-rhel8:v3.6.0-62
Fixed · RHSA-2021:3917
Red Hat Virtualization Engine 4.4
ovirt-web-ui-0:1.6.5-1.el8ev
Fixed · RHSA-2020:5179
OpenShift Service Mesh 1
kiali
Not affected
OpenShift Service Mesh 1
servicemesh-grafana
Will not fix
Red Hat Advanced Cluster Management for Kubernetes 2
handlebars
Not affected
Red Hat OpenShift Container Platform 3.11
kibana
Will not fix
Red Hat OpenShift Container Platform 3.11
openshift3/grafana
Will not fix
Red Hat OpenShift Container Platform 4
kibana
Will not fix
Red Hat OpenShift Container Platform 4
openshift4/ose-grafana
Will not fix
Red Hat Virtualization 4
ovirt-engine-ui-extensions
Not affected
| Product | Package | State | Advisory |
|---|---|---|---|
| RHPAM 7.13.1 async | handlebars | Fixed | RHSA-2023:1334 |
| Red Hat OpenShift Container Platform 4.6 | openshift4/ose-logging-kibana6:v4.6.0-202106181629.p0.git.40f3e72 | Fixed | RHSA-2021:2500 |
| Red Hat Quay 3 | quay/quay-rhel8:v3.6.0-62 | Fixed | RHSA-2021:3917 |
| Red Hat Virtualization Engine 4.4 | ovirt-web-ui-0:1.6.5-1.el8ev | Fixed | RHSA-2020:5179 |
| OpenShift Service Mesh 1 | kiali | Not affected | n/a |
| OpenShift Service Mesh 1 | servicemesh-grafana | Will not fix | n/a |
| Red Hat Advanced Cluster Management for Kubernetes 2 | handlebars | Not affected | n/a |
| Red Hat OpenShift Container Platform 3.11 | kibana | Will not fix | n/a |
| Red Hat OpenShift Container Platform 3.11 | openshift3/grafana | Will not fix | n/a |
| Red Hat OpenShift Container Platform 4 | kibana | Will not fix | n/a |
| Red Hat OpenShift Container Platform 4 | openshift4/ose-grafana | Will not fix | n/a |
| Red Hat Virtualization 4 | ovirt-engine-ui-extensions | Not affected | n/a |
handlebars
npm
Introduced 4.0.0 Fixed 4.4.5
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| npm | handlebars | 4.0.0 | 4.4.5 |
Remediation
Red Hat statement
Red Hat Quay includes Handlebars.js as a development dependency. It does not use Handlebars.js at runtime to process templates, so it has been given a low impact rating. Red Hat Virtualization includes Handlebars.js in two components. In ovirt-engine-ui-extentions, the version used is newer and not affected by this flaw. In the ovirt-web-ui,Handlebars.js is included as a development dependency and is not used at runtime to process templates, so it has been given a low impact rating. Red Hat OpenShift Container Platform (OCP) 4 delivers the kibana package, which includes Handlebars.js. From OCP 4.6, the kibana package is no longer shipped and will not be fixed. The openshift4/ose-logging-kibana6 container includes Handlebars.js directly as container first code. The vulnerable version of Handlebars.js is also included in openshift4/ose-grafana, but as the Grafana instance is in read-only mode, the configuration/dashboards cannot be modified.
References (9)
- https://access.redhat.com/security/cve/CVE-2019-20922 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1882256 Issue Tracking
- https://github.com/advisories/GHSA-62gr-4qp9-h98f Advisory
- https://github.com/handlebars-lang/handlebars.js/commit/8d5530ee2c3ea9f0aee3fde310b9f36887d00b8b x_refsource_MISCPatchThird Party Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2019-20922
- https://snyk.io/vuln/SNYK-JS-HANDLEBARS-480388 x_refsource_MISCThird Party Advisory
- https://www.cve.org/CVERecord?id=CVE-2019-20922
- https://www.npmjs.com/advisories/1300 x_refsource_MISCThird Party Advisory
- https://www.npmjs.com/package/handlebars
| Link | Providers | Tags |
|---|---|---|
| https://access.redhat.com/security/cve/CVE-2019-20922 | Vendor Advisory | |
| https://bugzilla.redhat.com/show_bug.cgi?id=1882256 | Issue Tracking | |
| https://github.com/advisories/GHSA-62gr-4qp9-h98f | Advisory | |
| https://github.com/handlebars-lang/handlebars.js/commit/8d5530ee2c3ea9f0aee3fde310b9f36887d00b8b | x_refsource_MISCPatchThird Party Advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2019-20922 | ||
| https://snyk.io/vuln/SNYK-JS-HANDLEBARS-480388 | x_refsource_MISCThird Party Advisory | |
| https://www.cve.org/CVERecord?id=CVE-2019-20922 | ||
| https://www.npmjs.com/advisories/1300 | x_refsource_MISCThird Party Advisory | |
| https://www.npmjs.com/package/handlebars |
Change history (0)
No recorded changes yet.