Advisory

UBUNTU-CVE-2022-39253

Also known as: CVE-2022-39253

Summary

The record has no summary.

Details

Git is an open source, scalable, distributed revision control system. Versions prior to 2.30.6, 2.31.5, 2.32.4, 2.33.5, 2.34.5, 2.35.5, 2.36.3, and 2.37.4 are subject to exposure of sensitive information to a malicious actor. When performing a local clone (where the source and target of the clone are on the same volume), Git copies the contents of the source's $GIT_DIR/objects directory into the destination by either creating hardlinks to the source contents, or copying them (if hardlinks are disabled via --no-hardlinks). A malicious actor could convince a victim to clone a repository with a symbolic link pointing at sensitive information on the victim's machine. This can be done either by having the victim clone a malicious repository on the same machine, or having them clone a malicious repository embedded as a bare repository via a submodule from any source, provided they clone with the --recurse-submodules option. Git does not create symbolic links in the $GIT_DIR/objects directory. The problem has been patched in the versions published on 2022-10-18, and backported to v2.30.x. Potential workarounds: Avoid cloning untrusted repositories using the --local optimization when on a shared machine, either by passing the --no-local option to git clone or cloning from a URL that uses the file:// scheme. Alternatively, avoid cloning repositories from untrusted sources with --recurse-submodules or run git config --global protocol.file.allow user.

Severity

Medium Basis: CVSS v3 score 5.5, vector CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N

Dates

Published
2022-10-18 17:00 UTC
Modified
2026-02-04 03:19 UTC

Affected packages and fixes

git

Debian packages (deb) · Ubuntu 18.04

Affected

  • introduced 0, fixed 1:2.17.1-1ubuntu0.13 (ecosystem)

Fixed versions

1:2.17.1-1ubuntu0.13

Fix

  • Fixed version 1:2.17.1-1ubuntu0.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 20.04

Affected

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

Fixed versions

1:2.25.1-1ubuntu3.6

Fix

  • Fixed version 1:2.25.1-1ubuntu3.6
    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.5 (ecosystem)

Fixed versions

1:2.34.1-1ubuntu1.5

Fix

  • Fixed version 1:2.34.1-1ubuntu1.5
    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