CVEfocus › CVE database › CVE-2021-23337

CVE-2021-23337Command Injection

CVSS 7.2 HighEPSS 20.6% (higher than 98% of CVEs)Published 2021-02-15Updated 2026-10-08Assigner: snyk

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

What to do

Likely to be exploited: EPSS gives a 21% chance of exploitation in the next 30 days. Treat it as urgent if you run an affected version.

Fixed builds are available from Debian, RubyGems, npm: see the table below for the fixed version per release.

Ubuntu, npm have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

6Fixed
5Fix pending
1Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 25.10node-lodashNot affected
vulnerable_code_not_present
Ubuntu 20.04node-lodashFix pending4.17.15+dfsg-2ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2021-23337
Ubuntu 18.04node-lodashFix pending4.17.4+dfsg-1ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2021-23337
Ubuntu 16.04node-lodashFix pending2.4.1+dfsg-3ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2021-23337
Debian 14node-lodashFixed4.17.21+dfsg+~cs8.31.173-1DEBIAN-CVE-2021-23337
Debian 13node-lodashFixed4.17.21+dfsg+~cs8.31.173-1DEBIAN-CVE-2021-23337
Debian 12node-lodashFixed4.17.21+dfsg+~cs8.31.173-1DEBIAN-CVE-2021-23337
npm librarylodashFixed4.17.21GHSA-35jh-r3h4-6jhm
npm librarylodash-esFixed4.17.21GHSA-35jh-r3h4-6jhm
RubyGems librarylodash-railsFixed4.17.21GHSA-35jh-r3h4-6jhm
npm librarylodash-templateFix pendingGHSA-35jh-r3h4-6jhm
npm librarylodash.templateFix pendingGHSA-35jh-r3h4-6jhm

What the vendor says

As published in the CVE record by snyk, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.