Skip to content
OpenAdvisories
Medium · 5.6 Public exploit CVE-2021-23369 EUVD-2021-1052GHSA-f2jv-r9rf-7988

Remote Code Execution (RCE)

Published Apr 12, 2021 · Updated Oct 8, 2026 · Assigned by snyk

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 products

VendorProductAffectedFixed
— handlebars unspecified – < 4.7.7 4.7.7

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 node-handlebars 3:4.7.6+~4.1.0-2 —
Debian 13 node-handlebars 3:4.7.6+~4.1.0-2 —
Debian 12 node-handlebars 3:4.7.6+~4.1.0-2 —
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS node-handlebars No fix yet —
Ubuntu 18.04 LTS node-handlebars No fix yet —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 2 repositories

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
Maven org.webjars:handlebars < 4.7.7 4.7.7 GHSA-f2jv-r9rf-7988
Maven org.webjars.bowergithub.wycats:handlebars.js < 4.7.7 4.7.7 GHSA-f2jv-r9rf-7988
Maven org.webjars.npm:handlebars < 4.7.7 4.7.7 GHSA-f2jv-r9rf-7988
npm handlebars < 4.7.7 4.7.7 GHSA-f2jv-r9rf-7988

Advisories 3

References