USN-6678-1

Source
https://ubuntu.com/security/notices/USN-6678-1
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-6678-1.json
JSON Data
https://api.osv.dev/v1/vulns/USN-6678-1
Related
Published
2024-03-05T18:46:35.357865Z
Modified
2024-03-05T18:46:35.357865Z
Summary
libgit2 vulnerabilities
Details

It was discovered that libgit2 mishandled equivalent filenames on NTFS partitions. If a user or automated system were tricked into cloning a specially crafted repository, an attacker could possibly use this issue to execute arbitrary code. This issue only affected Ubuntu 16.04 LTS and Ubuntu 18.04 LTS. (CVE-2020-12278, CVE-2020-12279)

It was discovered that libgit2 did not perform certificate checking by default. An attacker could possibly use this issue to perform a machine-in-the-middle attack. This issue only affected Ubuntu 16.04 LTS, Ubuntu 18.04 LTS, Ubuntu 20.04 LTS, and Ubuntu 22.04 LTS. (CVE-2023-22742)

It was discovered that libgit2 could be made to run into an infinite loop. An attacker could possibly use this issue to cause a denial of service. This issue only affected Ubuntu 23.10. (CVE-2024-24575)

It was discovered that libgit2 did not properly manage memory. An attacker could possibly use this issue to cause a denial of service or execute arbitrary code. (CVE-2024-24577)

References

Affected packages

Ubuntu:Pro:16.04:LTS / libgit2

Package

Name
libgit2
Purl
pkg:deb/ubuntu/libgit2?arch=src?distro=esm-apps/xenial

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.24.1-2ubuntu0.2+esm2

Affected versions

0.*

0.22.2-2
0.23.1-1
0.24.1-2
0.24.1-2ubuntu0.2
0.24.1-2ubuntu0.2+esm1

Ecosystem specific

{
    "availability": "Available with Ubuntu Pro: https://ubuntu.com/pro",
    "binaries": [
        {
            "binary_version": "0.24.1-2ubuntu0.2+esm2",
            "binary_name": "libgit2-24"
        },
        {
            "binary_version": "0.24.1-2ubuntu0.2+esm2",
            "binary_name": "libgit2-24-dbgsym"
        },
        {
            "binary_version": "0.24.1-2ubuntu0.2+esm2",
            "binary_name": "libgit2-dev"
        }
    ]
}

Ubuntu:Pro:18.04:LTS / libgit2

Package

Name
libgit2
Purl
pkg:deb/ubuntu/libgit2?arch=src?distro=esm-apps/bionic

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.26.0+dfsg.1-1.1ubuntu0.2+esm1

Affected versions

0.*

0.25.1+really0.24.6-1
0.26.0+dfsg.1-1.1
0.26.0+dfsg.1-1.1build1
0.26.0+dfsg.1-1.1ubuntu0.2

Ecosystem specific

{
    "availability": "Available with Ubuntu Pro: https://ubuntu.com/pro",
    "binaries": [
        {
            "binary_version": "0.26.0+dfsg.1-1.1ubuntu0.2+esm1",
            "binary_name": "libgit2-26"
        },
        {
            "binary_version": "0.26.0+dfsg.1-1.1ubuntu0.2+esm1",
            "binary_name": "libgit2-26-dbgsym"
        },
        {
            "binary_version": "0.26.0+dfsg.1-1.1ubuntu0.2+esm1",
            "binary_name": "libgit2-dev"
        }
    ]
}

Ubuntu:20.04:LTS / libgit2

Package

Name
libgit2
Purl
pkg:deb/ubuntu/libgit2?arch=src?distro=focal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.28.4+dfsg.1-2ubuntu0.1

Affected versions

0.*

0.27.7+dfsg.1-0.2build1
0.28.3+dfsg.1-1
0.28.3+dfsg.1-1ubuntu1
0.28.4+dfsg.1-2

Ecosystem specific

{
    "availability": "No subscription required",
    "binaries": [
        {
            "binary_version": "0.28.4+dfsg.1-2ubuntu0.1",
            "binary_name": "libgit2-28"
        },
        {
            "binary_version": "0.28.4+dfsg.1-2ubuntu0.1",
            "binary_name": "libgit2-28-dbgsym"
        },
        {
            "binary_version": "0.28.4+dfsg.1-2ubuntu0.1",
            "binary_name": "libgit2-dev"
        }
    ]
}

Ubuntu:22.04:LTS / libgit2

Package

Name
libgit2
Purl
pkg:deb/ubuntu/libgit2?arch=src?distro=jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.1.0+dfsg.1-4.1ubuntu0.1

Affected versions

1.*

1.1.0+dfsg.1-4
1.1.0+dfsg.1-4.1
1.1.0+dfsg.1-4.1build1

Ecosystem specific

{
    "availability": "No subscription required",
    "binaries": [
        {
            "binary_version": "1.1.0+dfsg.1-4.1ubuntu0.1",
            "binary_name": "libgit2-1.1"
        },
        {
            "binary_version": "1.1.0+dfsg.1-4.1ubuntu0.1",
            "binary_name": "libgit2-1.1-dbgsym"
        },
        {
            "binary_version": "1.1.0+dfsg.1-4.1ubuntu0.1",
            "binary_name": "libgit2-dev"
        },
        {
            "binary_version": "1.1.0+dfsg.1-4.1ubuntu0.1",
            "binary_name": "libgit2-fixtures"
        }
    ]
}

Ubuntu:23.10 / libgit2

Package

Name
libgit2
Purl
pkg:deb/ubuntu/libgit2?arch=src?distro=mantic

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.5.1+ds-1ubuntu1.1

Affected versions

1.*

1.5.1+ds-1ubuntu1

Ecosystem specific

{
    "availability": "No subscription required",
    "binaries": [
        {
            "binary_version": "1.5.1+ds-1ubuntu1.1",
            "binary_name": "libgit2-1.5"
        },
        {
            "binary_version": "1.5.1+ds-1ubuntu1.1",
            "binary_name": "libgit2-1.5-dbgsym"
        },
        {
            "binary_version": "1.5.1+ds-1ubuntu1.1",
            "binary_name": "libgit2-dev"
        },
        {
            "binary_version": "1.5.1+ds-1ubuntu1.1",
            "binary_name": "libgit2-fixtures"
        }
    ]
}