# CVE-2026-50024: GitHacker: Path traversal in ref/hash parsing enables existence oracle and hex-fragment exfiltration via a malicious .git server

- Severity: Medium 5.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.44%, higher than 40% of CVEs (2026-12-01)
- Published: 2026-09-09T18:00:32.000Z
- Modified: 2026-09-30T17:51:56.193Z
- Also known as: GHSA-hr3m-4qwq-3mgc, PYSEC-2026-3835
- Weaknesses: CWE-22, CWE-23
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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 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.

(As written by CVE List.)

## Affected

- WangYihang GitHacker: < 1.1.8
- githacker (PyPI): before 1.1.8

## Every score

- GitHub_M: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- PyPA Advisory Database: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`

## References

- <https://github.com/WangYihang/GitHacker/security/advisories/GHSA-hr3m-4qwq-3mgc> (web)
- <https://github.com/WangYihang/GitHacker/pull/65>
- <https://github.com/WangYihang/GitHacker/commit/16fcd81a9c3dfdf39713fde360d4e8bc3acf99e7>
- <https://github.com/WangYihang/GitHacker/commit/5f2a8ba4d451c6a1a465893507fbc42535a9d8c8>
- <https://github.com/WangYihang/GitHacker/commit/5f2a8ba> (web)
- <https://github.com/WangYihang/GitHacker> (package)
- <https://pypi.org/project/githacker> (package)
- <https://github.com/advisories/GHSA-hr3m-4qwq-3mgc> (advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-50024> (advisory)

## Sources

- CVE List: [CVE-2026-50024](https://www.cve.org/CVERecord?id=CVE-2026-50024), CVE Terms of Use, modified 2026-09-16
- GitHub Advisory Database: [GHSA-hr3m-4qwq-3mgc](https://github.com/advisories/GHSA-hr3m-4qwq-3mgc), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-50024](https://nvd.nist.gov/vuln/detail/CVE-2026-50024), Public domain, modified 2026-09-30
- PyPA Advisory Database: [PYSEC-2026-3835](https://osv.dev/vulnerability/PYSEC-2026-3835), CC-BY-4.0, modified 2026-09-10

---

Page: https://cve.day/CVE-2026-50024 · Whole record: https://cve.day/CVE-2026-50024.json · Rebuilt by cve.day 2026-11-25T22:59:38.551Z
