Skip to content
OpenAdvisories
High · 8.1 CVE-2022-21187 EUVD-2022-0137GHSA-mv2w-4jqc-6fg4PYSEC-2022-163PYSEC-2026-563SNYK-PYTHON-LIBVCS-2421204

Command Injection

Published Mar 14, 2022 · Updated Sep 16, 2024 · Assigned by snyk

Description

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 products

VendorProductAffectedFixed
— libvcs unspecified – < 0.11.1 0.11.1

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI libvcs < 0.11.1 0.11.1 GHSA-mv2w-4jqc-6fg4
PyPI vcspull < 1.11.1 1.11.1 GHSA-mv2w-4jqc-6fg4

References