CVE-2025-48385
Git alllows arbitrary file writes via bundle-uri parameter injection
Reported by github_m · Published July 8, 2025
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| git | Amazon Linux | 2.50.1-1.amzn2023.0.1 |
| git-instaweb | Amazon Linux | 2.47.3-1.amzn2.0.1 |
| perl-Git | Amazon Linux | 2.50.1-1.amzn2023.0.1, 2.47.3-1.amzn2.0.1 |
| gitk | Amazon Linux | 2.47.3-1.amzn2.0.1 |
| git-credential-libsecret | Amazon Linux | 2.50.1-1.amzn2023.0.1, 2.47.3-1.amzn2.0.1 |
| gitweb | Amazon Linux | 2.50.1-1.amzn2023.0.1 |
| perl-Git-SVN | Amazon Linux | 2.50.1-1.amzn2023.0.1, 2.47.3-1.amzn2.0.1 |
| git-email | Amazon Linux | 2.47.3-1.amzn2.0.1 |
| git-p4 | Amazon Linux | 2.50.1-1.amzn2023.0.1, 2.47.3-1.amzn2.0.1 |
| git-daemon | Amazon Linux | 2.50.1-1.amzn2023.0.1 |
| git-core | Amazon Linux | 2.50.1-1.amzn2023.0.1 |
| git | Alpine | 2.50.1-r0, 2.49.1-r0, 2.47.3-r0, 2.45.4-r0, 2.43.7-r0 |
1 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| git | git | < 2.43.7, >= 2.44.0-rc0, < 2.44.4, >= 2.45.0-rc0, < 2.45.4 |
| amazon:2023 | git | 0 |
| amazon:2 | git-instaweb | 0 |
| amazon:2 | perl-Git | 0 |
| amazon:2 | gitk | 0 |
| amazon:2 | git-credential-libsecret | 0 |
| amazon:2023 | gitweb | 0 |
| amazon:2023 | perl-Git-SVN | 0 |
| amazon:2 | perl-Git-SVN | 0 |
| amazon:2 | git-email | 0 |
| amazon:2023 | git-p4 | 0 |
| amazon:2 | git-p4 | 0 |
| amazon:2023 | git-daemon | 0 |
| amazon:2023 | git-core | 0 |
| alpine | git | 0, 0, 0 |
| amazon:2023 | git-credential-libsecret | 0 |
| amazon:2023 | perl-Git | 0 |
| amazon:2 | git-subtree | 0 |
| amazon:2023 | git-cvs | 0 |
| amazon:2 | git-cvs | 0 |
…and 17 more
Timeline
- Jul 8, 2025 PoC Published (5 in total, the first dated here)
- Jul 8, 2025 CVE Published
- Jul 9, 2025 EPSS Score (30 in total, the first dated here)
- Nov 4, 2025 CVE Updated
- Mar 17, 2026 Security Advisory (54 in total, the first dated here)
- Jun 6, 2026 Coalition ESS Score
- Oct 23, 2026 Distribution Patch (27 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-48385
vulnetix vdb fixes CVE-2025-48385
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-48385/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart