CVE-2021-23369 json
Remote Code Execution (RCE)
published 2021-04-12 5 y ago modified 2026-10-08 31 d ago also GHSA-f2jv-r9rf-7988 , EUVD-2021-1052
- cvss
- 5.6
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 7.0%
- EPSS 7.0% chance of exploitation in 30 days, percentile 94%
- public exploits
- 0
- none known
Summary
The package handlebars before 4.7.7 are vulnerable to Remote Code Execution (RCE) when selecting certain compiling options to compile templates coming from an untrusted source.
Patch / fix
- npm handlebars 4.7.7
- maven org.webjars:handlebars 4.7.7
- maven org.webjars.npm:handlebars 4.7.7
- maven org.webjars.bowergithub.wycats:handlebars.js 4.7.7
- n/a handlebars 4.7.7
- node-handlebars Debian 14, Debian 13, Debian 12 3:4.7.6+~4.1.0-2
debian advisories DEBIAN-CVE-2021-23369
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-2021-23369 updated cvss 9.8
nodejs-handlebars: Remote code execution when compiling untrusted compile templates with strict:true option
-
Red Hat OpenShift Service Mesh 2.0 servicemesh-grafana, servicemesh-prometheus, servicemesh-grafana-prometheusaffected: no fix available
-
Red Hat 3scale API Management Platform 2 nodejs-handlebars nodejs-handlebarsaffected: no fix planned “Will not fix”
-
Red Hat Advanced Cluster Management for Kubernetes 2 rhacm2/application-ui-rhel8affected: no fix available
-
Red Hat Enterprise Linux 6 pcs Red Hat Enterprise Linux 7 pcs, pcs-snmp, python-clufteraffected: no fix planned “Out of support scope”
-
Red Hat Enterprise Linux 8 pcs, pcs-snmp Red Hat OpenShift Container Platform 3.11 kibanaaffected: no fix available “Fix deferred”
-
Red Hat OpenShift Container Platform 4 kibanaaffected: no fix planned “Will not fix”
-
Red Hat Quay 3 quay/quay-rhel8 Red Hat Storage 3 pcsaffected: no fix available “Fix deferred”
-
Red Hat Virtualization 4 ovirt-web-ui, ovirt-engine-ui-extensionsaffected: no fix planned “Will not fix”
show 5 moreshow fewer
-
Red Hat OpenShift Logging 5.1 openshift-logging/kibana6-rhel8 v6.8.1-48fixed: vendor fix RHSA-2021:4628
-
Red Hat OpenShift Logging 5.2 openshift-logging/kibana6-rhel8 v6.8.1-47fixed: vendor fix RHSA-2021:4032
-
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 RHPAM 7.13.1 asyncfixed: vendor fix RHSA-2023:1334
-
Red Hat OpenShift Logging 5.1 openshift-logging/fluentd-rhel8 v1.7.4-39, openshift-logging/eventrouter-rhel8 v0.3.0-39, openshift-logging/elasticsearch6-rhel8 v6.8.1-39, openshift-logging/elasticsearch-proxy-rhel8 v1.0.0-41, openshift-logging/elasticsearch-rhel8-operator v5.1.4-2, openshift-logging/elasticsearch-operator-bundle v5.1.4-9, +2 more Red Hat OpenShift Logging 5.2 openshift-logging/fluentd-rhel8 v1.7.4-43, openshift-logging/eventrouter-rhel8 v0.3.0-43, openshift-logging/elasticsearch6-rhel8 v6.8.1-43, openshift-logging/logging-curator5-rhel8 v5.8.1-31, openshift-logging/elasticsearch-proxy-rhel8 v1.0.0-45, openshift-logging/elasticsearch-rhel8-operator v5.2.3-6, +4 more Red Hat Advanced Cluster Management for Kubernetes 2 rhacm2/grc-ui-rhel8, rhacm2/console-ui-rhel8, rhacm2/mcm-topology-rhel8, rhacm2/console-header-rhel8, rhacm2/kui-web-terminal-rhel8 Red Hat Enterprise Linux 9 pcs, pcs-snmp 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 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
CISA SSVC
- Exploitation
- none
- Automatable
- yes
- Technical impact
- total
- Assessed
- 31 d ago
Exploit prediction
7.03% chance of exploitation in the next 30 days, higher than 94% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- snyk.io https://snyk.io/vuln/SNYK-JS-HANDLEBARS-1056767 referenced PoC, tagged "exploit" by a source, unverified
- snyk.io https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARS-1074950 referenced PoC, tagged "exploit" by a source, unverified
- snyk.io https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWER-1074951 referenced PoC, tagged "exploit" by a source, unverified
- snyk.io https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1074952 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 5.6 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P/RL:O/RC:C |
| CNA | 3.1 | 5.6 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L |
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
| GitHub | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | handlebars | <4.7.7 |
4.7.7 |
| maven | org.webjars:handlebars | <4.7.7 |
4.7.7 |
| maven | org.webjars.npm:handlebars | <4.7.7 |
4.7.7 |
| maven | org.webjars.bowergithub.wycats:handlebars.js | <4.7.7 |
4.7.7 |
Affected products
- n/a handlebars
Classification
- Weakness
-
- CWE-94 Improper Control of Generation of Code
References
-
github.com
/handlebars-lang/handlebars.js/commit/b6d3de7123eebba603e321f04afdbae608e8fea8
web, patch, third-party-advisory
-
github.com
/handlebars-lang/handlebars.js/commit/f0589701698268578199be25285b2ebea1c1e427
web, patch, third-party-advisory
-
snyk.io
/vuln/SNYK-JS-HANDLEBARS-1056767
web, exploit, third-party-advisory
-
snyk.io
/vuln/SNYK-JAVA-ORGWEBJARS-1074950
web, exploit, third-party-advisory
-
snyk.io
/vuln/SNYK-JAVA-ORGWEBJARSBOWER-1074951
web, exploit, third-party-advisory
-
snyk.io
/vuln/SNYK-JAVA-ORGWEBJARSNPM-1074952
web, exploit, third-party-advisory
-
security.netapp.com
/advisory/ntap-20210604-0008/
third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2021-23369
advisory
-
github.com
/wycats/handlebars.js
package
-
security.netapp.com
/advisory/ntap-20210604-0008
web
Sources
- CVE List CVE-2021-23369
- GitHub Advisory GHSA-f2jv-r9rf-7988
- NVD CVE-2021-23369
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.