{"schemaVersion":4,"id":"CVE-2026-121751","aliases":[],"status":"published","duplicateOf":null,"title":"nvm evaluates a malicious mirror's index.tab version strings as shell arithmetic via stored LTS aliases","description":"Node Version Manager (nvm) is a POSIX-compliant shell function for managing multiple node.js versions. In versions 0.39.6 through 0.40.8, `nvm ls-remote` (and other commands that refresh remote LTS aliases) store the version column of the mirror's `index.tab` in `$NVM_DIR/alias/lts/` without validating it, and `nvm_normalize_lts` later evaluates any suffix of an `lts/-N` value inside shell arithmetic `$((N+1))`. Under bash and zsh, arithmetic evaluation expands command substitutions in array subscripts, so a stored value such as `lts/-10*path[$(cmd)1]` runs `cmd` as the user when the alias is later resolved by purely local commands (`nvm ls`, `nvm alias`, `nvm use --lts`, `nvm which lts/`), and in every new shell when the `default` alias is `lts/*`. Exploitation requires the victim to use a hostile mirror -- via a compromised mirror or CDN, a network man-in-the-middle of an `http://` mirror, or a maliciously configured `NVM_NODEJS_ORG_MIRROR` -- and to run an affected command. The same sink is also reachable from a project `.nvmrc`, which is treated as hardening. dash is not affected. Version 0.41.0 only passes an all-digit `lts/-N` offset to arithmetic and drops `index.tab` rows whose version is not a valid version string.","dates":{"published":"2026-11-04T21:26:57.967Z","modified":"2026-11-09T20:44:45.880Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":3.1,"severity":"low","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"CVE.org","score":2.1,"severity":"low","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":3.1,"severity":"low","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:N","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"NVD","score":2.1,"severity":"low","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:N/VI:L/VA:N/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":3.1,"severity":"low","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00232,"percentile":0.14982,"severity":"low","asOf":"2026-12-04T00:00:00.000Z","change":{"pp":null,"baselineDate":null,"baselineScore":null},"history":[{"date":"2026-11-05T00:00:00.000Z","score":0.00232,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.00232,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.00232,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.00232,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.00232,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.00232,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.00232,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.00232,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.00232,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.00232,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.00232,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.00232,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.00232,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.00232,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.00232,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.00232,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.00232,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.00232,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.00232,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.00232,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.00265,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.00265,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00265,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00265,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00265,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00265,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00232,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00232,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00232,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00232,"percentile":0.14982}],"last30":[{"date":"2026-11-05T00:00:00.000Z","score":0.00232,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.00232,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.00232,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.00232,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.00232,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.00232,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.00232,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.00232,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.00232,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.00232,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.00232,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.00232,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.00232,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.00232,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.00232,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.00232,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.00232,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.00232,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.00232,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.00232,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.00265,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.00265,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00265,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00265,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00265,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00265,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00232,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00232,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00232,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00232,"percentile":0.14982}]},"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":[],"exploitCount":0,"weaknesses":[{"id":"CWE-20","name":"Improper Input Validation","description":"The product receives input or data, but it does\n        not validate or incorrectly validates that the input has the\n        properties that are required to process the data safely and\n        correctly.","type":"weakness","status":"Stable","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/20.html"},{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command","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 before 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.39.6, < 0.41.0","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"0.39.6","startInclusive":true,"end":"0.41.0","endInclusive":false}}],"versionsText":"≥ 0.39.6, < 0.41.0","eol":{"isEol":null,"eolDate":null,"matchMethod":"name_exact","cycle":null,"product":{"name":"nvm","label":"nvm","category":"app"}},"hubHref":"/vendor/nvm-sh/nvm"}],"affectedCount":1,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/nvm-sh/nvm/security/advisories/GHSA-7prg-rw9c-82h7","label":"github.com/nvm-sh/nvm/security/advisories/GHSA-7prg-rw9c-82h7","hostname":"github.com","tags":["Vendor Advisory"]},{"url":"https://github.com/nvm-sh/nvm/commit/aa0572b7c48b2652a9f86276bbbf3840939981af","label":"github.com/nvm-sh/nvm/commit/aa0572b7c48b2652a9f86276bbbf3840939981af","hostname":"github.com","tags":["Patch"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-11-04T21:26:57.967Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-11-09T20:44:45.880Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"priority":{"label":"routine","tag":null,"reason":"Not severe (CVSS 2.1, network access); no exploitation reported by the 5 checked sources","nextStep":"Fix in the normal cadence","rank":[0,0,0,0,0,21],"checkedSources":["cisa","enisa","circl","shadowserver","cisa-adp"],"evidence":[{"type":"epss","source":"FIRST","date":"2026-12-04T00:00:00.000Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"value":0.00232,"stale":false,"promoted":null},{"type":"cvss","source":"cve.org","date":"2026-11-09T20:44:45.880Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":2.1,"vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N","version":"4.0","headline":true},{"type":"cvss","source":"cve.org","date":"2026-11-09T20:44:45.880Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":3.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:N","version":"3.1"},{"type":"cvss","source":"nvd","date":"2026-11-09T20:44:45.880Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":2.1,"vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:N/VI:L/VA:N/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","version":"4.0"},{"type":"cvss","source":"nvd","date":"2026-11-09T20:44:45.880Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":3.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:N","version":"3.1"},{"type":"adp","source":"cisa-adp","date":"2026-11-09T20:44:30.272Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"exploitation":"none"}],"epss":{"value":0.00232,"date":"2026-12-04T00:00:00.000Z","stale":false,"promoted":null},"sources":[{"id":"cisa","lastSuccessfulSync":"2026-12-05T04:02:19.840Z","state":"fresh"},{"id":"enisa","lastSuccessfulSync":"2026-12-05T04:02:20.356Z","state":"fresh"},{"id":"circl","lastSuccessfulSync":"2026-12-05T04:02:20.556Z","state":"fresh"},{"id":"shadowserver","lastSuccessfulSync":null,"state":"unavailable"},{"id":"cisa-adp","lastSuccessfulSync":"2026-12-05T04:00:57.992Z","state":"fresh"},{"id":"epss","lastSuccessfulSync":"2026-12-05T04:02:18.199Z","state":"fresh"},{"id":"osv","lastSuccessfulSync":"2026-12-05T04:02:17.270Z","state":"fresh"}],"feedEvent":null},"meta":{"dataAsOf":"2026-12-05T05:03:11.060Z","stale":false,"partial":false}}