Lucene search

K
cveSnykCVE-2022-21187
HistoryMar 14, 2022 - 6:15 p.m.

CVE-2022-21187

2022-03-1418:15:07
CWE-88
snyk
web.nvd.nist.gov
93
cve-2022-21187
nvd
libvcs
command injection
argument injection
update_repo function
hg
arbitrary command execution
security vulnerability

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

AI Score

10

Confidence

High

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

Nvd
Node
libvcs_projectlibvcsRange<0.11.1
VendorProductVersionCPE
libvcs_projectlibvcs*cpe:2.3:a:libvcs_project:libvcs:*:*:*:*:*:*:*:*

CNA Affected

[
  {
    "product": "libvcs",
    "vendor": "n/a",
    "versions": [
      {
        "lessThan": "0.11.1",
        "status": "affected",
        "version": "unspecified",
        "versionType": "custom"
      }
    ]
  }
]

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

AI Score

10

Confidence

High

EPSS

0.005

Percentile

75.5%