{"id":"CVE-2023-22490","aliases":["CVE-2023-22490"],"related":[],"kind":"vulnerability","state":"published","title":"Git vulnerable to local clone-based data exfiltration with non-local transports","summary":"Git is a revision control system. Using a specially-crafted repository, Git prior to versions 2.39.2, 2.38.4, 2.37.6, 2.36.5, 2.35.7, 2.34.7, 2.33.7, 2.32.6, 2.31.7, and 2.30.8 can be tricked into using its local clone optimization even when using a non-local transport. Though Git will abort local clones whose source `$GIT_DIR/objects` directory contains symbolic links, the `objects` directory itself may still be a symbolic link. These two may be combined to include arbitrary files based on known paths on the victim's filesystem within the malicious repository's working copy, allowing for data exfiltration in a similar manner as CVE-2022-39253.\n\nA fix has been prepared and will appear in v2.39.2 v2.38.4 v2.37.6 v2.36.5 v2.35.7 v2.34.7 v2.33.7 v2.32.6, v2.31.7 and v2.30.8. If upgrading is impractical, two short-term workarounds are available. Avoid cloning repositories from untrusted sources with `--recurse-submodules`. Instead, consider cloning repositories without recursively cloning their submodules, and instead run `git submodule update` at each layer. Before doing so, inspect each new `.gitmodules` file to ensure that it does not contain suspicious module URLs.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Git is a revision control system. Using a specially-crafted repository, Git prior to versions 2.39.2, 2.38.4, 2.37.6, 2.36.5, 2.35.7, 2.34.7, 2.33.7, 2.32.6, 2.31.7, and 2.30.8 can be tricked into using its local clone optimization even when using a non-local transport. Though Git will abort local clones whose source `$GIT_DIR/objects` directory contains symbolic links, the `objects` directory itself may still be a symbolic link. These two may be combined to include arbitrary files based on known paths on the victim's filesystem within the malicious repository's working copy, allowing for data exfiltration in a similar manner as CVE-2022-39253.\n\nA fix has been prepared and will appear in v2.39.2 v2.38.4 v2.37.6 v2.36.5 v2.35.7 v2.34.7 v2.33.7 v2.32.6, v2.31.7 and v2.30.8. If upgrading is impractical, two short-term workarounds are available. Avoid cloning repositories from untrusted sources with `--recurse-submodules`. Instead, consider cloning repositories without recursively cloning their submodules, and instead run `git submodule update` at each layer. Before doing so, inspect each new `.gitmodules` file to ensure that it does not contain suspicious module URLs.","source":"cvelist"}],"published":"2023-02-14T19:47:56.863Z","modified":"2026-10-08T22:17:22.817Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","score":5.5,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-59"],"affected":[{"ranges":[{"version":">= 2.39.0, < 2.39.2","status":"affected"},{"version":">= 2.38.0, < 2.38.4","status":"affected"},{"version":">= 2.37.0, < 2.37.6","status":"affected"},{"version":">= 2.36.0, < 2.36.5","status":"affected"},{"version":">= 2.35.0, < 2.35.7","status":"affected"},{"version":">= 2.34.0, < 2.34.7","status":"affected"},{"version":">= 2.33.0, < 2.33.7","status":"affected"},{"version":">= 2.32.0, < 2.32.6","status":"affected"},{"version":">= 2.31.0, < 2.31.7","status":"affected"},{"version":"< 2.30.8","status":"affected"}],"vendor":"git","product":"git","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"2.30.8"},{"status":"affected","introduced":"2.31.0","fixed":"2.31.7"},{"status":"affected","introduced":"2.32.0","fixed":"2.32.6"},{"status":"affected","introduced":"2.33.0","fixed":"2.33.7"},{"status":"affected","introduced":"2.34.0","fixed":"2.34.7"},{"status":"affected","introduced":"2.35.0","fixed":"2.35.7"},{"status":"affected","introduced":"2.36.0","fixed":"2.36.5"},{"status":"affected","introduced":"2.37.0","fixed":"2.37.6"},{"status":"affected","introduced":"2.38.0","fixed":"2.38.4"},{"status":"affected","introduced":"2.39.0","fixed":"2.39.2"}],"vendor":"git-scm","product":"git","cpe":"cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/git/git/security/advisories/GHSA-gw92-x3fm-3g3q","tags":["vendor-advisory","x-refsource-confirm","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://github.com/git/git/security/advisories/GHSA-3wp6-j8xr-qw85","tags":["vendor-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://github.com/git/git/commit/c867e4fa180bec4750e9b54eb10f459030dbebfd","tags":["patch","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://security.gentoo.org/glsa/202312-15","tags":["x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-10-08T21:12:31.095Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-22490","url":"https://www.cve.org/CVERecord?id=CVE-2023-22490","licence":"CVE Terms of Use","modified":"2026-10-08T21:14:06.502Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-22490","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-22490","licence":"Public domain","modified":"2026-10-08T22:17:22.817Z"}],"updatedAt":"2026-11-25T22:58:22.016Z","epss":{"score":0.00711,"percentile":0.54776,"date":"2026-12-01T12:00:22.000Z"}}