VDB
CVE-2021-23337
CVE-2021-23337
PUBLISHED
CVSS 7.2 HIGH
Command Injection
Reported by snyk · Published February 15, 2021
lodash-template is fixed in 1.0.0 (npm)
Lodash versions prior to 4.17.21 are vulnerable to Command Injection via the template function.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| lodash-template | npm | 1.0.0 |
| lodash-rails | RubyGems | 4.17.21 |
| lodash-es | npm | 4.17.21 |
| lodash | npm | 4.17.21 |
| lodash.template | npm | 4.5.0 |
| py3-captum | Chainguard | 0.9.0-r1 |
| jd_edwards_enterpriseone_tools | oracle | 9.2.6.1 |
| primavera_unifier | oracle | 17.12 |
| lodash | lodash | 4.17.21 |
| primavera_gateway | oracle | 20.12.7, 19.12.11, 18.8.12, 17.12.11 |
Risk scores
CVSS 3.1
7.2
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
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | Lodash | prior to 4.17.21 |
| chainguard | py3-captum | 0 |
| npm | lodash-es | 0 |
| npm | lodash | 0 |
| lodash | lodash | |
| RubyGems | lodash-rails | 0 |
| npm | lodash-template | 0 |
| npm | lodash.template | 0 |
| n/a | Lodash | 4.17.21 |
Timeline
- Feb 15, 2021 CVE Published
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Apr 7, 2022 PoC Published (5 in total, the first dated here)
- Mar 10, 2026 Security Advisory (29 in total, the first dated here)
- Mar 20, 2026 Distribution Patch (26 in total, the first dated here)
- Aug 25, 2026 Coalition ESS Score
- Oct 23, 2026 VulnCheck KEV Exploitation (26 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2021-23337
vulnetix vdb fixes CVE-2021-23337
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2021-23337/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_MISC
- x_refsource_MISC
- x_refsource_MISC
- x_refsource_MISC
- x_refsource_MISC
- x_refsource_MISC
- x_refsource_MISC
- x_refsource_MISC
- x_refsource_CONFIRM
- x_refsource_MISC
- x_refsource_MISC
- x_refsource_MISC
- x_refsource_CONFIRM
- https://nvd.nist.gov/vuln/detail/CVE-2021-23337 advisory
- https://github.com/advisories/GHSA-35jh-r3h4-6jhm advisory
- https://github.com/lodash/lodash/commit/3469357cff396a26c363f8c1b5a91dde28ba4b1c patch
- https://security.netapp.com/advisory/ntap-20210312-0006 advisory
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/lodash-rails/CVE-2021-23337.yml advisory
- https://github.com/lodash/lodash/blob/ddfd9b11a0126db2302cb70ec9973b66baec0975/lodash.js#L14851 url
- https://github.com/lodash/lodash url