GHSA-wp3j-gv53-4pg8

Suggest an improvement
Source
https://github.com/advisories/GHSA-wp3j-gv53-4pg8
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-wp3j-gv53-4pg8/GHSA-wp3j-gv53-4pg8.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-wp3j-gv53-4pg8
Aliases
Published
2022-05-13T01:41:14Z
Modified
2023-11-08T03:58:46.662055Z
Severity
  • 7.8 (High) CVSS_V3 - CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
fs-git command injection vulnerability
Details

fs-git is a file system like api for git repository. The fs-git version 1.0.1 module relies on child_process.exec, however, the buildCommand method used to construct exec strings does not properly sanitize data and is vulnerable to command injection across all methods that use it and call exec.

Database specific
{
    "github_reviewed_at": "2023-07-31T22:09:51Z",
    "cwe_ids": [
        "CWE-78"
    ],
    "nvd_published_at": "2018-01-02T17:29:00Z",
    "severity": "HIGH",
    "github_reviewed": true
}
References

Affected packages

npm / fs-git

Package

Affected ranges

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