Summary
Package updates are available for Amazon Linux 2 that fix the following vulnerabilities: CVE-2025-48385: Git is a fast, scalable, distributed revision control system with an unusually rich command set that provides both high-level operations and full access to internals. When cloning a repository Git knows to optionally fetch a bundle advertised by the remote server, which allows the server-side to offload parts of the clone to a CDN. The Git client does not perform sufficient validation of the advertised bundles, which allows the remote side to perform protocol injection. This protocol injection can cause the client to write the fetched bundle to a location controlled by the adversary. The fetched content is fully controlled by the server, which can in the worst case lead to arbitrary code execution. The use of bundle URIs is not enabled by default and can be controlled by the bundle.heuristic config option. Some cases of the vulnerability require that the adversary is in control of where a repository will be cloned to. This either requires social engineering or a recursive clone with submodules. These cases can thus be avoided by disabling recursive clones. This vulnerability is fixed in v2.43.7, v2.44.4, v2.45.4, v2.46.4, v2.47.3, v2.48.2, v2.49.1, and v2.50.1. CVE-2025-48384: Git is a fast, scalable, distributed revision control system with an unusually rich command set that provides both high-level operations and full access to internals. When reading a config value, Git strips any trailing carriage return and line feed (CRLF). When writing a config entry, values with a trailing CR are not quoted, causing the CR to be lost when the config is later read. When initializing a submodule, if the submodule path contains a trailing CR, the altered path is read resulting in the submodule being checked out to an incorrect location. If a symlink exists that points the altered path to the submodule hooks directory, and the submodule contains an executable post-checkout hook, the script may be unintentionally executed after checkout. This vulnerability is fixed in v2.43.7, v2.44.4, v2.45.4, v2.46.4, v2.47.3, v2.48.2, v2.49.1, and v2.50.1. CVE-2025-46835: When a user clones an untrusted repository and is tricked into editing a file located in a maliciously named directory in the repository, then Git GUI can create and overwrite any writable file. CVE-2025-27614: A Git repository can be crafted in such a way that a user who has cloned the repository can be tricked into running any script supplied by the attacker by invoking `gitk filename`, where `filename` has a particular structure. CVE-2025-27613: When a user clones an untrusted repository and runs Gitk without additional command arguments, any writable file can be created and truncated. The option "Support per-file encoding" must have been enabled. The operation "Show origin of this line" is affected as well, regardless of the option being enabled or not.
Fixed packages 18
| Release | Package | Fixed in |
|---|---|---|
| Amazon Linux · 2 | git | 0:2.47.3-1.amzn2.0.1 |
| Amazon Linux · 2 | git-all | 0:2.47.3-1.amzn2.0.1 |
| Amazon Linux · 2 | git-core | 0:2.47.3-1.amzn2.0.1 |
| Amazon Linux · 2 | git-core-doc | 0:2.47.3-1.amzn2.0.1 |
| Amazon Linux · 2 | git-credential-libsecret | 0:2.47.3-1.amzn2.0.1 |
| Amazon Linux · 2 | git-cvs | 0:2.47.3-1.amzn2.0.1 |
| Amazon Linux · 2 | git-daemon | 0:2.47.3-1.amzn2.0.1 |
| Amazon Linux · 2 | git-debuginfo | 0:2.47.3-1.amzn2.0.1 |
| Amazon Linux · 2 | git-email | 0:2.47.3-1.amzn2.0.1 |
| Amazon Linux · 2 | git-gui | 0:2.47.3-1.amzn2.0.1 |
| Amazon Linux · 2 | git-instaweb | 0:2.47.3-1.amzn2.0.1 |
| Amazon Linux · 2 | git-p4 | 0:2.47.3-1.amzn2.0.1 |
| Amazon Linux · 2 | git-subtree | 0:2.47.3-1.amzn2.0.1 |
| Amazon Linux · 2 | git-svn | 0:2.47.3-1.amzn2.0.1 |
| Amazon Linux · 2 | gitk | 0:2.47.3-1.amzn2.0.1 |
| Amazon Linux · 2 | gitweb | 0:2.47.3-1.amzn2.0.1 |
| Amazon Linux · 2 | perl-Git | 0:2.47.3-1.amzn2.0.1 |
| Amazon Linux · 2 | perl-Git-SVN | 0:2.47.3-1.amzn2.0.1 |
Vulnerabilities 5
-
High 8.1
Git allows arbitrary code execution through broken config quoting
Git is a fast, scalable, distributed revision control system with an unusually rich command set that provides both high-level operations and full access to internals. When reading a config value, Git strips any trailing carriage return and line feed (CRLF). W…
KEV Aug 25, 2025 -
High 8.6
Gitk allows arbitrary command execution
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, ..…
-
High 8.6
Git alllows arbitrary file writes via bundle-uri parameter injection
Git is a fast, scalable, distributed revision control system with an unusually rich command set that provides both high-level operations and full access to internals. When cloning a repository Git knows to optionally fetch a bundle advertised by the remote se…
-
High 8.5
Git GUI can create and overwrite files for which the user has write permission
Git GUI allows you to use the Git source control management tools via a GUI. When a user clones an untrusted repository and is tricked into editing a file located in a maliciously named directory in the repository, then Git GUI can create and overwrite files …
-
Low 3.6
Gitk can create and truncate files in the user's home directory
Gitk is a Tcl/Tk based Git history browser. Starting with 1.7.0, when a user clones an untrusted repository and runs gitk without additional command arguments, files for which the user has write permission can be created and truncated. The option Support per-…
References
-
web
https://alas.aws.amazon.com/cve/html/CVE-2025-27613.html
-
web
https://alas.aws.amazon.com/cve/html/CVE-2025-27614.html
-
web
https://alas.aws.amazon.com/cve/html/CVE-2025-46835.html
-
web
https://alas.aws.amazon.com/cve/html/CVE-2025-48384.html
-
web
https://alas.aws.amazon.com/cve/html/CVE-2025-48385.html