GitPython 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.
CVE-2023-41040
“—” beside the score: it is equal to NVD's CVSS score.
This medium-severity CVE scores 6.5 under NVD CVSS v3. EPSS exploit probability: 1.1% (66th percentile of EPSS-scored CVEs). GitHub Security Advisory CVSS 4.0 is lower than this score; a lower GitHub score revises it only when its advisory is newer than the CVE record's last change, and this advisory (published 2023-08-30) is not newer than that change (2026-06-17), so it does not.
Also known asEUVD-2023-0087 (ENISA EUVD) · GHSA-cwvm-v4w8-q58c (GitHub Security Advisories) · PYSEC-2023-165 (OSV.dev)Source: ENISA EUVD
- CISA's Vulnrichment rates exploitation as PoC; EchelonGraph holds no exploit-code reference for it
A fix is available — apply it.
- CVSS v3
- 6.5
- EG Score
- 6.5MEDIUMmedium confidence
- EG Risk
- 45EG Risk 45/100
EG Risk is EchelonGraph's 0–100 priority score. It fuses impact severity (EG Severity, the CVSS base score, never the KEV-floored or EPSS-lifted EG Score) with real-world exploitation and automatability, under weights EchelonGraph set by hand, so you can rank equal-severity CVEs and fix the most dangerous first. Higher = act sooner.
How it’s computed (value × EchelonGraph’s weight)Severity65% × 45%Impact severity (EG Severity): CVSS 6.5 of 10. Never the KEV-floored or EPSS-lifted EG Score.Exploitation40% × 40%EchelonGraph's fixed weight for EG-KEV Tier 3 (Elevated): a constant, not a probability.Automatability0% × 15%CISA's SSVC Automatable value: no (Vulnrichment).SSVC (CISA's decision table, applied by EchelonGraph): Track at low or medium mission impact; Track* at high (mission-essential systems).Exploitation public PoC (CISA Vulnrichment) · Automatable no (CISA Vulnrichment) · Technical impact partial (CISA Vulnrichment). All three are CISA's SSVC values (Vulnrichment). EchelonGraph applied CISA's decision table to them; CISA publishes SSVC inputs and the table, not a decision for each CVE.Action: A fix is available. Apply it within your standard update timelines. - EPSS PROB
- 1.1%
- EPSS %ILE
- 66th
- KEV
- Not listed
What the EG score is made of (scorer v4.0: the three questions the 0–10 score mixes, published apart · methodology)
The EG score (6.5): severity, escalated by confirmed exploitation. This CVE's 6.5 is its impact severity (EG Severity), not escalated.
- EG Severity
- 6.5 MEDIUMCVSS-B, impact only: no KEV listing, EPSS or EG-KEV tier raises it.NVD CVSS v3 · CVSS v3.0 or v3.1
- EG Likelihood
- 1.1% within 30 daysSource: FIRST EPSS (model v2026.06.15, score date 2026-11-20). FIRST's exploitation probability, not an EchelonGraph model.
- Confirmed exploitation
- None on record (CISA KEV, EG-KEV Tier 1)Reported apart from the likelihood: an observed fact, not a probability.
- EG Priority
- SSVC Track at medium mission impactTrack at low or medium mission impact; Track* at high (mission-essential systems).CISA BOD 26-04: 60 days if the affected system is publicly exposed; Fix on system upgrade if it is not.Each input and its source, and whom BOD 26-04 binds: the SSVC and BOD 26-04 blocks below.
SSVC (CISA's decision table, applied by EchelonGraph)Track at low or medium mission impact; Track* at high (mission-essential systems).
A fix is available. Apply it within your standard update timelines.
Exploitation public PoC (CISA Vulnrichment) · Automatable no (CISA Vulnrichment) · Technical impact partial (CISA Vulnrichment). All three are CISA's SSVC values (Vulnrichment). EchelonGraph applied CISA's decision table to them; CISA publishes SSVC inputs and the table, not a decision for each CVE. Mission impact is CISA's Mission & Well-being decision point, and only you can judge it. CISA's table makes it high when Mission Prevalence is Essential — the vulnerable component "directly provides capabilities that constitute at least one MEF for at least one entity" (MEF: mission essential function) — or when Public Well-Being Impact is Irreversible: "multiple fatalities are likely", the cyber-physical system "is likely lost or destroyed", "extreme or serious externalities" are imposed on other parties, or social systems such as elections or the financial grid "are destabilized and potentially collapse". CISA's decision table
BOD 26-04 (CISA's remediation timeline, Table 1)60 days if the affected system is publicly exposed; Fix on system upgrade if it is not.
The score's inputs: In CISA KEV no (CISA's KEV catalog) · Automatable no (CISA Vulnrichment) · Technical impact partial (CISA Vulnrichment). Whether your system is publicly exposed is yours to answer. BOD 26-04 binds US Federal Civilian Executive Branch agencies; for anyone else it is CISA's published timeline, a reference rather than an obligation. The directive · how EchelonGraph applies it
Source timeline
Each source's own date for this CVE, as that source states it, in UTC. For vendor and authority advisories, each publisher's earliest advisory is shown, for at most 12 publishers, and only for publishers whose advisory dates we hold as the publisher's own publication time. The EchelonGraph column shows when our collectors recorded the event, only where that was within 72 hours of the source's date (for a row without one, of the CVE's publication).
| Source | Event | Source's date | Recorded by EchelonGraph | Link |
|---|---|---|---|---|
| GitHub Advisory DatabaseGitHub Advisory Database (CC BY 4.0)Licence | GitHub advisory publishedGHSA-cwvm-v4w8-q58c | 30 Aug 2023, 20:09 UTC | recorded later, in a bulk import or a late collection | GitHub advisory |
| CVE.orgMITRE · CVE Program | CVE Record published | 30 Aug 2023, 21:07 UTC | recorded later, in a bulk import or a late collection | CVE.org record |
| Red Hat Product Security© Red Hat, Inc. (CC BY 4.0)Licence | Vendor advisory publishedRHSA-2023:7851 | 14 Dec 2023, 16:30 UTC | recorded later, in a bulk import or a late collection | Red Hat Product Security advisory |
| CVE.orgMITRE · CVE Program | CVE Record last updated | 3 Nov 2025, 21:49 UTC | — | CVE.org record |
Advisory Details (8)
Auto-updated Nov 21, 2026Blind local file inclusion · Advisory · gitpython-developers/GitPython · GitHub
https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-cwvm-v4w8-q58cGitPython/git/refs/symbolic.py at 1c8310d7cae144f74a671cbe17e51f63a830adbf · gitpython-developers/GitPython · GitHub
https://github.com/gitpython-developers/GitPython/blob/1c8310d7cae144f74a671cbe17e51f63a830adbf/git/refs/symbolic.py#L174-L175[SECURITY] [DLA 3589-1] python-git security update
https://lists.debian.org/debian-lts-announce/2023/09/msg00036.htmladvisory-database/vulns/gitpython/PYSEC-2023-165.yaml at main · pypa/advisory-database · GitHub
https://github.com/pypa/advisory-database/tree/main/vulns/gitpython/PYSEC-2023-165.yaml3.1.37 - a proper fix CVE-2023-41040
Patch available: gitpython-developers/GitPython 3.1.37
https://github.com/gitpython-developers/GitPython/releases/tag/3.1.37Add more checks for the validity of refnames
Patch available: gitpython-developers/GitPython 3.1.37 (PR #1672 merged 2023-09-22)
https://github.com/gitpython-developers/GitPython/pull/1672commit e98f57b81f79 (gitpython-developers/GitPython)
Patch available: gitpython-developers/GitPython 3.1.37 (contains commit e98f57b81f79)
https://github.com/gitpython-developers/GitPython/commit/e98f57b81f792f0f5e18d33ee658ae395f9aa3c4commit 74e55ee45448 (gitpython-developers/GitPython)
Patch available: gitpython-developers/GitPython 3.1.35 (contains commit 74e55ee45448)
https://github.com/gitpython-developers/GitPython/commit/74e55ee4544867e1bd976b7df5a45869ee397b0bVendor Advisories for CVE-2023-41040(6)
These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.
- RHSA-2024:1640Red Hat Product SecurityMedium
Red Hat Security Advisory: Red Hat Ansible Automation Platform 2.4 Product Security and Bug Fix Update
- RHSA-2024:0322Red Hat Product SecurityMedium
Red Hat Security Advisory: Red Hat Ansible Automation Platform 2.4 Product Security and Bug Fix Update
- RHSA-2024:0190Red Hat Product SecurityMedium
Red Hat Security Advisory: Red Hat OpenStack Platform 17.1 (GitPython) security update
- RHSA-2024:0215Red Hat Product SecurityMedium
Red Hat Security Advisory: Red Hat OpenStack Platform 17.1 (GitPython) security update
- RHSA-2023:7851Red Hat Product SecurityMedium
Red Hat Security Advisory: Satellite 6.14.1 Async Security Update
- GHSA-cwvm-v4w8-q58cGitHub Security AdvisoriesMedium
GitPython blind local file inclusion
Patch Availability(7)
| Vendor / Ecosystem | Fix (by version range) / Patch | Released | Source |
|---|---|---|---|
| ubuntu | python3-git (3.1.46-1ubuntu0.1~esm1) @ resolute | 2026-10-24 | ubuntu |
| redhat | automation-controller-0:4.5.5-2.el9ap | 2024-04-02 | redhat |
| redhat | python-gitpython-0:3.1.40-1.el9ap | 2024-01-22 | redhat |
| redhat | GitPython-0:3.1.14-2.el8ost | 2024-01-16 | redhat |
| redhat | GitPython-0:3.1.14-2.el9ost | 2024-01-16 | redhat |
| redhat | python-gitpython-0:3.1.40-0.1.el8pc | 2023-12-14 | redhat |
| pip | GitPython @ 3.1.37 (fixes < 3.1.37) | — | ghsa |
These rows come from Ubuntu, Red Hat and GitHub (GHSA). Multiple rows for the same upstream release have been deduplicated.
Affected Packages
(12 across 12 ecosystems)
Alpine:v3.19(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| py3-gitpython | — |
| — |
Alpine:v3.20(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| py3-gitpython | — |
| — |
Alpine:v3.21(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| py3-gitpython | — |
| — |
Alpine:v3.22(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| py3-gitpython | — |
| — |
Alpine:v3.23(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| py3-gitpython | — |
| — |
Alpine:v3.24(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| py3-gitpython | — |
| — |
Debian:10(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| python-git | 2.1.11-1, 2.1.11-1+deb10u1 |
| — |
Debian:11(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| python-git | 3.1.14-1 |
| — |
Debian:12(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| python-git | 3.1.30-1 |
| — |
Debian:13(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| python-git | — |
| — |
Debian:14(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| python-git | — |
| — |
PyPI(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| gitpython | 0.1.7 ... 3.1.9 (88 versions) |
| — |
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Additional Vendor Advisories
(1)
Vendors that published advisories for this CVE beyond the curated set above. Broader coverage but minimal per-row detail — click through for the original advisory.
Data Freshness Timeline
(refreshed 8× in last 7d / 32× in last 30d)
Each row is a time one of our pipelines fetched, updated or re-scored this CVE. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed its CVE.org record (CNA or CISA ADP). An arrow marks a change the record states ("CVSS v3 → 9.1"); EPSS and GHSA rows show the values recorded at that time, not what changed (EPSS values are rounded; hover one for the exact figures). "EchelonGraph re-scored" is our own recompute of this CVE's score, not an update from a source, and is not counted in the refreshes above. Most recent first.
Showing the most recent 100 of 256 rows on record for this CVE, as 93 entries (7 repeats merged).
A repeat, a row identical to one the same pipeline wrote less than 10 seconds earlier, is not a separate refresh and is not counted. 7 repeat rows among the latest 100 are merged into the row they repeat. The 156 oldest rows on record are not shown and were not checked, so the counts can still include repeats.
- 2026-11-23 16:38 UTCEPSS rescoreEPSS 1.1% · 66th percentile
- 2026-11-21 16:34 UTCEPSS rescoreEPSS 1.1% · 66th percentile
- 2026-11-21 06:48 UTCEchelonGraph re-scored
- 2026-11-21 06:48 UTCVendor advisory
- 2026-11-21 06:48 UTCGHSA enrichmentGHSA-cwvm-v4w8-q58c · GitHub severity MODERATE · GitHub CVSS 4.0
- 2026-11-20 16:33 UTCEPSS rescoreEPSS 1.1% · 66th percentile
- 2026-11-19 16:30 UTCEPSS rescoreEPSS 1.1% · 66th percentile
- 2026-11-18 16:30 UTCEPSS rescoreEPSS 1.1% · 66th percentile
- 2026-11-17 16:31 UTCEPSS rescoreEPSS 1.1% · 66th percentile
- 2026-11-16 16:42 UTCEPSS rescoreEPSS 1.1% · 66th percentile
- 2026-11-15 16:45 UTCEPSS rescoreEPSS 1.1% · 66th percentile
- 2026-11-14 16:35 UTCEPSS rescoreEPSS 1.1% · 65th percentile
- 2026-11-13 16:45 UTCEPSS rescoreEPSS 1.1% · 65th percentile
- 2026-11-12 16:30 UTCEPSS rescoreEPSS 1.1% · 65th percentile
- 2026-11-11 16:33 UTCEPSS rescoreEPSS 1.1% · 65th percentile
- 2026-11-10 16:37 UTCEPSS rescoreEPSS 1.1% · 65th percentile
- 2026-11-09 16:30 UTCEPSS rescoreEPSS 1.1% · 65th percentile
- 2026-11-08 16:35 UTCEPSS rescoreEPSS 1.1% · 65th percentile
- 2026-11-07 16:35 UTCEPSS rescoreEPSS 1.1% · 65th percentile
- 2026-11-06 16:31 UTCEPSS rescoreEPSS 1.1% · 65th percentile
- 2026-11-05 16:33 UTCEPSS rescoreEPSS 1.1% · 65th percentile
- 2026-11-04 16:31 UTCEPSS rescoreEPSS 1.1% · 65th percentile
- 2026-11-03 16:41 UTCEPSS rescoreEPSS 1.1% · 65th percentile
- 2026-11-02 16:40 UTCEPSS rescoreEPSS 1.1% · 65th percentile
- 2026-11-01 16:31 UTCEPSS rescoreEPSS 1.1% · 65th percentile
Show 68 moreShow fewer
- 2026-11-01 08:19 UTCGHSA enrichmentGHSA-cwvm-v4w8-q58c · GitHub severity MODERATE · GitHub CVSS 4.0
- 2026-11-01 08:19 UTCEchelonGraph re-scored
- 2026-10-31 16:30 UTCEPSS rescoreEPSS 1.1% · 65th percentile
- 2026-10-30 16:31 UTCEPSS rescoreEPSS 1.1% · 65th percentile
- 2026-10-29 16:30 UTCEPSS rescoreEPSS 1.1% · 65th percentile
- 2026-10-28 16:29 UTCEPSS rescoreEPSS 1.1% · 65th percentile
- 2026-10-27 16:29 UTCEPSS rescoreEPSS 1.1% · 65th percentile
- 2026-10-26 16:28 UTCEPSS rescoreEPSS 1.1% · 65th percentile
- 2026-10-25 17:36 UTCEchelonGraph re-scored
- 2026-10-25 16:29 UTCEPSS rescoreEPSS 1.1% · 65th percentile
- 2026-10-24 16:29 UTCEPSS rescoreEPSS 1.1% · 65th percentile
- 2026-10-24 13:42 UTCEchelonGraph re-scored
- 2026-10-24 13:42 UTCVendor advisory
- 2026-10-23 16:29 UTCEPSS rescoreEPSS 1.1% · 65th percentile
- 2026-10-22 16:31 UTCEPSS rescoreEPSS 1.1% · 65th percentile
- 2026-10-21 16:29 UTCEPSS rescoreEPSS 1.1% · 65th percentile
- 2026-10-20 16:30 UTCEPSS rescoreEPSS 1.1% · 64th percentile
- 2026-10-19 16:29 UTCEPSS rescoreEPSS 1.1% · 64th percentile
- 2026-10-18 16:29 UTCEPSS rescoreEPSS 1.1% · 64th percentile
- 2026-10-18 07:53 UTCEchelonGraph re-scored
- 2026-10-17 16:30 UTCEPSS rescoreEPSS 1.1% · 64th percentile
- 2026-10-16 16:36 UTCEPSS rescoreEPSS 1.1% · 64th percentile
- 2026-10-15 16:29 UTCEPSS rescoreEPSS 1.1% · 64th percentile
- 2026-10-14 16:30 UTCEPSS rescoreEPSS 1.1% · 64th percentile
- 2026-10-13 16:30 UTCEPSS rescoreEPSS 1.1% · 64th percentile
- 2026-10-13 03:54 UTCOSV refresh
- 2026-10-12 18:20 UTCEchelonGraph re-scored
- 2026-10-12 16:31 UTCEPSS rescoreEPSS 1.1% · 64th percentile
- 2026-10-11 21:46 UTCEchelonGraph re-scored
- 2026-10-11 13:45 UTCEPSS rescoreEPSS 1.1% · 64th percentile
- 2026-10-10 19:57 UTCEPSS rescoreEPSS 1.1% · 64th percentile
- 2026-10-09 20:05 UTCEPSS rescoreEPSS 1.1% · 64th percentile
- 2026-10-08 17:06 UTCEPSS rescoreEPSS 1.1% · 64th percentile
- 2026-10-07 23:46 UTCEPSS rescoreEPSS 1.1% · 64th percentile
- 2026-10-06 15:15 UTCEPSS rescoreEPSS 1.1% · 64th percentile
- 2026-10-05 17:41 UTCEPSS rescoreEPSS 1.1% · 64th percentile
- 2026-10-04 23:20 UTCEPSS rescoreEPSS 1.1% · 64th percentile
- 2026-10-03 14:23 UTCEPSS rescoreEPSS 1.1% · 64th percentile
- 2026-10-01 19:48 UTCEPSS rescoreEPSS 1.1% · 64th percentile
- 2026-09-30 16:29 UTCEchelonGraph re-scored
- 2026-09-30 15:01 UTCEPSS rescoreEPSS 1.1% · 64th percentile
- 2026-09-29 15:17 UTCEPSS rescoreEPSS 1.1% · 64th percentile
- 2026-09-28 13:49 UTCEPSS rescoreEPSS 1.1% · 64th percentile
- 2026-09-27 13:42 UTCEPSS rescoreEPSS 1.1% · 64th percentile
- 2026-09-26 15:56 UTCEPSS rescoreEPSS 1.1% · 64th percentile
- 2026-09-26 00:22 UTCEPSS rescoreEPSS 1.1% · 64th percentile
- 2026-09-24 14:01 UTCEPSS rescoreEPSS 1.1% · 63rd percentile
- 2026-09-23 13:46 UTCEPSS rescoreEPSS 1.1% · 64th percentile
- 2026-09-23 00:32 UTCOSV refresh
- 2026-09-20 20:14 UTCEPSS rescoreEPSS 1.1% · 63rd percentile
- 2026-09-18 19:25 UTCEPSS rescoreEPSS 1.1% · 63rd percentile
- 2026-09-17 19:25 UTCEPSS rescoreEPSS 1.1% · 63rd percentile
- 2026-09-16 14:06 UTCEPSS rescoreEPSS 1.1% · 63rd percentile
- 2026-09-16 05:11 UTCEPSS rescoreEPSS 1.1% · 63rd percentile
- 2026-09-13 16:44 UTCEPSS rescoreEPSS 1.1% · 63rd percentile
- 2026-09-12 14:58 UTCEPSS rescoreEPSS 1.1% · 63rd percentile
- 2026-09-11 14:50 UTCEPSS rescoreEPSS 1.1% · 63rd percentile
- 2026-09-11 09:34 UTCEPSS rescoreEPSS 1.1% · 63rd percentile
- 2026-09-08 21:58 UTCEPSS rescoreEPSS 1.1% · 63rd percentile
- 2026-09-07 15:59 UTCEPSS rescoreEPSS 1.1% · 63rd percentile
- 2026-09-06 13:45 UTCEPSS rescoreEPSS 1.1% · 63rd percentile
- 2026-09-05 15:26 UTCEPSS rescoreEPSS 1.1% · 62nd percentile
- 2026-09-04 13:58 UTCEPSS rescoreEPSS 1.1% · 63rd percentile
- 2026-09-04 05:04 UTCEPSS rescoreEPSS 1.1% · 63rd percentile
- 2026-09-03 19:29 UTCOSV refresh
- 2026-09-02 14:09 UTCEPSS rescoreEPSS 1.1% · 63rd percentile
- 2026-09-01 13:51 UTCEPSS rescoreEPSS 1.1% · 63rd percentile
- 2026-08-30 19:15 UTCEPSS rescoreEPSS 1.0% · 60th percentile
Related CVEs(same product + same vendor + same CWE)
Same product
10 shownAlpine:v3.23:py3-gitpython · Debian:10:python-git · Alpine:v3.24:py3-gitpython
Same vendor
10 shownredhat:RHSA-2024:0322 · ubuntu:USN-8303-1 · redhat:RHSA-2024:1640
Same CWE
10 shownCWE-22
Frequently asked(5)
What is CVE-2023-41040?
When was the CVE record for CVE-2023-41040 published?
Is CVE-2023-41040 actively exploited?
What is the CVSS score of CVE-2023-41040?
How do I remediate CVE-2023-41040?
Dependency Blast Radius
See which npm, PyPI, Go, and Maven packages are affected by CVE-2023-41040
Is Your Infrastructure Affected by CVE-2023-41040?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.