{"id":"CVE-2020-4059","published":"2020-06-18T19:25:15Z","modified":"2024-08-04T07:52:20Z","title":"Command Injection in mversion","vendor":"mikaelbr","product":"mversion","tier":"tail","description":{"text":"In mversion before 2.0.0, there is a command injection vulnerability. This issue may lead to remote code execution if a client of the library calls the vulnerable method with untrusted input. This vulnerability is patched by version 2.0.0. Previous releases are deprecated in npm. As a workaround, make sure to escape git commit messages when using the commitMessage option for the update function.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.3,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.02596,"percentile":0.857,"provenance":"source"},"cwes":[{"id":"CWE-77","name":"Improper Neutralization of Special Elements used in a Command"}],"references":[{"url":"https://github.com/mikaelbr/mversion/security/advisories/GHSA-qjg4-w4c6-f6c6","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/mikaelbr/mversion/commit/6c76c9efd27c7ff5a5c6f187e8b7a435c4722338","tags":["x_refsource_MISC"]}],"priority":{"score":22.2,"factors":[{"name":"EPSS percentile","points":17.14},{"name":"CVSS severity","points":5.11}]},"vendorSlug":"mikaelbr","affectedVersions":[{"vendor":"mikaelbr","product":"mversion","versions":["< 2.0.0"]}],"affected":[{"ecosystem":"npm","package":"mversion","vulnerableRanges":["<2.0.0"],"patched":["2.0.0"],"from":["GHSA-qjg4-w4c6-f6c6"],"provenance":"source"}],"summary":{"text":"A command injection flaw in the mversion npm package, before version 2.0.0, lets untrusted input reach a shell command when a client calls the vulnerable method. An attacker who can supply such input over the network without authenticating or any user interaction could achieve remote code execution, provided the application passes untrusted data to the affected path (for example, via the commitMessage option of the update function).","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:50:05Z"},"euvd":{"id":"EUVD-2020-0509","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-mikaelbr-mversion-cve-2020-4059","children":[{"from":"CVE-2020-4059","to":"CVE-2020-7688","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"npm:mversion","fromFixed":"2.0.0","toFixed":"2.0.1","daysApart":13},{"kind":"same-code","provenance":"machine","files":["lib/git.js"],"commits":["https://github.com/mikaelbr/mversion/commit/6c76c9efd27c7ff5a5c6f187e8b7a435c4722338","https://github.com/mikaelbr/mversion/commit/b7a8b32600e60759a7ad3921ec4a2750bf173482"],"basis":"rarely changed file"}]}],"packageHistory":[{"cve":"CVE-2020-4059","published":"2020-06-18","fixed":"2.0.0","kev":false},{"cve":"CVE-2020-7688","published":"2020-07-01","fixed":"2.0.1","kev":false}],"package":"npm:mversion"}}