GHSA-qffw-8wg7-h665

Suggest an improvement
Source
https://github.com/advisories/GHSA-qffw-8wg7-h665
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/04/GHSA-qffw-8wg7-h665/GHSA-qffw-8wg7-h665.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-qffw-8wg7-h665
Aliases
Published
2022-04-23T00:03:01Z
Modified
2023-11-08T04:07:49Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
Command injection in git-interface
Details

A command injection vulnerability exists in git-interface in the GitHub repository yarkeev/git-interface prior to 2.1.2. If both the git remote and destination directory are provided by user input, then the use of an --upload-pack command-line argument feature of git is also supported for git clone, which would then allow for any operating system command to be spawned by the attacker.

Database specific
{
    "cwe_ids":  [
        "CWE-78",
        "CWE-88"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2022-04-26T13:06:52Z",
    "nvd_published_at":  "2022-04-22T18:15:00Z",
    "severity":  "CRITICAL"
}
References

Affected packages

npm / git-interface

Package

Name
git-interface
View open source insights on deps.dev
Purl
pkg:npm/git-interface

Affected ranges

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

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/04/GHSA-qffw-8wg7-h665/GHSA-qffw-8wg7-h665.json"