Approved changes feed: RSS · Atom

cpe:2.3:a:libgit2:libgit2:*:*:*:*:*:*:*:*

part: a version: * update: *

VendorLibgit2 (33800321-b82b-5f60-aaf0-613829b435ca)
ProductLibgit2 (18faf34b-84b8-594b-8546-73186781df69)
Edition*
Language*
Software edition*
Target software*
Target hardware*
Other*

Notes

Imported from purl2cpe mapping

PURL mappings

PURLSourceLast updated
pkg:bitbucket/cleveron/libgit2 purl2cpe 2026-06-01 10:17:54.300994
pkg:deb/debian/libgit2 purl2cpe 2026-06-01 10:17:54.300996
pkg:deb/ubuntu/libgit2 purl2cpe 2026-06-01 10:17:54.300997
pkg:github/libgit2/libgit2 purl2cpe 2026-06-01 10:17:54.300998
pkg:gitlab/cleveron/libgit2 purl2cpe 2026-06-01 10:17:54.301000
pkg:gitlab/gitlab-org/libgit2 purl2cpe 2026-06-01 10:17:54.301001
pkg:gitlab/redhat/libgit2 purl2cpe 2026-06-01 10:17:54.301003
pkg:rpm/centos/libgit2 purl2cpe 2026-06-01 10:17:54.301004
pkg:rpm/fedora/libgit2 purl2cpe 2026-06-01 10:17:54.301006
pkg:rpm/opensuse/libgit2 purl2cpe 2026-06-01 10:17:54.301007
pkg:sourceforge/libgit2.mirror purl2cpe 2026-06-01 10:17:54.301009

Vulnerability references

IdentifiercpeApplicabilitySubmitteddb.gcve.eu detailsRationale
CVE:CVE-2026-5917 vulnerable 2026-09-16 04:33:52.409179 libgit2 Shell Command Injection via ssh_libssh2 Backend
HIGH (8.8)
libgit2 versions before 1.8.7 and 1.9.0 before 1.9.7 built with the libssh2 SSH backend (USE_SSH=libssh2) contain a shell command injection vulnerability that allows remote attackers to execute arbitrary commands on an SSH server by supplying a repository path containing unescaped shell metacharacters such as single quotes, semicolons, or pipes. The gen_proto() function in ssh_libssh2.c inserts the repository path directly into a shell command string without escaping special characters before passing it to libssh2_channel_exec(), enabling an attacker to craft a malicious submodule URL in a .gitmodules file that, when processed during a recursive clone, causes the remote server's shell to interpret injected commands under the victim's SSH user account.
Published: 2026-08-11T21:40:29.078Z
Updated: 2026-10-01T15:20:07.878Z
Reference links
Imported from gcve-enriched-dumps CVE data
CVE:CVE-2024-24577 vulnerable 2026-06-08 06:29:41.509898 libgit2 is vulnerable to arbitrary code execution due to heap corruption in `git_index_add`
HIGH (8.6)
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. Using well-crafted inputs to `git_index_add` can cause heap corruption that could be leveraged for arbitrary code execution. There is an issue in the `has_dir_name` function in `src/libgit2/index.c`, which frees an entry that should not be freed. The freed entry is later used and overwritten with potentially bad actor-controlled data leading to controlled heap corruption. Depending on the application that uses libgit2, this could lead to arbitrary code execution. This issue has been patched in version 1.6.5 and 1.7.2.
Published: 2024-02-06T21:36:12.517Z
Updated: 2025-05-15T19:43:35.897Z
Reference links
Imported from gcve-enriched-dumps CVE data
CVE:CVE-2024-24575 vulnerable 2026-06-08 06:29:41.507343 libgit2 is vulnerable to a denial of service attack in `git_revparse_single`
HIGH (7.5)
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. Using well-crafted inputs to `git_revparse_single` can cause the function to enter an infinite loop, potentially causing a Denial of Service attack in the calling application. The revparse function in `src/libgit2/revparse.c` uses a loop to parse the user-provided spec string. There is an edge-case during parsing that allows a bad actor to force the loop conditions to access arbitrary memory. Potentially, this could also leak memory if the extracted rev spec is reflected back to the attacker. As such, libgit2 versions before 1.4.0 are not affected. Users should upgrade to version 1.6.5 or 1.7.2.
Published: 2024-02-06T21:27:57.328Z
Updated: 2025-02-13T17:40:13.105Z
Reference links
Imported from gcve-enriched-dumps CVE data
CVE:CVE-2023-22742 vulnerable 2026-06-08 05:54:26.998013 libgit2 fails to verify SSH keys by default
MEDIUM (5.3)
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.
Published: 2023-01-20T22:49:06.378Z
Updated: 2025-03-10T21:21:08.962Z
Reference links
Imported from gcve-enriched-dumps CVE data
CVE:CVE-2020-12279 vulnerable 2026-06-08 05:17:56.822146 Details available
An issue was discovered in libgit2 before 0.28.4 and 0.9x before 0.99.0. checkout.c mishandles equivalent filenames that exist because of NTFS short names. This may allow remote code execution when cloning a repository. This issue is similar to CVE-2019-1353.
Published: 2020-04-27T00:00:00.000Z
Updated: 2024-08-04T11:48:58.767Z
Reference links
Imported from gcve-enriched-dumps CVE data
CVE:CVE-2020-12278 vulnerable 2026-06-08 05:17:56.821380 db.gcve.eu details were skipped to keep the page responsive. Imported from gcve-enriched-dumps CVE data
CVE:CVE-2018-8099 vulnerable 2026-06-08 05:12:05.201860 db.gcve.eu details were skipped to keep the page responsive. Imported from gcve-enriched-dumps CVE data
CVE:CVE-2018-8098 vulnerable 2026-06-08 05:12:05.201188 db.gcve.eu details were skipped to keep the page responsive. Imported from gcve-enriched-dumps CVE data
CVE:CVE-2018-15501 vulnerable 2026-06-08 05:10:54.568186 db.gcve.eu details were skipped to keep the page responsive. Imported from gcve-enriched-dumps CVE data
CVE:CVE-2018-10888 vulnerable 2026-06-08 05:10:37.301124 db.gcve.eu details were skipped to keep the page responsive. Imported from gcve-enriched-dumps CVE data
CVE:CVE-2018-10887 vulnerable 2026-06-08 05:10:37.300519 db.gcve.eu details were skipped to keep the page responsive. Imported from gcve-enriched-dumps CVE data
CVE:CVE-2014-9390 vulnerable 2026-06-08 05:06:11.588170 db.gcve.eu details were skipped to keep the page responsive. Imported from gcve-enriched-dumps CVE data

Contribute

You can submit an edit proposal for this CPE entry or suggest a related product/vendor addition using the action button above.

Inspect record JSON

Open JSON directly

Open this panel to browse, search, copy or download the JSON record.