USN-6326-1: GitPython vulnerability

Publication date

31 August 2023

Overview

GitPython could be made to run arbitrary commands on the host.


Packages

  • python-git - Python library to interact with Git repositories

Details

It was discovered that GitPython did not block insecure options from user
inputs in the clone command. An attacker could possibly use this issue to
execute arbitrary commands on the host.

It was discovered that GitPython did not block insecure options from user
inputs in the clone command. An attacker could possibly use this issue to
execute arbitrary commands on the host.

Update instructions

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

Learn more about how to get the fixes.

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

Ubuntu Release Package Version
23.04 lunar python3-git –  3.1.30-1ubuntu0.23.04.1
22.04 jammy python3-git –  3.1.24-1ubuntu0.1~esm2  
20.04 focal python3-git –  3.0.7-1ubuntu0.1~esm2  
18.04 bionic python-git –  2.1.8-1ubuntu0.1~esm2  
python3-git –  2.1.8-1ubuntu0.1~esm2  
16.04 xenial python-git –  1.0.1+git137-gc8b8379-2.1ubuntu0.1~esm2  
python3-git –  1.0.1+git137-gc8b8379-2.1ubuntu0.1~esm2  
14.04 trusty python-git –  0.3.2~RC1-3ubuntu0.1~esm2  

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.


Have additional questions?

Talk to a member of the team ›