Skip to main content
← All vulnerabilities
CVE-2022-21187GHSA-MV2W-4JQC-6FG4PYSEC-2022-163PYSEC-2026-563SNYK-PYTHON-LIBVCS-2421204

Command Injection

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 0.11.1, 1.11.1
None on Exploit-DB, Metasploit or GitHub

Summary

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.

Timeline

  1. CVE published
  2. Record last updated

Affected versions

  • n/a libvcs

    fixed in 0.11.1

  • libvcsPyPI

    fixed in 0.11.1

  • vcspullPyPI

    fixed in 1.11.1

References 3

snyk.io

GitHub · vcs-python/libvcs