nodejs-handlebars: prototype pollution leading to remote code execution via crafted payloads
Published Dec 20, 2019
9.8
CRITICALCVSS 3.1
EPSS 7.07%
Description
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.
Affected products
No data.
Configuration 1
- 1.0.6
- 1.0.7
- 1.0.8
- 1.0.9
- 1.0.10
- 1.0.11
- 1.0.12
- 1.1.0
- 1.1.1
- 1.1.2
- 1.2.0
- 1.2.1
- 1.3.0
- 2.0.0
- 3.0.0
- 3.0.1
- 3.0.2
- 3.0.3
- 3.0.4
- 3.0.5
- 3.0.6
- 3.0.7
- 4.0.0
- 4.0.1
- 4.0.2
- 4.0.3
- 4.0.4
- 4.0.5
- 4.0.6
- 4.0.7
- 4.0.8
- 4.0.9
- 4.0.10
- 4.0.11
- 4.0.12
- 4.0.13
- 4.0.14
- 4.1.0
- 4.1.1
- 4.1.2
- 4.2.0
- 4.2.1
- 4.2.2
Configuration 2
- < 5.19.0
No data.
RHPAM 7.13.1 async
handlebars
Fixed · RHSA-2023:1334
Red Hat OpenShift Container Platform 3.11
kibana
Affected
Red Hat OpenShift Container Platform 4
kibana
Affected
Red Hat Quay 3
nodejs-handlebars
Affected
| Product | Package | State | Advisory |
|---|---|---|---|
| RHPAM 7.13.1 async | handlebars | Fixed | RHSA-2023:1334 |
| Red Hat OpenShift Container Platform 3.11 | kibana | Affected | n/a |
| Red Hat OpenShift Container Platform 4 | kibana | Affected | n/a |
| Red Hat Quay 3 | nodejs-handlebars | Affected | n/a |
handlebars
npm
Introduced 0 Fixed 3.0.8handlebars
npm
Introduced 4.0.0 Fixed 4.3.0bootstrap-wysihtml5-rails
RubyGems
Introduced 0.3.3.5 Fixed not fixed
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| npm | handlebars | 0 | 3.0.8 |
| npm | handlebars | 4.0.0 | 4.3.0 |
| RubyGems | bootstrap-wysihtml5-rails | 0.3.3.5 | not fixed |
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.
References (16)
- https://access.redhat.com/security/cve/CVE-2019-19919 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1789959 Issue Tracking
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-19919
- https://euvd.enisa.europa.eu/vulnerability/EUVD-2019-0803 Advisory
- https://github.com/Nerian/bootstrap-wysihtml5-rails/blob/master/vendor/assets/javascripts/bootstrap-wysihtml5/handlebars.runtime.min.js
- https://github.com/Nerian/bootstrap-wysihtml5-rails/tree/master/vendor/assets/javascripts/bootstrap-wysihtml5
- https://github.com/advisories/GHSA-w457-6q6x-cgp9 Advisory
- https://github.com/handlebars-lang/handlebars.js/commit/156061eb7707575293613d7fdf90e2bdaac029ee
- https://github.com/handlebars-lang/handlebars.js/commit/90ad8d97ad2933852fb83fcc054699dc99e094db
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/bootstrap-wysihtml5-rails/CVE-2019-19919.yml
- https://github.com/wycats/handlebars.js/commit/2078c727c627f25d4a149962f05c1e069beb18bc
- https://github.com/wycats/handlebars.js/issues/1558
- https://nvd.nist.gov/vuln/detail/CVE-2019-19919
- https://www.cve.org/CVERecord?id=CVE-2019-19919
- https://www.npmjs.com/advisories/1164 x_refsource_MISCThird Party Advisory
- https://www.tenable.com/security/tns-2021-14 x_refsource_CONFIRMPatchThird Party Advisory
Change history (0)
No recorded changes yet.