CVE-2019-20922 json
Regular Expression Denial of Service in Handlebars
published 2020-09-30 6 y ago modified 2026-07-08 4 mo ago also GHSA-62gr-4qp9-h98f , EUVD-2022-0849
- cvss
- 7.5
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 3.7%
- EPSS 3.7% chance of exploitation in 30 days, percentile 89%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- npm handlebars 4.4.5
- handlebarsjs handlebars 4.4.5
- rhvm rhev manager 4.4 4.4.3.8-0.1.el8ev
- ovirt-engine rhev manager 4.4 4.4.3.8-0.1.el8ev
- ovirt-web-ui rhev manager 4.4 1.6.5-1.el8ev
- ovirt-engine-setup rhev manager 4.4 4.4.3.8-0.1.el8ev
- ovirt-engine-tools rhev manager 4.4 4.4.3.8-0.1.el8ev
- ovirt-engine-backend rhev manager 4.4 4.4.3.8-0.1.el8ev
- ovirt-engine-restapi rhev manager 4.4 4.4.3.8-0.1.el8ev
- ovirt-engine-dbscripts rhev manager 4.4 4.4.3.8-0.1.el8ev
red hat advisories RHSA-2020:5179
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2019-20922 updated cvss 7.5
nodejs-handlebars: an endless loop while processing specially-crafted templates leads to DoS
-
Red Hat OpenShift Service Mesh 1 servicemesh-grafana, servicemesh-grafana-prometheus Red Hat OpenShift Container Platform 3.11 kibana, openshift3/grafana Red Hat OpenShift Container Platform 4 kibana, openshift4/ose-grafanaaffected: no fix planned “Will not fix”
-
Red Hat Quay v3 quay/quay-rhel8 v3.6.0-62fixed: vendor fix RHSA-2021:3917
-
Red Hat OpenShift Container Platform 4.6 openshift4/ose-logging-kibana6 v4.6.0-202106181629.p0.git.40f3e72fixed: vendor fix RHSA-2021:2500
-
Red Hat RHEL-8-RHEV-S-4.4 - Red Hat Virtualization Engine 4.4 ovirt-web-ui 1.6.5-1.el8evfixed: vendor fix RHSA-2020:5179
-
Red Hat RHPAM 7.13.1 asyncfixed: vendor fix RHSA-2023:1334
-
Red Hat OpenShift Service Mesh 1 kiali Red Hat Quay v3 quay/clair-rhel8 v3.6.0-70, quay/quay-builder-rhel8 v3.6.0-44, quay/quay-operator-rhel8 v3.6.0-43, quay/quay-operator-bundle v3.6.0-48, quay/quay-bridge-operator-rhel8 v3.6.0-40, quay/quay-bridge-operator-bundle v3.6.0-35, +3 more Red Hat Advanced Cluster Management for Kubernetes 2 handlebars Red Hat OpenShift Container Platform 4.6 openshift4/ose-logging-fluentd v4.6.0-202106181629.p0.git.40f3e72, openshift4/ose-logging-curator5 v4.6.0-202106181629.p0.git.40f3e72, openshift4/ose-elasticsearch-operator v4.6.0-202106181629.p0.git.c07c7ab, openshift4/ose-logging-elasticsearch6 v4.6.0-202106181629.p0.git.40f3e72, openshift4/ose-cluster-logging-operator v4.6.0-202106181629.p0.git.c7e8377, openshift4/ose-metering-ansible-operator v4.6.0-202106160917.p0.git.d74112d, +1 more Red Hat Virtualization 4 ovirt-engine-ui-extensions Red Hat RHEL-8-RHEV-S-4.4 - Red Hat Virtualization Engine 4.4 rhvm 4.4.3.8-0.1.el8ev, engine-db-query 1.6.2-1.el8ev, ovirt-engine 4.4.3.8-0.1.el8ev, rhvm-branding-rhv 4.4.6-1.el8ev, ovirt-engine-dwh 4.4.3.1-1.el8ev, ovirt-log-collector 4.4.4-1.el8ev, +26 morenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
3.69% chance of exploitation in the next 30 days, higher than 89% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 2.0 | 7.8 | AV:N/AC:L/Au:N/C:N/I:N/A:C |
| GitHub | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | handlebars | >=4.0.0, <4.4.5 |
4.4.5 |
Classification
- Weakness
-
- CWE-400 Uncontrolled Resource Consumption
References
-
github.com
/handlebars-lang/handlebars.js/commit/8d5530ee2c3ea9f0aee3fde310b9f36887d00b8b
web, patch, third-party-advisory
-
npmjs.com
/advisories/1300
web, third-party-advisory
-
snyk.io
/vuln/SNYK-JS-HANDLEBARS-480388
web, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2019-20922
advisory
-
npmjs.com
/package/handlebars
web
Sources
- CVE List CVE-2019-20922
- GitHub Advisory GHSA-62gr-4qp9-h98f
- NVD CVE-2019-20922
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.