Advisory

USN-6678-1

Also known as: CVE-2020-12278, CVE-2020-12279, CVE-2023-22742, CVE-2024-24575, CVE-2024-24577

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)

Severity

Not rated by the source.

Dates

Published
2024-03-05 18:46 UTC
Modified
2026-06-25 13:32 UTC

Affected packages and fixes

libgit2

Debian packages (deb) · Ubuntu 20.04

Affected

  • introduced 0, fixed 0.28.4+dfsg.1-2ubuntu0.1 (ecosystem)

Fixed versions

0.28.4+dfsg.1-2ubuntu0.1

Fix

  • Fixed version 0.28.4+dfsg.1-2ubuntu0.1
    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.

libgit2

Debian packages (deb) · Ubuntu 22.04

Affected

  • introduced 0, fixed 1.1.0+dfsg.1-4.1ubuntu0.1 (ecosystem)

Fixed versions

1.1.0+dfsg.1-4.1ubuntu0.1

Fix

  • Fixed version 1.1.0+dfsg.1-4.1ubuntu0.1
    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