Lucene search

K
cvelistSnykCVELIST:CVE-2022-21187
HistoryMar 14, 2022 - 5:15 p.m.

CVE-2022-21187 Command Injection

2022-03-1417:15:17
snyk
www.cve.org
2
command injection
libvcs
hg
update_repo
arbitrary command execution

CVSS3

8.1

Attack Vector

NETWORK

Attack Complexity

HIGH

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

CVSS:3.1/AV:N/AC:H/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.

CNA Affected

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

CVSS3

8.1

Attack Vector

NETWORK

Attack Complexity

HIGH

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

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

AI Score

10

Confidence

High

EPSS

0.005

Percentile

75.5%

Related for CVELIST:CVE-2022-21187