Lucene search

K
githubGitHub Advisory DatabaseGHSA-MV2W-4JQC-6FG4
HistoryMar 15, 2022 - 12:00 a.m.

Command injection in libvcs and vcspull

2022-03-1500:00:53
CWE-74
CWE-77
GitHub Advisory Database
github.com
22
libvcs
vcspull
command injection
software
vulnerability
hg
update_repo

CVSS2

7.5

Attack Vector

NETWORK

Attack Complexity

LOW

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

PARTIAL

AV:N/AC:L/Au:N/C:P/I:P/A:P

CVSS3

9.8

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

EPSS

0.005

Percentile

75.5%

The package libvcs before 0.11.1 are vulnerable to Command Injection via argument injection. When calling the update_repo function (when using hg), the url parameter is passed to the hg clone command. By injecting some hg options it was possible to get arbitrary command execution.

Affected configurations

Vulners
Node
vcspullRange<1.11.1
OR
libvcs_projectlibvcsRange<0.11.1
VendorProductVersionCPE
*vcspull*cpe:2.3:a:*:vcspull:*:*:*:*:*:*:*:*
libvcs_projectlibvcs*cpe:2.3:a:libvcs_project:libvcs:*:*:*:*:*:*:*:*

CVSS2

7.5

Attack Vector

NETWORK

Attack Complexity

LOW

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

PARTIAL

AV:N/AC:L/Au:N/C:P/I:P/A:P

CVSS3

9.8

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

EPSS

0.005

Percentile

75.5%

Related for GHSA-MV2W-4JQC-6FG4