CVE Catalog

GHSA-jm78-9fvv-mhgr

High
Published: —Translated: NVD NIST

Summary

GitPython's config-name validator only neutralizes CR/LF/NUL for the "option" label; it does not reject =, #, ;, [, ], or whitespace in an option name. write_section writes the option name verbatim into the config file, so an option name such as sshCommand = touch <cmd> can inject configuration.

Risk Assessment

This may allow an attacker to inject arbitrary Git configuration options, including commands executed by Git, risking code execution.

Recommendation

Update GitPython to a patched version and avoid writing untrusted option names into Git configuration.

Other vulnerabilities in GitPython

See all
Original NVD description (English source)

## Summary GitPython's config-name validator only neutralizes CR/LF/NUL for the `"option"` label; it does not reject `=`, `#`, `;`, `[`, `]`, or whitespace in an **option name**. `write_section` writes the option name verbatim into the config file, so an option name such as `sshCommand = touch <cmd>

Vulnerability data from NVD (NIST) · CISA KEV · EPSS