---
title: 'USN-5871-1: Git vulnerabilities | Ubuntu security notices'
description: Ubuntu is an open source software operating system that runs from the
  desktop, to the cloud, to all your internet connected things.
url: https://ubuntu.com/security/notices/USN-5871-1
---

1. [Ubuntu Security Notices](https://ubuntu.com/security/notices)
2. USN-5871-1

---

# USN-5871-1: Git vulnerabilities

Publication date

14 February 2023

Overview

Several security issues were fixed in Git.

Releases

[22.10](https://ubuntu.com/security/notices?release=kinetic)
[22.04 LTS](https://ubuntu.com/security/notices?release=jammy)
[20.04 LTS](https://ubuntu.com/security/notices?release=focal)
[18.04 LTS](https://ubuntu.com/security/notices?release=bionic)
[16.04 LTS](https://ubuntu.com/security/notices?release=xenial)

---

Open side navigation

## Packages

* [git](https://ubuntu.com/security/cves?package=git) - fast, scalable, distributed revision control system

## Details

It was discovered that Git incorrectly handled certain repositories.
An attacker could use this issue to make Git uses its local
clone optimization even when using a non-local transport.
([CVE-2023-22490](https://ubuntu.com/security/CVE-2023-22490))

Joern Schneeweisz discovered that Git incorrectly handled certain commands.
An attacker could possibly use this issue to overwrite a patch outside
the working tree. ([CVE-2023-23946](https://ubuntu.com/security/CVE-2023-23946))

## Update instructions

In general, a standard system update will make all the necessary changes.

[Learn more about how to get the fixes.](https://ubuntu.com/security/cves/about#security)

The problem can be corrected by updating your system to the following package versions:

| Ubuntu Release | Package Version |
| --- | --- |
| 22.10 kinetic | [git](https://launchpad.net/ubuntu/+source/git) –  [1:2.37.2-1ubuntu1.4](https://launchpad.net/ubuntu/+source/git/1:2.37.2-1ubuntu1.4) | | |
| 22.04 LTS jammy | [git](https://launchpad.net/ubuntu/+source/git) –  [1:2.34.1-1ubuntu1.8](https://launchpad.net/ubuntu/+source/git/1:2.34.1-1ubuntu1.8) | | |
| 20.04 LTS focal | [git](https://launchpad.net/ubuntu/+source/git) –  [1:2.25.1-1ubuntu3.10](https://launchpad.net/ubuntu/+source/git/1:2.25.1-1ubuntu3.10) | | |
| 18.04 LTS bionic | [git](https://launchpad.net/ubuntu/+source/git) –  [1:2.17.1-1ubuntu0.16](https://launchpad.net/ubuntu/+source/git/1:2.17.1-1ubuntu0.16) | | |
| 16.04 LTS xenial | [git](https://launchpad.net/ubuntu/+source/git) –  1:2.7.4-0ubuntu1.10+esm5   Ubuntu Pro | | |

---

### Reduce your security exposure

Ubuntu Pro provides ten-year security coverage to 25,000+ packages in Main and Universe repositories, and it is free for up to five machines.

[Get Ubuntu Pro](https://ubuntu.com/pro)

## References

* [CVE-2023-23946](https://ubuntu.com/security/CVE-2023-23946)
* [CVE-2023-22490](https://ubuntu.com/security/CVE-2023-22490)

## Related notices

* [USN-5871-2](https://ubuntu.com/security/notices/USN-5871-2)
