GHSA-mv2w-4jqc-6fg4

Suggest an improvement
Source
https://github.com/advisories/GHSA-mv2w-4jqc-6fg4
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/03/GHSA-mv2w-4jqc-6fg4/GHSA-mv2w-4jqc-6fg4.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-mv2w-4jqc-6fg4
Aliases
Published
2022-03-15T00:00:53Z
Modified
2024-09-27T21:47:51.674538Z
Severity
  • 8.1 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
  • 9.3 (Critical) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N CVSS Calculator
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.

Database specific
{
    "nvd_published_at": "2022-03-14T18:15:00Z",
    "cwe_ids": [
        "CWE-74",
        "CWE-77"
    ],
    "severity": "CRITICAL",
    "github_reviewed": true,
    "github_reviewed_at": "2022-03-15T17:05:10Z"
}
References

Affected packages

PyPI / libvcs

Package

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.11.1

Affected versions

0.*

0.1.2
0.1.3
0.1.4
0.1.5
0.1.6
0.1.7
0.2.0
0.2.1
0.2.2
0.2.3
0.3.0
0.3.1
0.3.1.post1
0.3.2
0.3.3
0.4.0rc1
0.4.0rc2
0.4.0
0.4.1
0.4.2
0.4.3
0.4.4
0.5.0a1
0.5.0a2
0.5.0
0.9.0a1
0.9.0a2
0.9.0
0.10.0
0.10.1
0.11.0

PyPI / vcspull

Package

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.11.1

Affected versions

0.*

0.0.6
0.0.7
0.0.8
0.0.8.1
0.0.8.2
0.0.8.3
0.0.8.4
0.0.9
0.0.9.1
0.0.10
0.1.0
0.1.1
0.2.0
0.2.1
0.2.2
0.9.0

1.*

1.0.0
1.0.1
1.0.2
1.0.3
1.1.0
1.2.0
1.3.0
1.3.0.post1
1.3.0.post2
1.3.1
1.4.0
1.4.1
1.4.2
1.4.3
1.5.0a1
1.5.0a2
1.5.0a3
1.5.0a4
1.5.0
1.6.0
1.6.1
1.7.0
1.7.0.post0
1.8.0
1.8.1
1.9.0
1.9.0.post1
1.9.0.post2
1.10.0
1.11.0