{"id":"CVE-2026-53584","published":"2026-08-20T18:35:10Z","modified":"2026-08-20T19:48:17Z","title":"libgit2: Submodule path traversal","vendor":"libgit2","product":"libgit2","tier":"tail","description":{"text":"libgit2 is a portable C implementation of the Git core methods provided as a linkable library with a solid API, allowing to build Git functionality into your application. Prior to 1.8.6 and 1.9.5, libgit2 does not reject traversal components in a submodule path loaded from .gitmodules. The affected src/libgit2/submodule.c paths include git_submodule_lookup and git_submodule_add_setup. A crafted repository can specify a path such as ../escape-target, and applications that initialize the submodule can create directories outside the repository working tree. This issue is fixed in versions 1.8.6 and 1.9.5.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00328,"percentile":0.26566,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/libgit2/libgit2/security/advisories/GHSA-cw77-j82w-mchm","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/libgit2/libgit2/commit/419637d3587396f5d139d6d88480eab3cd81e7a1","tags":["x_refsource_MISC"]},{"url":"https://github.com/libgit2/libgit2/commit/467c2d95ed663df722f83a5960edf568514b128c","tags":["x_refsource_MISC"]},{"url":"https://github.com/libgit2/libgit2/commit/ec7371da9f359cd8293e9108e7a0b1c1b61b67c4","tags":["x_refsource_MISC"]},{"url":"https://github.com/libgit2/libgit2/releases/tag/v1.8.6","tags":["x_refsource_MISC"]},{"url":"https://github.com/libgit2/libgit2/releases/tag/v1.9.5","tags":["x_refsource_MISC"]}],"priority":{"score":8.3,"factors":[{"name":"EPSS percentile","points":5.31},{"name":"CVSS severity","points":3.01}]},"vendorSlug":"libgit2","affectedVersions":[{"vendor":"libgit2","product":"libgit2","versions":["< 1.8.6",">= 1.9.0, < 1.9.5"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-08-20T19:48:09.838175Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-63546","exploited":false,"provenance":"source"}}