{"id":"DHI-qdw4-si5k-pfog-dm5f","summary":"libgit2 is a portable C implementation of the Git core methods provided as a linkable library with a solid API…","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, 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.","modified":"2026-11-16T02:36:07.528317612Z","published":"2026-11-11T19:10:43Z","upstream":["CVE-2026-53587"],"references":[{"type":"ADVISORY","url":"https://scout.docker.com/v/DHI-qdw4-si5k-pfog-dm5f"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-53587"},{"type":"ADVISORY","url":"https://errata.almalinux.org/9/ALSA-2026-67285.html"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:67285"},{"type":"ADVISORY","url":"https://security.alpinelinux.org/vuln/CVE-2026-53587"},{"type":"ADVISORY","url":"https://alas.aws.amazon.com/AL2/ALAS-2026-3865.html"},{"type":"ADVISORY","url":"http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-53587"},{"type":"ADVISORY","url":"http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-53586"},{"type":"ADVISORY","url":"http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-53585"},{"type":"ADVISORY","url":"http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-53584"},{"type":"ADVISORY","url":"http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-53583"},{"type":"ADVISORY","url":"http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-50185"},{"type":"ADVISORY","url":"https://alas.aws.amazon.com/AL2023/ALAS-2026-2064.html"},{"type":"ADVISORY","url":"http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-66035"},{"type":"ADVISORY","url":"http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-66034"},{"type":"ADVISORY","url":"http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-66033"},{"type":"ADVISORY","url":"http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-66032"},{"type":"ADVISORY","url":"https://alas.aws.amazon.com/AL2023/ALAS-2026-2065.html"},{"type":"ADVISORY","url":"http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-45784"},{"type":"ADVISORY","url":"https://alas.aws.amazon.com/AL2023/ALAS-2026-2083.html"},{"type":"ADVISORY","url":"http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-5917"},{"type":"ADVISORY","url":"https://alas.aws.amazon.com/AL2023/ALAS-2026-3116.html"},{"type":"ADVISORY","url":"http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-15957"},{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2026-53587"},{"type":"ADVISORY","url":"https://linux.oracle.com/cve/ELSA-2026-67285-0.html"},{"type":"ADVISORY","url":"https://linux.oracle.com/errata/ELSA-2026-67285-0.html"},{"type":"ADVISORY","url":"https://linux.oracle.com/cve/ELSA-2026-67286-0.html"},{"type":"ADVISORY","url":"https://linux.oracle.com/errata/ELSA-2026-67286-0.html"},{"type":"ADVISORY","url":"https://errata.rockylinux.org/RLSA-2026:67285"},{"type":"ADVISORY","url":"https://errata.rockylinux.org/RLSA-2026:67286"},{"type":"ADVISORY","url":"https://ubuntu.com/security/CVE-2026-53587"},{"type":"ADVISORY","url":"https://github.com/libgit2/libgit2/security/advisories/GHSA-pm24-4jhq-3xvm"},{"type":"ADVISORY","url":"http://people.ubuntu.com/~ubuntu-security/cve/CVE-2026-53587"}],"affected":[{"package":{"name":"libgit2","ecosystem":"Docker Hardened Images:Alpine:3.24","purl":"pkg:apk/dhi/libgit2"},"versions":["1.9.4-r0","1.9.4-r1","1.9.6-r0","1.9.7-r0"],"database_specific":{"owner_kind":"HSP","source":"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-qdw4-si5k-pfog-dm5f.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"}]}