Friday, 16 October 2026
1 agent hack today▼ 7 vs yesterday (8)

GitPython arbitrary code execution via repository shadowing

GitPython 3.1.59 misidentifies the git directory when opening or cloning repositories, allowing attackers to execute arbitrary code via malicious tracked files like hooks/pre-commit. This affects services that process untrusted repositories including CI runners, code scanners, and AI agents.

Disclosed 30 September 2026 · Record updated 1 October 2026

Impact

Arbitrary code execution when victim opens or clones attacker's repository and calls index.commit(); also allows reading files outside repository via config manipulation

Our coverage

Sources

  1. github.comhttps://github.com/advisories/GHSA-239g-whfq-7xj9