Advisory

PYSEC-2022-163

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

Summary

The record has no summary.

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

Not rated by the source.

Dates

Published
2022-03-14 18:15 UTC
Modified
2026-06-29 12:26 UTC

Affected packages and fixes

libvcs

PyPI · All systems

Affected

  • introduced 0, fixed 0.11.1 (ecosystem)

Fixed versions

0.11.1

Fix

  • Fixed version 0.11.1
    pip install --upgrade libvcs==0.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