GHSA-h42j-mrmp-9369

Suggest an improvement
Source
https://github.com/advisories/GHSA-h42j-mrmp-9369
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/06/GHSA-h42j-mrmp-9369/GHSA-h42j-mrmp-9369.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-h42j-mrmp-9369
Aliases
Published
2023-06-28T06:30:22Z
Modified
2024-10-30T18:00:09Z
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
  • 8.9 (High) 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/E:P CVSS Calculator
Summary
git-commit-info vulnerable to Command Injection
Details

Versions of the package git-commit-info before 2.0.2 are vulnerable to Command Injection such that the package-exported method gitCommitInfo() fails to sanitize its parameter commit, which later flows into a sensitive command execution API. As a result, attackers may inject arguments to the git binary.

Database specific
{
    "nvd_published_at": "2023-06-28T05:15:10Z",
    "cwe_ids": [
        "CWE-77",
        "CWE-78"
    ],
    "severity": "HIGH",
    "github_reviewed": true,
    "github_reviewed_at": "2023-06-30T20:32:34Z"
}
References

Affected packages

npm / git-commit-info

Package

Affected ranges

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