PT-2022-7286 · Git+2 · Git+2

Alessio Della Libera

·

Published

2022-04-13

·

Updated

2025-12-15

·

CVE-2022-25648

CVSS v3.1

9.8

Critical

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions git versions prior to 1.11.0
Description The issue is related to Command Injection via git argument injection. When calling the fetch(remote = 'origin', opts = {}) function, the remote parameter is passed to the git fetch subcommand in a way that additional flags can be set, which can be used to perform a command injection. This allows a remote attacker to execute arbitrary code.
Recommendations For git versions prior to 1.11.0, update to version 1.11.0 or later to resolve the issue. As a temporary workaround, consider restricting the use of the fetch function with remote parameters to minimize the risk of exploitation. Avoid using the remote parameter in the affected fetch function until the issue is resolved.

Exploit

Fix

Argument Injection

Weakness Enumeration

Related Identifiers

BDU:2024-02281
BIT-GIT-2022-25648
CVE-2022-25648
DLA-3303-1
DLA-4406-1
GHSA-69P6-WVMQ-27GG
MGASA-2022-0248
RHSA-2022:8506
RLSA-2022:8506
SNYK-RUBY-GIT-2421270

Affected Products

Debian
Rocky Linux
Git