MGASA-2026-0372

Source
https://advisories.mageia.org/MGASA-2026-0372.html
Import Source
https://advisories.mageia.org/MGASA-2026-0372.json
JSON Data
https://api.osv.dev/v1/vulns/MGASA-2026-0372
Upstream
Published
2026-09-03T18:06:14Z
Modified
2026-09-03T18:15:02.938994693Z
Summary
Updated python-gitpython packages fix security vulnerabilities
Details

CVE-2023-40267 GitPython before 3.1.32 does not block insecure non-multi options in clone and clonefrom. NOTE: this issue exists because of an incomplete fix for CVE-2022-24439. CVE-2023-41040 In order to resolve some git references, GitPython reads files from the .git directory, in some places the name of the file being read is provided by the user, GitPython doesn't check if this file is located outside the .git directory. This allows an attacker to make GitPython read any file from the system. CVE-2026-42215 From version 3.1.30 to before version 3.1.47, GitPython blocks dangerous Git options such as --upload-pack and --receive-pack by default, but the equivalent Python kwargs uploadpack and receivepack bypass that check. If an application passes attacker-controlled kwargs into Repo.clonefrom(), Remote.fetch(), Remote.pull(), or Remote.push(), this leads to arbitrary command execution even when allowunsafeoptions is left at its default value of False. This issue has been patched in version 3.1.47.

References
Credits

Affected packages

Mageia:9 / python-gitpython

Package

Name
python-gitpython
Purl
pkg:rpm/mageia/python-gitpython?arch=source&distro=mageia-9

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
3.1.50-1.mga9

Ecosystem specific

{
    "section": "core"
}

Database specific

source
"https://advisories.mageia.org/MGASA-2026-0372.json"