{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-50024","id":"CVE-2026-50024","title":"GitHacker: Path traversal in ref/hash parsing enables existence oracle and hex-fragment exfiltration via a malicious .git server","description":"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 th","descriptionLong":"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.","published":"2026-09-15T15:01:55.365Z","updated":"2026-10-28T02:30:36.093418469Z","reserved":"2026-06-02T22:46:02.580Z","status":"Deferred","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","rating":"medium","source":"GitHub_M"},"metrics":[{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","rating":"medium","source":"GitHub_M"},{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","rating":"medium","source":"github.com"},{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","rating":"medium","source":"OSV"},{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","rating":"medium","source":"GitHub"}],"rating":"medium","products":["WangYihang GitHacker"],"affectedProducts":[{"vendor":"WangYihang","product":"GitHacker","defaultStatus":null,"versions":[{"version":"< 1.1.8","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"PyPI","name":"githacker","purl":"pkg:pypi/githacker","ranges":["<1.1.8"],"fixed":["1.1.8"],"advisory":"GHSA-hr3m-4qwq-3mgc"}],"cwes":["CWE-22","CWE-23"],"aliases":["GHSA-hr3m-4qwq-3mgc","PYSEC-2026-3835"],"references":[{"url":"https://github.com/WangYihang/GitHacker/security/advisories/GHSA-hr3m-4qwq-3mgc","tags":["x_refsource_CONFIRM","advisory","web"]},{"url":"https://github.com/WangYihang/GitHacker/pull/65","tags":["x_refsource_MISC","fix"]},{"url":"https://github.com/WangYihang/GitHacker/commit/16fcd81a9c3dfdf39713fde360d4e8bc3acf99e7","tags":["x_refsource_MISC","fix"]},{"url":"https://github.com/WangYihang/GitHacker/commit/5f2a8ba4d451c6a1a465893507fbc42535a9d8c8","tags":["x_refsource_MISC","fix"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/50xxx/CVE-2026-50024.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-50024","tags":["advisory"]},{"url":"https://github.com/WangYihang/GitHacker/commit/5f2a8ba","tags":["web"]},{"url":"https://github.com/WangYihang/GitHacker","tags":["package"]},{"url":"https://pypi.org/project/githacker","tags":["package"]},{"url":"https://github.com/advisories/GHSA-hr3m-4qwq-3mgc","tags":["advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial"},"epss":0.00451,"epssPercentile":0.39956,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-50024","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-50024","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-50024","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-hr3m-4qwq-3mgc","ok":true,"note":"GHSA-hr3m-4qwq-3mgc"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-50024","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}