GitHub Advisory Database
GHSA-35jh-r3h4-6jhm
Command Injection in lodash
Details
lodash versions prior to 4.17.21 are vulnerable to Command Injection via the template function.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| npm | lodash | All versions before 4.17.21 (fixed in 4.17.21) |
| npm | lodash-es | All versions before 4.17.21 (fixed in 4.17.21) |
| npm | lodash.template | All versions up to and including 4.5.0 |
| npm | lodash-template | All versions up to and including 1.0.0 |
| RubyGems | lodash-rails | All versions before 4.17.21 (fixed in 4.17.21) |
References
- https://nvd.nist.gov/vuln/detail/CVE-2021-23337
- https://github.com/lodash/lodash/commit/3469357cff396a26c363f8c1b5a91dde28ba4b1c
- https://www.oracle.com/security-alerts/cpuoct2021.html
- https://www.oracle.com/security-alerts/cpujul2022.html
- https://www.oracle.com/security-alerts/cpujan2022.html
- https://www.oracle.com//security-alerts/cpujul2021.html
- https://snyk.io/vuln/SNYK-JS-LODASH-1040724
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1074929
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWERGITHUBLODASH-1074931
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWER-1074928
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARS-1074930
- https://snyk.io/vuln/SNYK-JAVA-ORGFUJIONWEBJARS-1074932
- https://security.netapp.com/advisory/ntap-20210312-0006
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/lodash-rails/CVE-2021-23337.yml
- https://github.com/lodash/lodash/blob/ddfd9b11a0126db2302cb70ec9973b66baec0975/lodash.js#L14851
- https://github.com/lodash/lodash
- https://cert-portal.siemens.com/productcert/pdf/ssa-637483.pdf