GitPython's Repo.archive() method uses an incomplete denylist for unsafe git archive options, omitting --add-file and --add-virtual-file. These options allow an attacker to read arbitrary files from the filesystem or inject attacker-controlled content into archives created by the method. This vulnerability enables arbitrary file read at the privileges of the running process but does not allow code execution. The issue affects GitPython versions from 2.9.2 up to but not including 4.1.0, with a fix available in version 4.1.0.