{"id":"CVE-2023-22490","published":"2023-02-14T19:47:56Z","modified":"2026-10-08T21:14:06Z","title":"Git vulnerable to local clone-based data exfiltration with non-local transports","vendor":"git","product":"git","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0071,"percentile":0.54441,"provenance":"source"},"cwes":[{"id":"CWE-59","name":"Improper Link Resolution Before File Access"}],"references":[{"url":"https://github.com/git/git/security/advisories/GHSA-gw92-x3fm-3g3q","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/git/git/security/advisories/GHSA-3wp6-j8xr-qw85","tags":["x_refsource_MISC"]},{"url":"https://github.com/git/git/commit/c867e4fa180bec4750e9b54eb10f459030dbebfd","tags":["x_refsource_MISC"]},{"url":"https://security.gentoo.org/glsa/202312-15","tags":[]}],"priority":{"score":14.7,"factors":[{"name":"EPSS percentile","points":10.89},{"name":"CVSS severity","points":3.85}]},"vendorSlug":"git","affectedVersions":[{"vendor":"git","product":"git","versions":[">= 2.39.0, < 2.39.2",">= 2.38.0, < 2.38.4",">= 2.37.0, < 2.37.6",">= 2.36.0, < 2.36.5",">= 2.35.0, < 2.35.7",">= 2.34.0, < 2.34.7",">= 2.33.0, < 2.33.7",">= 2.32.0, < 2.32.6",">= 2.31.0, < 2.31.7","< 2.30.8"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-10-08T21:12:31.095732Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2023-26634","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-git-cve-2023-22490","children":[{"from":"CVE-2023-22490","to":"CVE-2023-25652","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["apply.c","t/t4115-apply-symlink.sh"],"commits":["https://github.com/git/git/commit/c867e4fa180bec4750e9b54eb10f459030dbebfd","https://github.com/git/git/commit/18e2b1cfc80990719275d7b08e6e50f3e8cbc902","https://github.com/git/git/commit/668f2d53613ac8fd373926ebe219f2c29112d93e"],"basis":"shared function","functions":["apply_state"]}]},{"from":"CVE-2023-22490","to":"CVE-2024-32020","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["builtin/clone.c"],"commits":["https://github.com/git/git/commit/c867e4fa180bec4750e9b54eb10f459030dbebfd","https://github.com/git/git/commit/1204e1a824c34071019fe106348eaa6d88f9528d","https://github.com/git/git/commit/9e65df5eab274bf74c7b570107aacd1303a1e703"],"basis":"rarely changed file"}]}]}}