{"id":"CVE-2021-23358","published":"2021-03-29T13:15:34Z","modified":"2025-11-03T21:44:35Z","title":"Arbitrary Code Injection","vendor":null,"product":null,"tier":"tail","description":{"text":"The package underscore from 1.13.0-0 and before 1.13.0-2, from 1.3.2 and before 1.12.1 are vulnerable to Arbitrary Code Injection via the template function, particularly when a variable property is passed as an argument as it is not sanitized.","provenance":"source","from":"CVE.org"},"cvss":{"score":3.3,"severity":"LOW","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:L/I:L/A:N/E:P/RL:O/RC:C","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.042,"percentile":0.9119,"provenance":"source"},"cwes":[],"references":[{"url":"https://snyk.io/vuln/SNYK-JS-UNDERSCORE-1080984","tags":["x_refsource_MISC"]},{"url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1081503","tags":["x_refsource_MISC"]},{"url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWER-1081504","tags":["x_refsource_MISC"]},{"url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWERGITHUBJASHKENAS-1081505","tags":["x_refsource_MISC"]},{"url":"https://github.com/jashkenas/underscore/blob/master/modules/template.js%23L71","tags":["x_refsource_MISC"]},{"url":"https://lists.debian.org/debian-lts-announce/2021/03/msg00038.html","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://www.debian.org/security/2021/dsa-4883","tags":["vendor-advisory","x_refsource_DEBIAN"]},{"url":"https://lists.apache.org/thread.html/re69ee408b3983b43e9c4a82a9a17cbbf8681bb91a4b61b46f365aeaf%40%3Cissues.cordova.apache.org%3E","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://lists.apache.org/thread.html/r5df90c46f7000c4aab246e947f62361ecfb849c5a553dcdb0ef545e1%40%3Cissues.cordova.apache.org%3E","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://lists.apache.org/thread.html/raae088abdfa4fbd84e1d19d7a7ffe52bf8e426b83e6599ea9a734dba%40%3Cissues.cordova.apache.org%3E","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://lists.apache.org/thread.html/rbc84926bacd377503a3f5c37b923c1931f9d343754488d94e6f08039%40%3Cissues.cordova.apache.org%3E","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://lists.apache.org/thread.html/r770f910653772317b117ab4472b0a32c266ee4abbafda28b8a6f9306%40%3Cissues.cordova.apache.org%3E","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://www.tenable.com/security/tns-2021-14","tags":["x_refsource_CONFIRM"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/EOKATXXETD2PF3OR36Q5PD2VSVAR6J5Z/","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FGEE7U4Z655A2MK5EW4UQQZ7B64XJWBV/","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"https://security.netapp.com/advisory/ntap-20240808-0003/","tags":[]},{"url":"http://seclists.org/fulldisclosure/2025/Apr/14","tags":[]},{"url":"https://security.netapp.com/advisory/ntap-20241108-0002/","tags":[]}],"priority":{"score":25.5,"factors":[{"name":"EPSS percentile","points":18.24},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":2.31}]},"exploitSources":{"pocGithub":{"count":2,"skipped":0,"earliest":"2023-02-25","earliestUrl":"https://github.com/EkamSinghWalia/Detection-script-for-cve-2021-23358","repos":[{"name":"EkamSinghWalia/Detection-script-for-cve-2021-23358","url":"https://github.com/EkamSinghWalia/Detection-script-for-cve-2021-23358","stars":1,"created":"2023-02-25"},{"name":"MehdiBoukhobza/SandBox_CVE-2021-23358","url":"https://github.com/MehdiBoukhobza/SandBox_CVE-2021-23358","stars":1,"created":"2024-07-04"}]},"first":{"date":"2023-02-25","source":"PoC-in-GitHub","url":"https://github.com/EkamSinghWalia/Detection-script-for-cve-2021-23358"},"provenance":"source"},"affectedVersions":[{"vendor":"n/a","product":"underscore","versions":[">= 1.13.0-0, < unspecified",">= unspecified, < 1.13.0-2",">= 1.3.2, < unspecified",">= unspecified, < 1.12.1"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2024-08-29T15:48:41.938375Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"underscore","vulnerableRanges":[">=1.3.2, <1.12.1"],"patched":["1.12.1"],"from":["GHSA-cf4h-3jhx-xvhq"],"provenance":"source"}],"summary":{"text":"The underscore npm package, in versions from 1.3.2 up to but not including 1.12.1 and from 1.13.0-0 up to but not including 1.13.0-2, contains an arbitrary code injection flaw in its template function, where variable properties passed as arguments are not sanitised. An attacker can inject code this way when they have high-privilege access and the attack complexity is high, with no user interaction required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:16:53Z"},"euvd":{"id":"EUVD-2021-1042","exploited":false,"provenance":"source"}}