CVE-2024-32020 Race condition in git

Low 3.9 Published Updated

An untrusted user can modify objects in a cloned Git repository by exploiting hardlinking during local clones, compromising data integrity.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2024-32020?

CVE-2024-32020 is a low-severity vulnerability in Fedoraproject Fedora, published on 14 May 2024. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

Git is a revision control system. Prior to versions 2.45.1, 2.44.1, 2.43.4, 2.42.2, 2.41.1, 2.40.2, and 2.39.4, local clones may end up hardlinking files into the target repository's object database when source and target repository reside on the same disk. If the source repository is owned by a different user, then those hardlinked files may be rewritten at any point in time by the untrusted user. Cloning local repositories will cause Git to either copy or hardlink files of the source repository into the target repository. This significantly speeds up such local clones compared to doing a "proper" clone and saves both disk space and compute time. When cloning a repository located on the same disk that is owned by a different user than the current user we also end up creating such hardlinks. These files will continue to be owned and controlled by the potentially-untrusted user and can be rewritten by them at will in the future. The problem has been patched in versions 2.45.1, 2.44.1, 2.43.4, 2.42.2, 2.41.1, 2.40.2, and 2.39.4.

Weakness: CWE-281

Which versions are affected by CVE-2024-32020?

1 open source package ship an affected version, including git. It affects 2 products.

PackageAffectedFixed in
git BitnamiAll versions2.39.4, 2.40.2, 2.41.1, 2.42.2, 2.43.4, 2.44.1, 2.45.1

Products include Fedoraproject Fedora, Git-Scm Git.

How do I fix CVE-2024-32020?

Upgrade git to a fixed version for your release line: 2.39.4, 2.40.2, 2.41.1 or 2.42.2.

Is CVE-2024-32020 being exploited?

There is no known exploitation of CVE-2024-32020 in the wild and no public exploit code.

All Fedoraproject Fedora vulnerabilities

Sources

Also known as ALPINE-CVE-2024-32020, AZL-42037, AZL-43033, BELL-CVE-2024-32020, BIT-git-2024-32020, CLEANSTART-2026-MV02449 and 7 more.

Is CVE-2024-32020 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free