CVE-2024-50349: low-severity vulnerability in git
Git does not sanitize URLs when asking for credentials interactively
Published · Updated
E-mail alert when it lands in KEV, gets a public PoC or its score goes up.
No sign of exploitation. No public exploitation artifact known so far.
Git displays unsanitized URLs when prompting for credentials interactively, allowing attackers to use ANSI escape sequences to deceive users into entering passwords for fake hosting sites. This can trick users into revealing credentials to untrusted systems.
When Git requests credentials via terminal prompt without a credential helper, decoded URL-encoded characters and ANSI escape sequences are printed verbatim, enabling attackers to craft malicious URLs that manipulate terminal output to impersonate trusted hosting sites. The attack requires user interaction with untrusted repository URLs and relies on terminal interpretation of escape sequences to succeed.
In the same product, most dangerous first.