CVE Catalog

GHSA-fx3j-rwgx-fr94

Medium
Published: —Translated: NVD NIST

Summary

Repo._clone()'s handling of separate_git_dir never disables Git.polish_url()'s environment-variable expansion, unlike other callers of that helper that handle attacker-influenced data. separate_git_dir can be derived from an attacker-controlled .gitmodules submodule.

Risk Assessment

An untrusted repository may exploit environment-variable expansion in URLs, potentially leading to unexpected behavior or information disclosure.

Recommendation

Update GitPython to a fixed version. Avoid cloning untrusted repositories with submodules.

Other vulnerabilities in GitPython

See all
Original NVD description (English source)

### Summary `Repo._clone()`'s handling of `separate_git_dir` never disables `Git.polish_url()`'s environment-variable expansion, unlike every other caller of that helper that handles attacker-influenced data. Since `separate_git_dir` can be derived from an attacker-controlled `.gitmodules` submodule

Vulnerability data from NVD (NIST) · CISA KEV · EPSS