PT-2023-20513 · Unknown · Git-Commit-Info
Feng Xiao
·
Publicado
2023-06-28
·
Atualizado
2023-07-06
·
CVE-2023-26134
CVSS v3.1
9.8
Crítica
| Vetor | AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Name of the Vulnerable Software and Affected Versions
git-commit-info versions prior to 2.0.2
Description
The issue arises from the
gitCommitInfo() method failing to sanitize its commit parameter, which later flows into a sensitive command execution API. This allows attackers to inject malicious commands once they control the hash content, potentially leading to command injection attacks. The vulnerability enables attackers to inject arguments to the git binary.Recommendations
For versions prior to 2.0.2, update to version 2.0.2 or later to resolve the issue. As a temporary workaround, consider restricting the use of the
gitCommitInfo() function until a patch is available. Avoid using the commit parameter in sensitive command execution APIs until the issue is resolved.Exploit
Correção
OS Command Injection
Command Injection
Encontrou algum problema na descrição? Tem algo a acrescentar? Fique à vontade para nos escrever 👾
Identificadores relacionados
Produtos afetados
Git-Commit-Info