{"id":"CVE-2026-53587","aliases":["CVE-2026-53587"],"related":[],"kind":"vulnerability","state":"published","title":"libgit2 - Unauthenticated network-reachable heap out-of-bounds read in transports/smart_pkt.c:set_data","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"libgit2 es una implementación portátil en C de los métodos centrales de Git proporcionada como una biblioteca enlazable con una API sólida, que permite integrar la funcionalidad de Git en su aplicación. Antes de las versiones 1.8.6 y 1.9.5, libgit2 realiza un strncmp de tamaño fijo en set_data en src/libgit2/transports/smart_pkt.c sin verificar primero que el búfer de capacidad pkt-line del protocolo inteligente contenga 14 bytes. Un servidor Git malicioso puede hacer que los bytes después de la pkt-line completen object-format=, haciendo que format_str avance más allá de la pkt-line y que el cálculo de longitud de memchr subsiguiente sufra un desbordamiento negativo. El recorrido resultante de la memoria dinámica (heap) fuera de límites puede bloquear a un cliente durante el primer paquete de anuncio de referencias a través de HTTP, HTTPS, SSH o el protocolo Git. Este problema está solucionado en las versiones 1.8.6 y 1.9.5.","source":"nvd"}],"published":"2026-08-20T18:36:43.055Z","modified":"2026-10-26T10:10:00.140Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"}],"cwes":["CWE-20","CWE-125","CWE-126","CWE-1284"],"affected":[{"ranges":[{"version":"< 1.8.6","status":"affected"},{"version":">= 1.9.0, < 1.9.5","status":"affected"}],"vendor":"libgit2","product":"libgit2","source":"cvelist"}],"references":[{"url":"https://github.com/libgit2/libgit2/security/advisories/GHSA-pm24-4jhq-3xvm","tags":["exploit","x-refsource-confirm"],"sources":["cvelist","nvd"]},{"url":"https://github.com/libgit2/libgit2/commit/2c0ce8c0132ac38ab0db28239462a671e2e5440e","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/libgit2/libgit2/commit/affda60c10fcef16723451c0d7dc71b71dc20ad3","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/libgit2/libgit2/commit/d7a9fb87f504434e9f45228678953c4fa56e7640","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/libgit2/libgit2/releases/tag/v1.8.6","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/libgit2/libgit2/releases/tag/v1.9.5","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2026-08-20T19:18:28.320Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-53587","url":"https://www.cve.org/CVERecord?id=CVE-2026-53587","licence":"CVE Terms of Use","modified":"2026-08-20T19:18:33.821Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-53587","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-53587","licence":"Public domain","modified":"2026-10-26T10:10:00.140Z"}],"updatedAt":"2026-11-25T22:59:34.690Z","epss":{"score":0.00684,"percentile":0.47801,"date":"2026-11-30T12:00:22.000Z"}}