Advisory

UBUNTU-CVE-2026-53586

Also known as: CVE-2026-53586

Summary

The record has no summary.

Details

libgit2 is a portable C implementation of the Git core methods provided as a linkable library with a solid API, allowing to build Git functionality into your application. Prior to 1.8.6 and 1.9.5, the built-in HTTP transport in src/libgit2/transports/http.c follows an offsite initial redirect, and handle_remote_auth and handle_auth pass transport->owner->url instead of transport->server.url to the credential callback when the redirected host returns 401 Unauthorized. A callback that scopes credentials to the original trusted URL can therefore return GIT_CREDENTIAL_USERPASS_PLAINTEXT credentials that libgit2 stores in transport->server.cred and sends as an Authorization header to the redirected host. An attacker who controls a trusted Git host or an open redirect on that host can disclose HTTP Basic credentials, personal access tokens, or equivalent credentials. This issue is fixed in versions 1.8.6 and 1.9.5.

Severity

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

Dates

Published
2026-07-31 00:00 UTC
Modified
2026-09-02 19:35 UTC

Affected packages and fixes

libgit2

Debian packages (deb) · Ubuntu 24.04

Affected

  • introduced 0, fixed 1.7.2+ds-1ubuntu3.1 (ecosystem)

Fixed versions

1.7.2+ds-1ubuntu3.1

Fix

  • Fixed version 1.7.2+ds-1ubuntu3.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 26.04

Affected

  • introduced 0, fixed 1.9.1+ds-1ubuntu1.1 (ecosystem)

Fixed versions

1.9.1+ds-1ubuntu1.1

Fix

  • Fixed version 1.9.1+ds-1ubuntu1.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