Advisory

UBUNTU-CVE-2024-32002

Also known as: CVE-2024-32002

Summary

The record has no summary.

Details

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, repositories with submodules can be crafted in a way that exploits a bug in Git whereby it can be fooled into writing files not into the submodule's worktree but into a .git/ directory. This allows writing a hook that will be executed while the clone operation is still running, giving the user no opportunity to inspect the code that is being executed. 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. If symbolic link support is disabled in Git (e.g. via git config --global core.symlinks false), the described attack won't work. As always, it is best to avoid cloning repositories from untrusted sources.

Severity

Critical Basis: CVSS v3 score 9, vector CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H

Dates

Published
2024-05-14 19:15 UTC
Modified
2026-02-04 03:44 UTC

Affected packages and fixes

git

Debian packages (deb) · Ubuntu 20.04

Affected

  • introduced 0, fixed 1:2.25.1-1ubuntu3.13 (ecosystem)

Fixed versions

1:2.25.1-1ubuntu3.13

Fix

  • Fixed version 1:2.25.1-1ubuntu3.13
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

git

Debian packages (deb) · Ubuntu 22.04

Affected

  • introduced 0, fixed 1:2.34.1-1ubuntu1.11 (ecosystem)

Fixed versions

1:2.34.1-1ubuntu1.11

Fix

  • Fixed version 1:2.34.1-1ubuntu1.11
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

git

Debian packages (deb) · Ubuntu 24.04

Affected

  • introduced 0, fixed 1:2.43.0-1ubuntu7.1 (ecosystem)

Fixed versions

1:2.43.0-1ubuntu7.1

Fix

  • Fixed version 1:2.43.0-1ubuntu7.1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Ubuntu Security Notices · CC BY-SA 4.0

Sources & licences