{"answers":{"affected":"3 open source packages ship an affected version, including githacker.","exploited":"There is no known exploitation of CVE-2026-50024 in the wild and no public exploit code.","fix":"Upgrade githacker to 1.1.8 or later.","what":"CVE-2026-50024 is a medium-severity path traversal vulnerability in WangYihang GitHacker, published on 15 Sep 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-50024 and fix it if it is affected.\n\nWhat it is: CVE-2026-50024 is a medium-severity path traversal vulnerability in WangYihang GitHacker, published on 15 Sep 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-50024 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- githacker (PyPI): affected all versions; fixed in 1.1.8\n- githacker (PyPI): affected all versions; fixed in 1.1.8\n- githacker (PyPI): affected all versions; fixed in 1.1.8\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-50024/ (Markdown: https://insights.sbomify.com/CVE-2026-50024/index.md)","id":"CVE-2026-50024","markdown":"https://insights.sbomify.com/CVE-2026-50024/index.md","name":"CVE-2026-50024","record":{"aliases":["GHSA-hr3m-4qwq-3mgc","PYSEC-2026-3835"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"Git recovery tool","requires_auth":"none","summary":"A malicious Git server can exploit path traversal in GitHacker to read local files and leak hexadecimal fragments via an existence oracle.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":5.3,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-23","name":"Relative Path Traversal"},{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"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.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"GitHacker: Path traversal in ref/hash parsing enables existence oracle and hex-fragment exfiltration via malicious .git server","id":"CVE-2026-50024","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"path_traversal","year":"2026"},"n_packages":3,"n_references":4,"next":{"headline":"Mousehole: Unauthenticated HTTP/WebSocket boundary exposes and mutates MAM cookie state","id":"CVE-2026-50025"},"packages":[{"ecosystem":"PyPI","fixed":["1.1.8"],"introduced":["0"],"last_affected":[],"package":"githacker","purl":null,"source":"GHSA-hr3m-4qwq-3mgc"},{"ecosystem":"PyPI","fixed":["1.1.8"],"introduced":["0"],"last_affected":[],"package":"githacker","purl":"pkg:pypi/githacker","source":"GHSA-hr3m-4qwq-3mgc"},{"ecosystem":"PyPI","fixed":["1.1.8"],"introduced":["0"],"last_affected":[],"package":"githacker","purl":"pkg:pypi/githacker","source":"PYSEC-2026-3835"}],"prev":{"headline":"yt-dlp: Dangerous file type creation via insufficient filename sanitization (Bypass of CVE-2024-38519)","id":"CVE-2026-50023"},"products":["GitHacker"],"published":"2026-09-15","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-09-16","vendors":["WangYihang"]},"summary":"A malicious Git server can exploit path traversal in GitHacker to read local files and leak hexadecimal fragments via an existence oracle.","url":"https://insights.sbomify.com/CVE-2026-50024/"}