{"schemaVersion":3,"id":"CVE-2026-10796","aliases":[],"status":"published","duplicateOf":null,"title":null,"description":"nvm (Node Version Manager) through 0.40.4 executes arbitrary commands from version strings supplied by the configured Node.js/io.js mirror. Commands such as `nvm install` read the available versions from the mirror's index.tab and use the selected version, without sanitization, to build download URLs and shell/awk commands. Two sinks are affected by the same untrusted input: nvm_download() built a curl/wget command string and ran it with `eval`, so a version field containing command substitution (for example $(id)) was executed by the local shell; and nvm_get_checksum() interpolated the version-derived download slug into an awk program, so a crafted version could execute arbitrary commands via awk's system(). An attacker who controls the configured mirror, supplies mirror content to a user or CI on a non-default mirror, or machine-in-the-middles a non-TLS mirror can ∴ run arbitrary commands with the privileges of the user running nvm. The default mirror (https://nodejs.org over TLS) is not affected. Fixed on master (pending the next tagged release) by passing every argument as a literal argv element instead of using eval, by passing the value to awk as data via -v instead of interpolating it into the program, and by rejecting any version outside the Node.js/io.js version grammar before it is used.","dates":{"published":"2026-06-04T17:02:23.805Z","modified":"2026-06-04T18:11:18.108Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.5,"severity":"high","version":"4.0","versionLabel":"v4.0","source":"CVE.org","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"CVE.org","score":7.5,"severity":"high","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"NVD","score":7.5,"severity":"high","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.04997,"percentile":0.92147,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":4.533,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.00464},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00464,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00464,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00464,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00464,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00464,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00464,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00464,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00464,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00464,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00464,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.04997,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.04997,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.04997,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.04997,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.04997,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.04997,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.04997,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.04997,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.04997,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.04997,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.04997,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.04997,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.04997,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.04997,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.04997,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.04997,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.04997,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.04997,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.04997,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.04997,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.04997,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.04997,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.04997,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.04997,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.04997,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.04997,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.04997,"percentile":0.92147}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.00464,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00464,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00464,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00464,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.04997,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.04997,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.04997,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.04997,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.04997,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.04997,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.04997,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.04997,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.04997,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.04997,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.04997,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.04997,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.04997,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.04997,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.04997,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.04997,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.04997,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.04997,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.04997,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.04997,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.04997,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.04997,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.04997,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.04997,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.04997,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.04997,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.04997,"percentile":0.92147}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"GITHUB_NVM-SH_NVM","name":"Nvm","source":"github","url":"https://github.com/nvm-sh/nvm/security/advisories/GHSA-3c52-35h2-gfmm","maturity":"poc","reliabilityScore":0.3,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')","description":"The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/78.html"}],"affected":[{"vendor":"nvm-sh","product":"nvm","name":"nvm","label":"nvm","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≤ 0.40.4","noFixRecorded":false,"fixedIn":null}],"versionsText":"≤ 0.40.4","eol":{"isEol":null,"eolDate":null,"matchMethod":"name_exact","cycle":null,"product":{"name":"nvm","label":"nvm","category":"app"}},"hubHref":"/vendor/nvm-sh/nvm"},{"vendor":"openjsf","product":"node_version_manager","name":"node version manager","label":"node_version_manager","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 0.40.5","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.40.5","eol":null,"hubHref":"/vendor/openjsf/node_version_manager"}],"affectedCount":2,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/nvm-sh/nvm/security/advisories/GHSA-3c52-35h2-gfmm","label":"github.com/nvm-sh/nvm/security/advisories/GHSA-3c52-35h2-gfmm","hostname":"github.com","tags":["Vendor Advisory","Exploit","Mitigation","Patch"]},{"url":"https://github.com/nvm-sh/nvm/commit/6d870d182cd5333647ffa16c0d7dbcd817ec27a8","label":"github.com/nvm-sh/nvm/commit/6d870d182cd5333647ffa16c0d7dbcd817ec27a8","hostname":"github.com","tags":["Patch"]},{"url":"https://github.com/nvm-sh/nvm/commit/90bb88748ba6c29c2cec73b18ed7057413aef308","label":"github.com/nvm-sh/nvm/commit/90bb88748ba6c29c2cec73b18ed7057413aef308","hostname":"github.com","tags":["Patch"]},{"url":"https://github.com/nvm-sh/nvm/commit/70fb4ede6b9731d75d86451d48caa5faffbec21c","label":"github.com/nvm-sh/nvm/commit/70fb4ede6b9731d75d86451d48caa5faffbec21c","hostname":"github.com","tags":["Patch"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-06-04T17:02:23.805Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-06-04T18:11:18.108Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":41,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T00:29:55.297Z","stale":false,"partial":false}}