GitPython versions before 4.1.0 have an incomplete denylist for unsafe git revision options in the blame and blame_incremental methods. This allows an attacker controlling the revision argument to use the --contents or -S options to read arbitrary local files, as these options are not blocked by the denylist. The file contents are returned in the blame output at the privileges of the host process. A fix is available in version 4.1.0.