Description
There are packages installed that are affected by multiple vulnerabilities referenced in the following CVEs:
- 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,
verify_server_cert in src/libgit2/streams/openssl.c uses an inverted !!memcmp result in the GEN_IPADD
branch when comparing an IP-literal host with a certificate IP SubjectAltName. OpenSSL builds reject
matching IP addresses and accept mismatched IP addresses, allowing a network attacker with a CA-trusted
certificate containing any IP SubjectAltName to intercept libgit2 connections to IP-literal HTTPS URLs.
DNS SubjectAltName validation and non-OpenSSL TLS backends are not affected. This issue is fixed in
versions 1.8.6 and 1.9.5. (CVE-2026-53583)
- 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, libgit2 does not
reject traversal components in a submodule path loaded from .gitmodules. The affected
src/libgit2/submodule.c paths include git_submodule_lookup and git_submodule_add_setup. A crafted
repository can specify a path such as ../escape-target, and applications that initialize the submodule can
create directories outside the repository working tree. This issue is fixed in versions 1.8.6 and 1.9.5.
(CVE-2026-53584)
- 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, git_delta_apply
in src/libgit2/delta.c trusts the attacker-controlled res_sz value parsed by hdr_sz from a delta object
header and passes that amount to git__malloc before validating delta instructions. Malicious pack data
supplied through git_clone, git_fetch, git_remote_fetch, git_indexer_append, or a local attacker-supplied
repository can use a very small multi-level OFS_DELTA chain to retain extremely large allocations and
exhaust memory. This issue is fixed in versions 1.8.6 and 1.9.5. (CVE-2026-53585)
- 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. (CVE-2026-53586)
- 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, libgit2 performs
a fixed-size strncmp in set_data in src/libgit2/transports/smart_pkt.c without first verifying that the
smart-protocol pkt-line capability buffer contains 14 bytes. A malicious Git server can make bytes after
the pkt-line complete object-format=, causing format_str to advance beyond the pkt-line and the following
memchr length calculation to underflow. The resulting heap out-of-bounds walk can crash a client during
the first refs-advertisement packet over HTTP, HTTPS, SSH, or the Git protocol. This issue is fixed in
versions 1.8.6 and 1.9.5. (CVE-2026-53587)
Solution
Update the libgit2 library and its related packages to version 1.9.6-r0 or later.
Plugin Details
Supported Sensors: Agentless Assessment
Risk Information
Vector: CVSS2#AV:N/AC:L/Au:N/C:C/I:N/A:N
Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C
Vulnerability Information
Exploit Ease: No known exploits are available
Vulnerability Publication Date: 7/23/2026