Vulnerabilidad · Publicado 13/08/2026
GitPython versiones anteriores a 3.1.55 no desactiva correctamente la expansión de variables de entorno en los métodos Remote.create() y Submodule.add(), permitiendo a atacantes inyectar referencias de variables en URLs que se expanden en .git/config y .gitmodules. Durante operaciones de fetch o pull, estas variables se transmiten a servidores controlados por atacantes, comprometiendo tokens de acceso, credenciales de APIs y secretos almacenados en variables de entorno. Afecta desarrolladores y sistemas CI/CD que procesan repositorios no confiables.
GitPython before 3.1.55 fails to disable environment variable expansion in Remote.create() and Submodule.add() URL handling, allowing attackers to exfiltrate secrets by supplying URLs containing variable references. Attackers can craft URLs with environment variable tokens that are expanded into .git/config and .gitmodules, then transmitted to attacker-controlled hosts during fetch or pull operations.
Score: 7.5/10 — Severidad: HIGH — Estado NIST: Received
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
CWE-200
Publicado en NIST NVD.