ADVISORIES

openEuler Security Advisory

OESA-2023-1529

python-GitPython security update

Details

GitPython is a python library used to interact with git repositories, high-level like git-porcelain, or low-level like git-plumbing.

Security Fix(es):

All versions of package gitpython are 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.(CVE-2022-24439)

GitPython before 3.1.32 does not block insecure non-multi options in clone and clone_from. NOTE: this issue exists because of an incomplete fix for CVE-2022-24439.(CVE-2023-40267)

Affected packages

EcosystemPackageAffected versions
openEuler:20.03-LTS-SP1python-GitPython
All versions before 3.1.32-1.oe1 (fixed in 3.1.32-1.oe1)
openEuler:20.03-LTS-SP3python-GitPython
All versions before 3.1.32-1.oe1 (fixed in 3.1.32-1.oe1)
openEuler:22.03-LTSpython-GitPython
All versions before 3.1.32-1.oe2203sp2 (fixed in 3.1.32-1.oe2203sp2)
openEuler:22.03-LTS-SP1python-GitPython
All versions before 3.1.32-1.oe2203sp1 (fixed in 3.1.32-1.oe2203sp1)
openEuler:22.03-LTS-SP2python-GitPython
All versions before 3.1.32-1.oe2203sp2 (fixed in 3.1.32-1.oe2203sp2)

References