GHSA-3x62-x456-q2vm

Suggest an improvement
Source
https://github.com/advisories/GHSA-3x62-x456-q2vm
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-3x62-x456-q2vm/GHSA-3x62-x456-q2vm.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-3x62-x456-q2vm
Aliases
Published
2022-05-03T00:00:46Z
Modified
2025-01-08T14:11:52.713458Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
OS Command Injection in git-pull-or-clone
Details

The package git-pull-or-clone before 2.0.2 is vulnerable to Command Injection due to the use of the --upload-pack feature of git which is also supported for git clone. The source includes the use of the secure child process API spawn(). However, the outpath parameter passed to it may be a command-line argument to the git clone command and result in arbitrary command injection.

Credits

Credit @lirantal for discovering this vulnerability.

Database specific
{
    "nvd_published_at": "2022-05-01T16:15:00Z",
    "github_reviewed_at": "2022-05-23T19:56:13Z",
    "severity": "CRITICAL",
    "github_reviewed": true,
    "cwe_ids": [
        "CWE-77",
        "CWE-78"
    ]
}
References

Affected packages

npm / git-pull-or-clone

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.0.2