CVE Catalog

GHSA-f9j4-qggq-h239

High
Published: —Translated: NVD NIST

Summary

In GitPython, Remote.pull() forwards its positional refspec argument directly to the git pull child process while its unsafe-option guard inspects only keyword arguments. An application that passes attacker-influenced data as the refspec (e.g., a user-supplied branch name) may allow injection of unsafe options.

Risk Assessment

An attacker could exploit this to inject malicious options into the git pull command, potentially leading to unintended repository or system operations. The risk affects applications that accept user input as refspec.

Recommendation

Update GitPython to a patched version and avoid passing untrusted data as the refspec argument. Consider validating and sanitizing input before using it in Remote.pull().

Other vulnerabilities in GitPython

See all
Original NVD description (English source)

## Summary `Remote.pull()` in GitPython forwards its positional `refspec` argument directly to the `git pull` child process while its unsafe-option guard inspects only keyword arguments. An application that passes attacker-influenced data as the `refspec` (for example a user-supplied branch or refs

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