Vulnerability · Published Feb 15, 2021 · Assigned by snyk
CVE-2021-23337Command Injection
High 7.2
In plain English
A high-severity security flaw in Lodash. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 21.3% (higher than 98% of all known vulnerabilities). Ready-made attack tooling exists: Nuclei, public proof-of-concept code. Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)7.2High
Exploit odds (30 days)21.3%top 2.4% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack tooling2Nuclei, Public PoC
Official description
Lodash versions prior to 4.17.21 are vulnerable to Command Injection via the template function.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | node-lodash | 4.17.21+dfsg+~cs8.31.173-1 | DEBIAN-CVE-2021-23337 |
| Debian:13 | node-lodash | 4.17.21+dfsg+~cs8.31.173-1 | DEBIAN-CVE-2021-23337 |
| Debian:14 | node-lodash | 4.17.21+dfsg+~cs8.31.173-1 | DEBIAN-CVE-2021-23337 |
| RubyGems | lodash-rails | 4.17.21 | GHSA-35jh-r3h4-6jhm |
| Ubuntu:25.10 | node-lodash | 4.17.21+dfsg+~cs8.31.198.20210220-9ubuntu0.25.10.1 | USN-8411-1 |
| npm | lodash | 4.17.21 | GHSA-35jh-r3h4-6jhm |
| npm | lodash-es | 4.17.21 | GHSA-35jh-r3h4-6jhm |
| npm | lodash-template | no fix listed | GHSA-35jh-r3h4-6jhm |
| npm | lodash.template | no fix listed | GHSA-35jh-r3h4-6jhm |
Affected products (as reported)
References
- https://snyk.io/vuln/SNYK-JS-LODASH-1040724 x_refsource_MISC
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWER-1074928 x_refsource_MISC
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1074929 x_refsource_MISC
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARS-1074930 x_refsource_MISC
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWERGITHUBLODASH-1074931 x_refsource_MISC
- https://snyk.io/vuln/SNYK-JAVA-ORGFUJIONWEBJARS-1074932 x_refsource_MISC
- https://github.com/lodash/lodash/blob/ddfd9b11a0126db2302cb70ec9973b66baec0975/lodash.js%23L14851 x_refsource_MISC
- https://www.oracle.com//security-alerts/cpujul2021.html x_refsource_MISC
- https://security.netapp.com/advisory/ntap-20210312-0006/ x_refsource_CONFIRM
- https://www.oracle.com/security-alerts/cpuoct2021.html x_refsource_MISC
- https://www.oracle.com/security-alerts/cpujan2022.html x_refsource_MISC
- https://www.oracle.com/security-alerts/cpujul2022.html x_refsource_MISC
- https://cert-portal.siemens.com/productcert/pdf/ssa-637483.pdf x_refsource_CONFIRM