Intelligence View
USN-8303-1: GitPython vulnerabilities
Santos Gallegos discovered that GitPython did not properly validate paths when resolving certain Git references. An attacker could possibly use this issue to…
CVE & Threat-Kontext · 2 Min. Lesezeit
paths when resolving certain Git references. An attacker could possibly
use this issue to cause files outside the .git directory to be accessed,
leading to a denial of service. This issue only affected Ubuntu 14.04
LTS, Ubuntu 16.04 LTS, Ubuntu 18.04 LTS, Ubuntu 20.04 LTS, and Ubuntu
22.04 LTS. (CVE-2023-41040)
Wes Ring discovered that GitPython did not properly block certain unsafe
Git options when they were provided as Python keyword arguments. An
attacker could possibly use this issue to cause arbitrary command
execution. (CVE-2026-42215)
It was discovered that GitPython did not properly validate clone options
before processing them. An attacker could possibly use this issue to
inject unsafe Git configuration, leading to arbitrary command execution
through Git hooks. This issue only affected Ubuntu 20.04 LTS, Ubuntu
22.04 LTS, Ubuntu 24.04 LTS, and Ubuntu 26.04 LTS. (CVE-2026-42284)
It was discovered that GitPython did not properly validate reference
paths during reference operations. An attacker could possibly use this
issue to write, overwrite, move, or delete files outside the repository.
(CVE-2026-44243)
Dan Aridor discovered that GitPython did not properly validate
configuration values before writing them to Git configuration files. An
attacker could possibly use this issue to inject unsafe Git
configuration, leading to arbitrary command execution through Git hooks.
(CVE-2026-44244)
Description officielle de la CVE
CVE-2023-41040GitPython is a python library used to interact with Git repositories. 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. This vulnerability is present in https://github.com/gitpython-developers/GitPython/blob/1c8310d7cae144f74a671cbe17e51f63a830adbf/git/refs/symbolic.py#L174-L175. That code joins the base directory with a user given string without checking if the final path is located outside the base directory. This vulnerability cannot be used to read the contents of files but could in theory be used to trigger a denial of service for the program. This issue has been addressed in version 3.1.37.
Texte intégral, issu des données CVE/NVD — le texte source ci-dessus est volontairement un extrait. Voir le dossier CVE
Information ergänzen Fachhinweis, Update, Korrektur oder Quelle zur Meldung beitragen
Community-Hinweise zur Meldung
Radar d’armement & PoC
Urgence Admin IT · Surface d’attaque Chercheur · Preuves
Avis des éditeurs & Statut des correctifs
Bulletins éditeurs · Correctifs · Sources primaires vérifiées
Hersteller-Advisory noch nicht formal hinterlegt. Regelmäßiges Re-Scanning der CTI-Quellen anberaumt.
-
GitHub Advisory (GHSA) gitpython-developers/GitPython/security/advisories/GHSA…Patch prüfen
-
GitHub PR gitpython-developers/GitPython/pull/1672Patch prüfen
-
GitHub Commit gitpython-developers/GitPython/commit/74e55ee4544867e1b…Patch prüfen
-
GitHub Commit gitpython-developers/GitPython/commit/e98f57b81f792f0f5…Patch prüfen
-
GitHub Release gitpython-developers/GitPython/releases/tag/3.1.37Patch prüfen
-
Upstream-Referenz (Code-Hosting, kein Advisory)github.com
-
Upstream-Referenz (Code-Hosting, kein Advisory)github.com
-
Upstream-Referenz (Code-Hosting, kein Advisory)github.com
-
Upstream-Referenz (Code-Hosting, kein Advisory)github.com
-
Upstream-Referenz (Code-Hosting, kein Advisory)github.com
-
Upstream-Referenz (Code-Hosting, kein Advisory)github.com
-
NIST NVD (CVE-2023-41040)nvd.nist.gov
Taxonomie des failles CWE & architecture défensive
Classes de faiblesses · Cause racine · Mitigation
Renseignement sur les menaces & Forensique
Navigateur ATT&CK · Radar IoC & Graphe
Conformité, SLA & respect éditeur
Vecteur CVSS · Classement du score · Tri des autorités
BSI-Warnung (Deutschland)CVE-2023-41040
SaltStack Salt: Mehre Schwachstellen hoch21.09.2023CISA-SSVC-Triage (vulnrichment)CVE-2023-41040
Intelligence Digest — gratuit
Chaque jour, les principales actualités sécurité · résiliable à tout moment
💬 Discussion communautaire et commentaires
Lancez la discussion dans le flux diffusé du Social Chat ou proposez ci-dessus une contribution experte via le formulaire de complément.