2 matches found
The vulnerabilities of the IndexFile.from_tree, IndexFile.reset, and IndexFile.merge_tree methods in the Python library for interacting with git repositories, GitPython, allow a malicious actor to rewrite any files they choose.
The vulnerabilities of the IndexFile.fromtree, IndexFile.reset, and IndexFile.mergetree methods in the GitPython library for interacting with git repositories involve the exploitation of arguments within these functions. Exploiting these vulnerabilities can allow an attacker to rewrite any files ...
GHSA-4GMW-GG2M-W46P GitPython: Unguarded git read-tree option forwarding in IndexFile.from_tree/reset/merge_tree enables arbitrary file overwrite
Summary IndexFile.fromtree, IndexFile.reset → fromtree and IndexFile.mergetree append caller-influenced treeish strings positionally to git read-tree with no unsafe-option guard, no allowunsafeoptions parameter, and no -- separator. git read-tree --index-output= writes the resulting index to an...