High severity · published Jun 18, 2020
CVE-2020-4059
In mversion before 2.0.0, there is a command injection vulnerability
7.3
CVSS
2.6%
EPSS
No
On KEV
Description
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
Low
Integrity
Low
Availability
Low
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)2.6% · higher than 85% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
MV
Mversion · Mversion Project
before 2.0.0 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2020-4059
CVE.org
https://www.cve.org/CVERecord?id=CVE-2020-4059
Patch
https://github.com/mikaelbr/mversion/commit/6c76c9efd27c7ff5a5c6f187e8b7a435c4722338
Third Party Advisory
https://github.com/mikaelbr/mversion/security/advisories/GHSA-qjg4-w4c6-f6c6
More from Mversion
7.8
CVE-2020-7688
The issue occurs because tagName user input is formatted inside the exec function is executed without any checks
