CVE-2021-28955
JSON

9.8critical

Arbitrary code execution due to an uncontrolled search path for the git binary

Severity
9.8critical CVSS:3.1 by NVD
Exploit likelihood
1.72% (higher than 78% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre
Also known as
GHSA-m898-h4pm-pqfr

Description

git-bug before 0.7.2 has an Uncontrolled Search Path Element. It will execute git.bat from the current directory in certain PATH situations (most often seen on Windows).

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
github.com/MichaelMure/git-bug (Go)before 0.7.2GitHub Advisory Database
git-bug_project git-bugbefore 0.7.2NVD

All scores

GitHub9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD7.5high CVSS:2.0AV:N/AC:L/Au:N/C:P/I:P/A:P

Classification

What each source says

CVE List

git-bug before 0.7.2 has an Uncontrolled Search Path Element. It will execute git.bat from the current directory in certain PATH situations (most often seen on Windows).

GitHub Advisory Database
Impact

The go language recently addressed a security issue in the way that binaries are found before being executed. Some operating systems like Windows persist to have the current directory being part of the default search path, and having priority over the system-wide path.

This means that it's possible for a malicious user to craft for example a git.bat command, commit it and push it in a repository. Later when git-bug search for the git binary, this malicious executable can take priority and be executed.

Who is impacted

This issue happen on Windows and some other operating systems with a badly configured PATH.

All version prior to 0.7.2 are vulnerable to this issue.

Patches

Version 0.7.2 fix this issue. Users should update as soon as possible.

References

More details about this issue can be found here.

NVD (es)

git-bug versiones anteriores a 0.7.2, presenta un Elemento de Ruta de Búsqueda No Controlada. Ejecutará git.bat desde el directorio actual en determinadas situaciones de PATH (visto con mayor frecuencia en Windows)

References

Sources

SourceRecordLicence
CVE ListCVE-2021-28955 changed 2024-08-03CVE Terms of Use
GitHub Advisory DatabaseGHSA-m898-h4pm-pqfr changed 2026-07-08CC-BY-4.0
NVDCVE-2021-28955 changed 2026-06-17Public domain