Vulnerability · Published Apr 12, 2021 · Assigned by snyk
CVE-2021-23369Remote Code Execution (RCE)
Medium 5.6
In plain English
A medium-severity security flaw in handlebars. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 7.0% (higher than 94% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)5.6Medium
Exploit odds (30 days)7.0%top 5.8% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack tooling1Public PoC
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | node-handlebars | 3:4.7.6+~4.1.0-2 | DEBIAN-CVE-2021-23369 |
| Debian:13 | node-handlebars | 3:4.7.6+~4.1.0-2 | DEBIAN-CVE-2021-23369 |
| Debian:14 | node-handlebars | 3:4.7.6+~4.1.0-2 | DEBIAN-CVE-2021-23369 |
| Maven | org.webjars.bowergithub.wycats:handlebars.js | 4.7.7 | GHSA-f2jv-r9rf-7988 |
| Maven | org.webjars.npm:handlebars | 4.7.7 | GHSA-f2jv-r9rf-7988 |
| Maven | org.webjars:handlebars | 4.7.7 | GHSA-f2jv-r9rf-7988 |
| Ubuntu:22.04:LTS | node-handlebars | no fix listed | UBUNTU-CVE-2021-23369 |
| npm | handlebars | 4.7.7 | GHSA-f2jv-r9rf-7988 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| n/a | handlebars | unspecified – before 4.7.7 |
References
- https://snyk.io/vuln/SNYK-JS-HANDLEBARS-1056767 x_refsource_MISC
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARS-1074950 x_refsource_MISC
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWER-1074951 x_refsource_MISC
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1074952 x_refsource_MISC
- https://github.com/handlebars-lang/handlebars.js/commit/b6d3de7123eebba603e321f04afdbae608e8fea8 x_refsource_MISC
- https://github.com/handlebars-lang/handlebars.js/commit/f0589701698268578199be25285b2ebea1c1e427 x_refsource_MISC
- https://security.netapp.com/advisory/ntap-20210604-0008/ x_refsource_CONFIRM