{"id":"CVE-2026-50024","published":"2026-09-15T15:01:55Z","modified":"2026-09-16T15:48:33Z","title":"GitHacker: Path traversal in ref/hash parsing enables existence oracle and hex-fragment exfiltration via a malicious…","vendor":"WangYihang","product":"GitHacker","tier":"tail","description":{"text":"GitHacker is a tool that restores Git repositories from exposed .git directories. In 1.1.7 and earlier, add_head_file_tasks parses an attacker-controlled ref path from .git/HEAD and joins unvalidated path segments onto temp_dst/.git/logs/, allowing a malicious server to make GitHacker read an arbitrary local file when a victim runs the tool against the server's URL. add_hashes_parsed then scans the file for 40-character hexadecimal substrings and requests each match through .git/objects using the first two characters and remaining characters as path components, creating an attacker-observable existence oracle and disclosing matching hexadecimal fragments. Complete file contents are not returned, and the add_folder and add_task write path in shipped version 1.1.7 does not permit an escape. This issue is fixed in repository version 1.1.9.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00451,"percentile":0.31146,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"},{"id":"CWE-23","name":"Relative Path Traversal"}],"references":[{"url":"https://github.com/WangYihang/GitHacker/security/advisories/GHSA-hr3m-4qwq-3mgc","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/WangYihang/GitHacker/pull/65","tags":["x_refsource_MISC"]},{"url":"https://github.com/WangYihang/GitHacker/commit/16fcd81a9c3dfdf39713fde360d4e8bc3acf99e7","tags":["x_refsource_MISC"]},{"url":"https://github.com/WangYihang/GitHacker/commit/5f2a8ba4d451c6a1a465893507fbc42535a9d8c8","tags":["x_refsource_MISC"]}],"priority":{"score":9.9,"factors":[{"name":"EPSS percentile","points":6.23},{"name":"CVSS severity","points":3.71}]},"vendorSlug":"wangyihang","affectedVersions":[{"vendor":"WangYihang","product":"GitHacker","versions":["< 1.1.8"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-09-16T15:48:04.770569Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"githacker","vulnerableRanges":["<1.1.8"],"patched":["1.1.8"],"from":["GHSA-hr3m-4qwq-3mgc","PYSEC-2026-3835"],"provenance":"source"}],"summary":{"text":"GitHacker, a tool that restores Git repositories from exposed .git directories, contains a path traversal flaw in its ref and hash parsing for version 1.1.7 and earlier, where attacker-controlled ref paths from .git/HEAD are joined without validation. An attacker who operates a malicious server can exploit this, without authentication, by getting a victim to run GitHacker against that server's URL, causing it to read an arbitrary local file and reveal whether 40-character hexadecimal fragments in that file match objects on the server, though complete file contents are not returned.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:56:41Z"},"euvd":{"id":"EUVD-2026-78777","exploited":false,"provenance":"source"}}