Bug 1882256 (CVE-2019-20922) - CVE-2019-20922 nodejs-handlebars: an endless loop while processing specially-crafted templates leads to DoS
Summary: CVE-2019-20922 nodejs-handlebars: an endless loop while processing specially-...
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2019-20922
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1882258 1882257 1883900 1883902 1884126
Blocks: 1882265
TreeView+ depends on / blocked
 
Reported: 2020-09-24 07:58 UTC by Marian Rehak
Modified: 2023-03-20 09:13 UTC (History)
49 users (show)

Fixed In Version: nodejs-handlebars 4.4.5
Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in nodejs-handlebars, where affected versions of handlebars are vulnerable to a denial of service. The package's parser may be forced into an endless loop while processing specially-crafted templates. This flaw allows attackers to exhaust system resources, leading to a denial of service.
Clone Of:
Environment:
Last Closed: 2020-11-24 17:33:53 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2020:5179 0 None None None 2020-11-24 13:09:10 UTC
Red Hat Product Errata RHSA-2021:2500 0 None None None 2021-06-29 06:30:29 UTC
Red Hat Product Errata RHSA-2021:3917 0 None None None 2021-10-19 12:10:20 UTC
Red Hat Product Errata RHSA-2023:1334 0 None None None 2023-03-20 09:13:21 UTC

Description Marian Rehak 2020-09-24 07:58:49 UTC
Affected versions of handlebars are vulnerable to Denial of Service. The package's parser may be forced into an endless loop while processing specially-crafted templates. This may allow attackers to exhaust system resources leading to Denial of Service.

Reference:

https://www.npmjs.com/advisories/1300

Comment 1 Marian Rehak 2020-09-24 07:59:19 UTC
Created /nodejs-handlebars tracking bugs for this issue:

Affects: epel-all [bug 1882258]
Affects: fedora-all [bug 1882257]

Comment 3 Przemyslaw Roguski 2020-09-24 11:42:44 UTC
External References:

https://www.npmjs.com/advisories/1300

Comment 13 Stoyan Nikolov 2020-10-01 06:53:40 UTC
Statement:

Red Hat Quay includes Handlebars.js as a development dependency. It does not use Handlebars.js at runtime to process templates so have 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 ovirt-web-ui Handlebars.js is included as a development dependency and is not used at runtime to process templates so have 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.

Comment 16 errata-xmlrpc 2020-11-24 13:09:08 UTC
This issue has been addressed in the following products:

  Red Hat Virtualization Engine 4.4

Via RHSA-2020:5179 https://access.redhat.com/errata/RHSA-2020:5179

Comment 17 Product Security DevOps Team 2020-11-24 17:33:53 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2019-20922

Comment 20 errata-xmlrpc 2021-06-29 06:30:26 UTC
This issue has been addressed in the following products:

  Red Hat OpenShift Container Platform 4.6

Via RHSA-2021:2500 https://access.redhat.com/errata/RHSA-2021:2500

Comment 21 errata-xmlrpc 2021-10-19 12:10:18 UTC
This issue has been addressed in the following products:

  Red Hat Quay 3

Via RHSA-2021:3917 https://access.redhat.com/errata/RHSA-2021:3917

Comment 24 errata-xmlrpc 2023-03-20 09:13:18 UTC
This issue has been addressed in the following products:

  Red Hat Process Automation

Via RHSA-2023:1334 https://access.redhat.com/errata/RHSA-2023:1334


Note You need to log in before you can comment on or make changes to this bug.