OS Command Injection Affecting git-daemon package, versions <0:2.47.3-1.amzn2.0.1


Severity

Recommended
high

Based on Amazon Linux security rating.

Threat Intelligence

EPSS
0.02% (5th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about OS Command Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-AMZN2-GITDAEMON-11343268
  • published31 Jul 2025
  • disclosed10 Jul 2025

Introduced: 10 Jul 2025

NewCVE-2025-27614  (opens in a new tab)
CWE-78  (opens in a new tab)

How to fix?

Upgrade Amazon-Linux:2 git-daemon to version 0:2.47.3-1.amzn2.0.1 or higher.
This issue was patched in ALAS2-2025-2941.

NVD Description

Note: Versions mentioned in the description apply only to the upstream git-daemon package and not the git-daemon package as distributed by Amazon-Linux. See How to fix? for Amazon-Linux:2 relevant fixed versions and status.

Gitk is a Tcl/Tk based Git history browser. Starting with 2.41.0, a Git repository can be crafted in such a way that with some social engineering a user who has cloned the repository can be tricked into running any script (e.g., Bourne shell, Perl, Python, ...) supplied by the attacker by invoking gitk filename, where filename has a particular structure. The script is run with the privileges of the user. This vulnerability is fixed in 2.43.7, 2.44.4, 2.45.4, 2.46.4, 2.47.3, 2.48.2, 2.49.1, and 2.50.

CVSS Base Scores

version 3.1