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)
Officiële CVE-beschrijving
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.
Volledig en ongekort uit het CVE/NVD-bestand; de brontekst hierboven is bewust slechts een uittreksel. Naar het CVE-dossier
Information ergänzen Fachhinweis, Update, Korrektur oder Quelle zur Meldung beitragen
Community-Hinweise zur Meldung
Exploit Weaponization & PoC Radar
IT-beheerurgentie · Onderzoekersaanvalsoppervlak · Exploit-bewijs
Leveranciersmeldingen & Patchstatus
Leveranciersbulletins · Patches · Geverifieerde primaire bronnen
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
CWE-taxonomie van zwakke plekken & defensieve architectuur
Klassen van zwakke plekken · Oorzaak · Mitigatie
Cyber Threat Intelligence & Forensiek
ATT&CK-Navigator · IoC-Radar & Graaf
Compliance, SLA & leveranciersadherentie
CVSS-vector · Scoreclassificatie · Triage door instanties
BSI-Warnung (Deutschland)CVE-2023-41040
SaltStack Salt: Mehre Schwachstellen hoch21.09.2023CISA-SSVC-Triage (vulnrichment)CVE-2023-41040
Intelligence Digest gratis
Dagelijks het belangrijkste beveiligingsnieuws · kan op elk moment worden opgehaald
💬 Communitydiscussie & reacties
Start de discussie in de Social Chat broadcaststream of dien hierboven een vakbijdrage in via het aanvulformulier.