Advisory

DEBIAN-CVE-2023-22742

Also known as: CVE-2023-22742

Summary

The record has no summary.

Details

libgit2 is a cross-platform, linkable library implementation of Git. When using an SSH remote with the optional libssh2 backend, libgit2 does not perform certificate checking by default. Prior versions of libgit2 require the caller to set the certificate_check field of libgit2's git_remote_callbacks structure - if a certificate check callback is not set, libgit2 does not perform any certificate checking. This means that by default - without configuring a certificate check callback, clients will not perform validation on the server SSH keys and may be subject to a man-in-the-middle attack. Users are encouraged to upgrade to v1.4.5 or v1.5.1. Users unable to upgrade should ensure that all relevant certificates are manually checked.

Severity

Medium Basis: CVSS v3 score 5.9, vector CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N

Dates

Published
2023-01-20 23:15 UTC
Modified
2026-10-26 18:00 UTC

Affected packages and fixes

libgit2

Debian packages (deb) · Debian 12

Affected

  • introduced 0, fixed 1.5.1+ds-1 (ecosystem)

Fixed versions

1.5.1+ds-1

Fix

  • Fixed version 1.5.1+ds-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) · Debian 13

Affected

  • introduced 0, fixed 1.5.1+ds-1 (ecosystem)

Fixed versions

1.5.1+ds-1

Fix

  • Fixed version 1.5.1+ds-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) · Debian 14

Affected

  • introduced 0, fixed 1.5.1+ds-1 (ecosystem)

Fixed versions

1.5.1+ds-1

Fix

  • Fixed version 1.5.1+ds-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: Debian Security Tracker (converted by OSV.dev)

Debian Security Tracker, converted to OSV by OSV.dev.

Sources & licences