CVE-2022-21187

Command Injection

Published Mar 14, 2022 CVSS 3.1 · 8.1 High EPSS 3.6% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2022-0137 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.
Github GHSA Github GHSA GHSA-mv2w-4jqc-6fg4 Command injection in libvcs and vcspull
History

No history.

Weaknesses

Sources

Status
PUBLISHED
Assigner
snyk
Published
Updated
Sep 16, 2024, 6:13 PM
Reserved
Feb 24, 2022, 12:00 AM
Status
Modified
Published
Mar 14, 2022, 6:15 PM
Modified
Jun 17, 2026, 4:25 AM