USN-8809-1: libgit2 vulnerability

Publication date

23 September 2026

Overview

libgit2 could be made to run programs as your login if it received specially crafted network traffic.


Packages

  • libgit2 - Portable C implementation of the Git core methods library

Details

Kazuma Matsumoto and Isabel Mill discovered that libgit2 incorrectly
handled certain repository URLs when using the SSH transport. A remote
attacker could possibly use this issue to execute arbitrary commands.

Kazuma Matsumoto and Isabel Mill discovered that libgit2 incorrectly
handled certain repository URLs when using the SSH transport. A remote
attacker could possibly use this issue to execute arbitrary commands.

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
26.04 LTS resolute libgit2-1.9 –  1.9.1+ds-1ubuntu1.2
libgit2-dev –  1.9.1+ds-1ubuntu1.2
libgit2-fixtures –  1.9.1+ds-1ubuntu1.2
24.04 LTS noble libgit2-1.7 –  1.7.2+ds-1ubuntu3.2
libgit2-dev –  1.7.2+ds-1ubuntu3.2
libgit2-fixtures –  1.7.2+ds-1ubuntu3.2
22.04 LTS jammy libgit2-1.1 –  1.1.0+dfsg.1-4.1ubuntu0.1+esm2  
libgit2-dev –  1.1.0+dfsg.1-4.1ubuntu0.1+esm2  
libgit2-fixtures –  1.1.0+dfsg.1-4.1ubuntu0.1+esm2  
20.04 LTS focal libgit2-28 –  0.28.4+dfsg.1-2ubuntu0.1+esm2  
libgit2-dev –  0.28.4+dfsg.1-2ubuntu0.1+esm2  
18.04 LTS bionic libgit2-26 –  0.26.0+dfsg.1-1.1ubuntu0.2+esm3  
libgit2-dev –  0.26.0+dfsg.1-1.1ubuntu0.2+esm3  
16.04 LTS xenial libgit2-24 –  0.24.1-2ubuntu0.2+esm4
libgit2-dev –  0.24.1-2ubuntu0.2+esm4

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 ›