[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"repo-stars":3,"vuln-UBUNTU-CVE-2023-40590":6},{"stargazers_count":4,"fetched_at":5},8,"2026-09-19T17:35:29.592Z",{"id":7,"descriptions":8,"cisa":9,"weaknesses":10,"exploits":11,"aliases":12,"duplicate_of":9,"upstream":13,"downstream":16,"duplicates":17,"related":18,"reserved_at":9,"published_at":19,"modified_at":20,"state":9,"summary":21,"references_raw":23,"kevs":42,"epss":9,"epss_history":43,"metrics":44,"affected":51},"UBUNTU-CVE-2023-40590","GitPython is a python library used to interact with Git repositories. When resolving a program, Python/Windows look for the current working directory, and after that the PATH environment. GitPython defaults to use the `git` command, if a user runs GitPython from a repo has a `git.exe` or `git` executable, that program will be run instead of the one in the user's `PATH`. This is more of a problem on how Python interacts with Windows systems, Linux and any other OS aren't affected by this. But probably people using GitPython usually run it from the CWD of a repo. An attacker can trick a user to download a repository with a malicious `git` executable, if the user runs/imports GitPython from that directory, it allows the attacker to run any arbitrary commands. There is no fix currently available for windows users, however there are a few mitigations. 1: Default to an absolute path for the git program on Windows, like `C:\\\\Program Files\\\\Git\\\\cmd\\\\git.EXE` (default git path installation). 2: Require users to set the `GIT_PYTHON_GIT_EXECUTABLE` environment variable on Windows systems. 3: Make this problem prominent in the documentation and advise users to never run GitPython from an untrusted repo, or set the `GIT_PYTHON_GIT_EXECUTABLE` env var to an absolute path. 4: Resolve the executable manually by only looking into the `PATH` environment variable.",null,[],[],[],[14],{"_key":15},"CVE-2023-40590",[],[],[],"2023-08-28T18:15:00Z","2026-05-26T22:45:06.460738424Z",{"cisa_kev":22,"cisa_ransomware":22,"cisa_vendor":9,"epss_severity":9,"epss_score":9,"severity":9,"severity_score":9,"severity_version":9,"severity_source":9,"severity_vector":9,"severity_status":9},false,[24,30,34,38],{"url":25,"sources":26,"tags":28},"https://ubuntu.com/security/CVE-2023-40590",[27],"osv_ubuntu",[29],"REPORT",{"url":31,"sources":32,"tags":33},"https://docs.python.org/3/library/subprocess.html#popen-constructor",[27],[29],{"url":35,"sources":36,"tags":37},"https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-wfm5-v35h-vwf4",[27],[29],{"url":39,"sources":40,"tags":41},"https://www.cve.org/CVERecord?id=CVE-2023-40590",[27],[29],[],[],[45],{"source":27,"cvss_v2_0":9,"cvss_v3_0":9,"cvss_v3_1":46,"cvss_v4_0":9},{"baseScore":47,"baseSeverity":9,"vectorString":48,"impactScore":49,"exploitabilityScore":50},7.8,"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H",9.8,4.6,[52],{"ecosystem":53,"name":54,"vendor":55,"product":54,"cpe_part":9,"purl_type":56,"purl_namespace":55,"purl_name":54,"source":9,"versions":57},"Ubuntu","python-git","ubuntu","deb",[58,62],{"version":59,"is_range":60,"range_type":61,"version_start":9,"version_start_type":9,"version_end":9,"version_end_type":9,"fixed_in":9},"all",true,"ecosystem",{"version":59,"is_range":60,"range_type":61,"version_start":9,"version_start_type":9,"version_end":9,"version_end_type":9,"fixed_in":9}]