{"id":"CVE-2021-23337","published":"2021-02-15T12:15:14Z","modified":"2026-10-08T21:13:55Z","title":"Command Injection","vendor":null,"product":null,"tier":"core","eol":null,"affectedVersions":[{"vendor":"n/a","product":"Lodash","versions":["prior to 4.17.21"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"total","timestamp":"2026-10-08T21:08:30.418276Z","from":"CISA ADP","provenance":"source"},"description":{"text":"Lodash versions prior to 4.17.21 are vulnerable to Command Injection via the template function.","provenance":"source","from":"CVE.org"},"summary":{"text":"The flaw is a command injection vulnerability in the template function of Lodash, affecting versions prior to 4.17.21. An attacker with network access and high-level privileges (the vector indicates a privileges-required condition, with no user interaction needed) can inject commands through the template function to compromise the confidentiality, integrity and availability of the affected system.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-10-29T08:31:32Z"},"cvss":{"score":7.2,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H/E:P/RL:U/RC:C","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.20158,"percentile":0.97523,"date":"2026-11-22","provenance":"source"},"kev":null,"vulncheckKev":{"dateAdded":"2026-10-23","exploitedFirstSeen":"2026-10-23","ransomware":false,"evidence":[{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2026-10-23&host_type=src&vulnerability=cve-2021-23337","date":"2026-10-23"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2026-10-24&host_type=src&vulnerability=cve-2021-23337","date":"2026-10-24"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2026-10-25&host_type=src&vulnerability=cve-2021-23337","date":"2026-10-25"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2026-10-26&host_type=src&vulnerability=cve-2021-23337","date":"2026-10-26"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2026-10-27&host_type=src&vulnerability=cve-2021-23337","date":"2026-10-27"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2026-10-29&host_type=src&vulnerability=cve-2021-23337","date":"2026-10-29"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2026-10-30&host_type=src&vulnerability=cve-2021-23337","date":"2026-10-30"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2026-10-31&host_type=src&vulnerability=cve-2021-23337","date":"2026-10-31"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2026-11-01&host_type=src&vulnerability=cve-2021-23337","date":"2026-11-01"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2026-11-02&host_type=src&vulnerability=cve-2021-23337","date":"2026-11-02"}],"evidenceTotal":26,"provenance":"source"},"exploited":true,"otx":{"pulseCount":0,"pulses":[],"provenance":"machine"},"cwes":[],"references":[{"url":"https://snyk.io/vuln/SNYK-JS-LODASH-1040724","tags":["x_refsource_MISC"]},{"url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWER-1074928","tags":["x_refsource_MISC"]},{"url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1074929","tags":["x_refsource_MISC"]},{"url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARS-1074930","tags":["x_refsource_MISC"]},{"url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWERGITHUBLODASH-1074931","tags":["x_refsource_MISC"]},{"url":"https://snyk.io/vuln/SNYK-JAVA-ORGFUJIONWEBJARS-1074932","tags":["x_refsource_MISC"]},{"url":"https://github.com/lodash/lodash/blob/ddfd9b11a0126db2302cb70ec9973b66baec0975/lodash.js%23L14851","tags":["x_refsource_MISC"]},{"url":"https://www.oracle.com//security-alerts/cpujul2021.html","tags":["x_refsource_MISC"]},{"url":"https://security.netapp.com/advisory/ntap-20210312-0006/","tags":["x_refsource_CONFIRM"]},{"url":"https://www.oracle.com/security-alerts/cpuoct2021.html","tags":["x_refsource_MISC"]},{"url":"https://www.oracle.com/security-alerts/cpujan2022.html","tags":["x_refsource_MISC"]},{"url":"https://www.oracle.com/security-alerts/cpujul2022.html","tags":["x_refsource_MISC"]},{"url":"https://cert-portal.siemens.com/productcert/pdf/ssa-637483.pdf","tags":["x_refsource_CONFIRM"]}],"techniques":[],"reports":[],"affected":[{"ecosystem":"npm","package":"lodash","vulnerableRanges":["<4.17.21"],"patched":["4.17.21"],"from":["GHSA-35jh-r3h4-6jhm"],"provenance":"source"},{"ecosystem":"npm","package":"lodash-es","vulnerableRanges":["<4.17.21"],"patched":["4.17.21"],"from":["GHSA-35jh-r3h4-6jhm"],"provenance":"source"},{"ecosystem":"npm","package":"lodash.template","vulnerableRanges":["<=4.5.0"],"patched":[],"from":["GHSA-35jh-r3h4-6jhm"],"provenance":"source"},{"ecosystem":"npm","package":"lodash-template","vulnerableRanges":["<=1.0.0"],"patched":[],"from":["GHSA-35jh-r3h4-6jhm"],"provenance":"source"},{"ecosystem":"RubyGems","package":"lodash-rails","vulnerableRanges":["<4.17.21"],"patched":["4.17.21"],"from":["GHSA-35jh-r3h4-6jhm"],"provenance":"source"}],"advisories":[{"id":"GHSA-35jh-r3h4-6jhm","url":"https://github.com/advisories/GHSA-35jh-r3h4-6jhm","severity":"HIGH","ecosystem":"npm","package":"lodash","vulnerableRanges":["<4.17.21"],"patched":["4.17.21"],"provenance":"source","from":"GHSA"},{"id":"GHSA-35jh-r3h4-6jhm","url":"https://github.com/advisories/GHSA-35jh-r3h4-6jhm","severity":"HIGH","ecosystem":"npm","package":"lodash-es","vulnerableRanges":["<4.17.21"],"patched":["4.17.21"],"provenance":"source","from":"GHSA"},{"id":"GHSA-35jh-r3h4-6jhm","url":"https://github.com/advisories/GHSA-35jh-r3h4-6jhm","severity":"HIGH","ecosystem":"npm","package":"lodash.template","vulnerableRanges":["<=4.5.0"],"patched":[],"provenance":"source","from":"GHSA"},{"id":"GHSA-35jh-r3h4-6jhm","url":"https://github.com/advisories/GHSA-35jh-r3h4-6jhm","severity":"HIGH","ecosystem":"npm","package":"lodash-template","vulnerableRanges":["<=1.0.0"],"patched":[],"provenance":"source","from":"GHSA"},{"id":"GHSA-35jh-r3h4-6jhm","url":"https://github.com/advisories/GHSA-35jh-r3h4-6jhm","severity":"HIGH","ecosystem":"RubyGems","package":"lodash-rails","vulnerableRanges":["<4.17.21"],"patched":["4.17.21"],"provenance":"source","from":"GHSA"}],"euvd":{"id":"EUVD-2021-0912","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2021-0912","exploited":false,"exploitedSince":null,"provenance":"source"},"exploits":[],"exploitSources":{"pocGithub":{"count":2,"skipped":0,"earliest":"2026-03-01","earliestUrl":"https://github.com/khayashi4337/lodash.template-fixed","repos":[{"name":"khayashi4337/lodash.template-fixed","url":"https://github.com/khayashi4337/lodash.template-fixed","stars":0,"created":"2026-03-01"},{"name":"mcpmark-eval-liuhezi/ghsa-lodash-ci-7f3c9a","url":"https://github.com/mcpmark-eval-liuhezi/ghsa-lodash-ci-7f3c9a","stars":0,"created":"2026-11-12"}]},"nuclei":[{"id":"CVE-2021-23337","name":"Lodash Template - Server-Side Template Injection (RCE)","severity":"high","path":"http/cves/2021/CVE-2021-23337.yaml","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2021/CVE-2021-23337.yaml"}],"first":{"date":"2026-03-01","source":"PoC-in-GitHub","url":"https://github.com/khayashi4337/lodash.template-fixed"},"provenance":"source"},"exploitRefs":[],"flow":[],"timeline":[{"date":"2021-02-15","kind":"published","label":"Published (CVE.org)","url":"https://www.cve.org/CVERecord?id=CVE-2021-23337","provenance":"source"},{"date":"2026-03-01","kind":"exploit-public","label":"First public exploit: PoC-in-GitHub","url":"https://github.com/khayashi4337/lodash.template-fixed","provenance":"source"},{"date":"2026-10-23","kind":"exploited-reported","label":"Exploitation first reported (VulnCheck KEV evidence)","url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2026-10-23&host_type=src&vulnerability=cve-2021-23337","provenance":"source"}],"speed":{"daysToPublicExploit":1840,"firstExploitFrom":"PoC-in-GitHub","daysToKev":null},"priority":{"score":74.5,"factors":[{"name":"In a KEV catalog","points":35.0,"detail":"listed in VulnCheck KEV"},{"name":"Recent KEV listing","points":10.0,"detail":"added 30 days ago"},{"name":"Known ransomware use","points":0.0,"detail":"not known"},{"name":"EPSS percentile","points":19.5,"detail":"percentile 0.9752"},{"name":"Named in threat reports","points":0.0,"detail":"0 reports"},{"name":"Public exploit code","points":5.0,"detail":"2 PoC-in-GitHub repos; 1 nuclei template"},{"name":"Mentioned in OTX pulses","points":0.0,"detail":"0 pulses"},{"name":"CVSS severity","points":5.04,"detail":"base score 7.2"},{"name":"End-of-life product","points":0.0,"detail":"supported or unknown"}]},"lineage":{"familyId":"fam-lodash-cve-2021-23337","children":[{"from":"CVE-2021-23337","to":"CVE-2026-4800","relation":"related","confidence":"high","kind":"lineage","evidence":[{"kind":"osv-related","provenance":"source","id":"GHSA-r5fr-rjxr-66jc","via":"reference","url":"https://github.com/advisories/GHSA-35jh-r3h4-6jhm"}]}],"packageHistory":[{"cve":"CVE-2019-10744","published":"2019-07-25","fixed":"4.17.12","kev":false},{"cve":"CVE-2020-8203","published":"2020-07-15","fixed":"4.17.19","kev":false,"link":{"from":"CVE-2020-8203","to":"CVE-2021-23337","relation":"successor","confidence":"high","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:lodash","fromFixed":"4.17.19","toFixed":"4.17.21","daysApart":215},{"kind":"version-step","provenance":"source","package":"npm:lodash-es","fromFixed":"4.17.20","toFixed":"4.17.21","daysApart":215},{"kind":"same-code","provenance":"machine","files":["lodash.js"],"commits":["https://github.com/lodash/lodash/commit/c84fe82760fb2d3e03a63379b297a1cc1a2fce12","https://github.com/lodash/lodash/commit/3469357cff396a26c363f8c1b5a91dde28ba4b1c"],"basis":"shared file"}]}},{"cve":"CVE-2020-28500","published":"2021-02-15","fixed":"4.17.21","kev":false},{"cve":"CVE-2021-23337","published":"2021-02-15","fixed":"4.17.21","kev":false},{"cve":"CVE-2025-13465","published":"2026-01-21","fixed":"4.17.23","kev":false},{"cve":"CVE-2026-4800","published":"2026-03-31","fixed":"4.18.0","kev":false},{"cve":"CVE-2026-2950","published":"2026-03-31","fixed":"4.18.1","kev":false}],"package":"npm:lodash"}}