PyPi: Libvcs

CVE-2022-21187

Safety vulnerability ID: 46409

This vulnerability was reviewed by experts

The information on this page was manually curated by our Cybersecurity Intelligence Team.

Created at Mar 14, 2022 Updated at Feb 22, 2025
Scan your Python projects for vulnerabilities →

Advisory

Libvcs before 0.11.1 is 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 package

libvcs

Latest version: 0.35.0

Lite, typed, python utilities for Git, SVN, Mercurial, etc.

Affected versions

Fixed versions

Vulnerability changelog

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. See CVE-2022-21187.


MISC:https://github.com/vcs-python/libvcs/blob/v0.11.1/CHANGES%23libvcs-0111-2022-03-12: https://github.com/vcs-python/libvcs/blob/v0.11.1/CHANGES%23libvcs-0111-2022-03-12
MISC:https://github.com/vcs-python/libvcs/pull/306: https://github.com/vcs-python/libvcs/pull/306
MISC:https://snyk.io/vuln/SNYK-PYTHON-LIBVCS-2421204: https://snyk.io/vuln/SNYK-PYTHON-LIBVCS-2421204

Resources

Use this package?

Scan your Python project for dependency vulnerabilities in two minutes

Scan your application

Severity Details

CVSS Base Score

CRITICAL 9.8

CVSS v3 Details

CRITICAL 9.8
Attack Vector (AV)
NETWORK
Attack Complexity (AC)
LOW
Privileges Required (PR)
NONE
User Interaction (UI)
NONE
Scope (S)
UNCHANGED
Confidentiality Impact (C)
HIGH
Integrity Impact (I)
HIGH
Availability Availability (A)
HIGH

CVSS v2 Details

HIGH 7.5
Access Vector (AV)
NETWORK
Access Complexity (AC)
LOW
Authentication (Au)
NONE
Confidentiality Impact (C)
PARTIAL
Integrity Impact (I)
PARTIAL
Availability Impact (A)
PARTIAL