UBUNTU-CVE-2026-53586

Source
https://ubuntu.com/security/CVE-2026-53586
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-53586.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2026-53586
Upstream
Downstream
Related
Published
2026-07-31T00:00:00Z
Modified
2026-09-02T19:35:54Z
Severity
  • 6.5 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N CVSS Calculator
  • Ubuntu - medium
Summary
[none]
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.

References

Affected packages

Ubuntu:Pro:20.04:LTS / libgit2

Package

Name
libgit2
Purl
pkg:deb/ubuntu/libgit2?arch=source&distro=esm-apps%2Ffocal

Affected ranges

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

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

Ecosystem specific

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

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-53586.json"

Ubuntu:Pro:22.04:LTS / libgit2

Package

Name
libgit2
Purl
pkg:deb/ubuntu/libgit2?arch=source&distro=esm-apps%2Fjammy

Affected ranges

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

Affected versions

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

Ecosystem specific

{
    "availability": "Available with Ubuntu Pro: https://ubuntu.com/pro",
    "binaries": [
        {
            "binary_name": "libgit2-1.1",
            "binary_version": "1.1.0+dfsg.1-4.1ubuntu0.1+esm1"
        },
        {
            "binary_name": "libgit2-fixtures",
            "binary_version": "1.1.0+dfsg.1-4.1ubuntu0.1+esm1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-53586.json"

Ubuntu:24.04:LTS / libgit2

Package

Name
libgit2
Purl
pkg:deb/ubuntu/libgit2?arch=source&distro=noble

Affected ranges

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

Affected versions

1.*
1.5.1+ds-1ubuntu1
1.7.1+ds-2ubuntu1
1.7.2+ds-1ubuntu1
1.7.2+ds-1ubuntu2
1.7.2+ds-1ubuntu3

Ecosystem specific

{
    "availability": "No subscription required",
    "binaries": [
        {
            "binary_name": "libgit2-1.7",
            "binary_version": "1.7.2+ds-1ubuntu3.1"
        },
        {
            "binary_name": "libgit2-fixtures",
            "binary_version": "1.7.2+ds-1ubuntu3.1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-53586.json"

Ubuntu:26.04:LTS / libgit2

Package

Name
libgit2
Purl
pkg:deb/ubuntu/libgit2?arch=source&distro=resolute

Affected ranges

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

Affected versions

1.*
1.9.0+ds-2ubuntu2
1.9.1+ds-1ubuntu1

Ecosystem specific

{
    "availability": "No subscription required",
    "binaries": [
        {
            "binary_name": "libgit2-1.9",
            "binary_version": "1.9.1+ds-1ubuntu1.1"
        },
        {
            "binary_name": "libgit2-fixtures",
            "binary_version": "1.9.1+ds-1ubuntu1.1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-53586.json"