Bug 1789959 (CVE-2019-19919) - CVE-2019-19919 nodejs-handlebars: prototype pollution leading to remote code execution via crafted payloads
Summary: CVE-2019-19919 nodejs-handlebars: prototype pollution leading to remote code ...
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2019-19919
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1957625 1957626 1957627 1789960 1789961 1789962 1790773 1790775 1790776 1790777 1790778
Blocks: 1789963
TreeView+ depends on / blocked
 
Reported: 2020-01-10 20:34 UTC by Guilherme de Almeida Suckevicz
Modified: 2023-03-20 13:31 UTC (History)
23 users (show)

Fixed In Version: nodejs-handlebars-4.3.0
Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in nodejs-handlebars, where it is vulnerable to Prototype Pollution leading to Remote Code Execution. Templates may alter an Object's __proto__ and __defineGetter__ properties, which allows an attacker to execute arbitrary code through crafted payloads. The highest threat from this vulnerability is to confidentiality and integrity.
Clone Of:
Environment:
Last Closed: 2023-03-20 13:31:04 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2023:1334 0 None None None 2023-03-20 09:13:15 UTC

Description Guilherme de Almeida Suckevicz 2020-01-10 20:34:15 UTC
Versions of handlebars prior to 4.3.0 are vulnerable to Prototype Pollution leading to Remote Code Execution. Templates may alter an Object's __proto__ and __defineGetter__ properties, which may allow an attacker to execute arbitrary code through crafted payloads.

Reference:
https://www.npmjs.com/advisories/1164

Comment 1 Guilherme de Almeida Suckevicz 2020-01-10 20:34:38 UTC
Created nodejs-handlebars tracking bugs for this issue:

Affects: epel-6 [bug 1789961]
Affects: epel-7 [bug 1789962]
Affects: fedora-all [bug 1789960]

Comment 2 Parag Nemade 2020-01-13 06:29:50 UTC
i really wonder about CVE bugs getting reported since a year for various packages related to me. First they got reported then priority set low then discovered not present in one by one distribution and then get closed.....

Comment 3 Jason Shepherd 2020-01-14 07:09:14 UTC
While OpenShift Container Platform (OCP) contains the affected nodejs-handlebars code, it's added as a dependency of Kibana 5. Similar issue about prototype pollution [1] have been fixed, but no known attack vector was found, so we're rating this issue as Low for OCP. 

[1] CVE-2019-10744 https://www.elastic.co/community/security

Comment 5 Jason Shepherd 2020-01-14 07:13:10 UTC
While Red Hat Quay declares a dependency on nodejs-handlebars, it doesn't appear to be used in the code. This issue might be fixed in a future update.

Comment 7 Jason Shepherd 2021-05-04 00:21:11 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.

Comment 19 errata-xmlrpc 2023-03-20 09:13:13 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

Comment 20 Product Security DevOps Team 2023-03-20 13:31:01 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-19919


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