Skip to content
Fencer Vulns
medium 5.6

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-prometheus
    affected: no fix available
  • Red Hat 3scale API Management Platform 2 nodejs-handlebars nodejs-handlebars
    affected: no fix planned “Will not fix”
  • Red Hat Advanced Cluster Management for Kubernetes 2 rhacm2/application-ui-rhel8
    affected: no fix available
  • Red Hat Enterprise Linux 6 pcs Red Hat Enterprise Linux 7 pcs, pcs-snmp, python-clufter
    affected: no fix planned “Out of support scope”
  • Red Hat Enterprise Linux 8 pcs, pcs-snmp Red Hat OpenShift Container Platform 3.11 kibana
    affected: no fix available “Fix deferred”
  • Red Hat OpenShift Container Platform 4 kibana
    affected: no fix planned “Will not fix”
  • Red Hat Quay 3 quay/quay-rhel8 Red Hat Storage 3 pcs
    affected: no fix available “Fix deferred”
  • Red Hat Virtualization 4 ovirt-web-ui, ovirt-engine-ui-extensions
    affected: no fix planned “Will not fix”
show 5 more
  • Red Hat OpenShift Logging 5.1 openshift-logging/kibana6-rhel8 v6.8.1-48
    fixed: vendor fix RHSA-2021:4628
  • Red Hat OpenShift Logging 5.2 openshift-logging/kibana6-rhel8 v6.8.1-47
    fixed: vendor fix RHSA-2021:4032
  • Red Hat OpenShift Container Platform 4.6 openshift4/ose-logging-kibana6 v4.6.0-202106181629.p0.git.40f3e72
    fixed: vendor fix RHSA-2021:2500
  • Red Hat RHPAM 7.13.1 async
    fixed: 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 more
    not 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

Sources

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.