Remote command execution In gitpython
Description
GitPython vulnerable to remote code execution due to insufficient sanitization of input arguments
GitPython before 3.1.32 does not block insecure non-multi options in clone and clone_from, making it vulnerable to Remote Code Execution (RCE) due to improper user input validation, which makes it possible to inject a maliciously crafted remote URL into the clone command. Exploiting this vulnerability is possible because the library makes external calls to git without sufficient sanitization of input arguments. NOTE: this issue exists because of an incomplete fix for CVE-2022-24439.
Mitigation
Update Impact
Minimal update. May introduce new vulnerabilities or breaking changes.
Ecosystem | Package | Affected version | Patched versions |
|---|---|---|---|
pypi | 3.1.32 | ||
debian 11 | 3.1.14-1+deb11u1 | ||
debian 12 | 3.1.30-1+deb12u2 | ||
debian 13 | 3.1.36-1 | ||
debian 14 | 3.1.36-1 |
Aliases
References