{"answers":{"affected":"10 open source packages ship an affected version, including lodash-rails, lodash and lodash-es. It affects 23 products.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-23337 exists.","fix":"Upgrade lodash-rails to 4.17.21 or later.","what":"CVE-2021-23337 is a high-severity command injection vulnerability in Netapp Active Iq Unified Manager, published on 15 Feb 2021. An attacker needs administrator access to exploit it, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2021-23337 and fix it if it is affected.\n\nWhat it is: CVE-2021-23337 is a high-severity command injection vulnerability in Netapp Active Iq Unified Manager, published on 15 Feb 2021. An attacker needs administrator access to exploit it, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-23337 exists.\n\nAffected packages and fixed versions:\n- lodash-rails (RubyGems): affected all versions; fixed in 4.17.21\n- lodash-rails (RubyGems): affected all versions; fixed in 4.17.21\n- lodash (npm): affected all versions; fixed in 4.17.21\n- lodash (npm): affected all versions; fixed in 4.17.21\n- lodash-es (npm): affected all versions; fixed in 4.17.21\n- lodash-es (npm): affected all versions; fixed in 4.17.21\n- lodash-template (npm): affected all versions up to 1.0.0; no fix listed\n- lodash-template (npm): affected all versions up to 1.0.0; no fix listed\n- lodash.template (npm): affected all versions up to 4.5.0; no fix listed\n- lodash.template (npm): affected all versions up to 4.5.0; no fix listed\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2021-23337/ (Markdown: https://insights.sbomify.com/CVE-2021-23337/index.md)","id":"CVE-2021-23337","markdown":"https://insights.sbomify.com/CVE-2021-23337/index.md","name":"CVE-2021-23337","record":{"aliases":["AZL-44655","CLSA-2026-1775003202","CLSA-2026-1784682758","DEBIAN-CVE-2021-23337","GHSA-35jh-r3h4-6jhm","MINI-c9vg-9mv6-rq7w","MINI-h6fg-gcmq-jx4h","MINI-x6xv-4pxg-hwmg","ROOT-APP-NPM-CVE-2021-23337","UBUNTU-CVE-2021-23337"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"JavaScript utility library","requires_auth":"high_privilege","summary":"Attackers can execute arbitrary commands via the template function in the Lodash JavaScript library, requiring an upgrade to the latest version.","user_interaction":"not_required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"snyk","cpe":[{"product":"lodash","vendor":"lodash"},{"product":"active_iq_unified_manager","vendor":"netapp"},{"product":"cloud_manager","vendor":"netapp"},{"product":"system_manager","vendor":"netapp"},{"product":"banking_corporate_lending_process_management","vendor":"oracle"},{"product":"banking_credit_facilities_process_management","vendor":"oracle"},{"product":"banking_extensibility_workbench","vendor":"oracle"},{"product":"banking_supply_chain_finance","vendor":"oracle"},{"product":"banking_trade_finance_process_management","vendor":"oracle"},{"product":"communications_cloud_native_core_binding_support_function","vendor":"oracle"},{"product":"communications_cloud_native_core_policy","vendor":"oracle"},{"product":"communications_design_studio","vendor":"oracle"},{"product":"communications_services_gatekeeper","vendor":"oracle"},{"product":"communications_session_border_controller","vendor":"oracle"},{"product":"enterprise_communications_broker","vendor":"oracle"},{"product":"financial_services_crime_and_compliance_management_studio","vendor":"oracle"},{"product":"health_sciences_data_management_workbench","vendor":"oracle"},{"product":"jd_edwards_enterpriseone_tools","vendor":"oracle"},{"product":"peoplesoft_enterprise_peopletools","vendor":"oracle"},{"product":"primavera_gateway","vendor":"oracle"},{"product":"primavera_unifier","vendor":"oracle"},{"product":"retail_customer_management_and_segmentation_foundation","vendor":"oracle"},{"product":"sinec_ins","vendor":"siemens"}],"cvss":{"score":7.2,"severity":"high","source":"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","version":"3.1"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"description":"Lodash versions prior to 4.17.21 are vulnerable to Command Injection via the template function.","ecosystems":["RubyGems","npm"],"exploits":{"exploitdb":0,"first_seen":"2026-03-01","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":1,"refs":[{"date":"2026-03-01T13:27:14Z","kind":"github_poc","ref":"https://github.com/khayashi4337/lodash.template-fixed","stars":0,"title":"Fork of lodash.template with CVE-2021-23337 fix (command injection via variable option)"},{"date":null,"kind":"nuclei","ref":"http/cves/2021/CVE-2021-23337.yaml","stars":null,"title":"Lodash Template - Server-Side Template Injection (RCE)"}],"tier":"weaponised"},"has_fix":true,"headline":"Command Injection","id":"CVE-2021-23337","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"RubyGems","product":"netapp:active_iq_unified_manager","products":["netapp:active_iq_unified_manager","oracle:communications_cloud_native_core_binding_support_function","oracle:communications_cloud_native_core_policy","oracle:jd_edwards_enterpriseone_tools","oracle:peoplesoft_enterprise_peopletools","oracle:primavera_gateway","oracle:primavera_unifier","oracle:retail_customer_management_and_segmentation_foundation"],"type":"command_injection","year":"2021"},"n_packages":10,"n_references":13,"next":{"headline":"Deserialization of Untrusted Data","id":"CVE-2021-23338"},"packages":[{"ecosystem":"RubyGems","fixed":["4.17.21"],"introduced":["0"],"last_affected":[],"package":"lodash-rails","purl":null,"source":"GHSA-35jh-r3h4-6jhm"},{"ecosystem":"RubyGems","fixed":["4.17.21"],"introduced":["0"],"last_affected":[],"package":"lodash-rails","purl":"pkg:gem/lodash-rails","source":"GHSA-35jh-r3h4-6jhm"},{"ecosystem":"npm","fixed":["4.17.21"],"introduced":["0"],"last_affected":[],"package":"lodash","purl":null,"source":"GHSA-35jh-r3h4-6jhm"},{"ecosystem":"npm","fixed":["4.17.21"],"introduced":["0"],"last_affected":[],"package":"lodash","purl":"pkg:npm/lodash","source":"GHSA-35jh-r3h4-6jhm"},{"ecosystem":"npm","fixed":["4.17.21"],"introduced":["0"],"last_affected":[],"package":"lodash-es","purl":null,"source":"GHSA-35jh-r3h4-6jhm"},{"ecosystem":"npm","fixed":["4.17.21"],"introduced":["0"],"last_affected":[],"package":"lodash-es","purl":"pkg:npm/lodash-es","source":"GHSA-35jh-r3h4-6jhm"},{"ecosystem":"npm","fixed":[],"introduced":["0"],"last_affected":["1.0.0"],"package":"lodash-template","purl":null,"source":"GHSA-35jh-r3h4-6jhm"},{"ecosystem":"npm","fixed":[],"introduced":["0"],"last_affected":["1.0.0"],"package":"lodash-template","purl":"pkg:npm/lodash-template","source":"GHSA-35jh-r3h4-6jhm"},{"ecosystem":"npm","fixed":[],"introduced":["0"],"last_affected":["4.5.0"],"package":"lodash.template","purl":null,"source":"GHSA-35jh-r3h4-6jhm"},{"ecosystem":"npm","fixed":[],"introduced":["0"],"last_affected":["4.5.0"],"package":"lodash.template","purl":"pkg:npm/lodash.template","source":"GHSA-35jh-r3h4-6jhm"}],"prev":{"headline":"Web Cache Poisoning","id":"CVE-2021-23336"},"products":["Lodash"],"published":"2021-02-15","related":[{"cvss_score":8.1,"headline":"lodash vulnerable to Code Injection via `_.template` imports key names","id":"CVE-2026-4800","kev_date_added":null,"published":"2026-03-31"},{"cvss_score":7.4,"headline":"Prototype Pollution in lodash","id":"CVE-2020-8203","kev_date_added":null,"published":"2020-07-15"},{"cvss_score":6.9,"headline":"Prototype Pollution Vulnerability in Lodash _.unset and _.omit functions","id":"CVE-2025-13465","kev_date_added":null,"published":"2026-01-21"},{"cvss_score":6.5,"headline":"lodash vulnerable to Prototype Pollution via array path bypass in `_.unset` and `_.omit`","id":"CVE-2026-2950","kev_date_added":null,"published":"2026-03-31"},{"cvss_score":6.5,"headline":"Regular Expression Denial of Service (ReDoS) in lodash","id":"CVE-2019-1010266","kev_date_added":null,"published":"2019-07-17"},{"cvss_score":6.5,"headline":"Prototype Pollution in lodash","id":"CVE-2018-3721","kev_date_added":null,"published":"2018-06-07"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"attribution","licence":"MIT","name":"Nuclei templates"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-10-08","vendors":["n/a"]},"summary":"Attackers can execute arbitrary commands via the template function in the Lodash JavaScript library, requiring an upgrade to the latest version.","url":"https://insights.sbomify.com/CVE-2021-23337/"}