Advisory

PYSEC-2026-563

Also known as: CVE-2022-21187, GHSA-mv2w-4jqc-6fg4, PYSEC-2022-163, SNYK-PYTHON-LIBVCS-2421204

Summary

Command injection in libvcs and vcspull

Details

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.

Severity

High Basis: CVSS v3 score 8.1, vector CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Dates

Published
2026-06-29 11:50 UTC
Modified
2026-07-01 20:23 UTC

Affected packages and fixes

vcspull

PyPI · All systems

Affected

  • introduced 0, fixed 1.11.1 (ecosystem)

Fixed versions

1.11.1

Fix

  • Fixed version 1.11.1
    pip install --upgrade vcspull==1.11.1

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences