{"id":"CVE-2018-15501","details":"In ng_pkt in transports/smart_pkt.c in libgit2 before 0.26.6 and 0.27.x before 0.27.4, a remote attacker can send a crafted smart-protocol \"ng\" packet that lacks a '\\0' byte to trigger an out-of-bounds read that leads to DoS.","modified":"2026-04-10T03:18:37.067984Z","published":"2018-08-18T02:29:01.713Z","related":["SUSE-SU-2018:2469-1","SUSE-SU-2018:3440-1"],"references":[{"type":"ADVISORY","url":"https://www.pro-linux.de/sicherheit/2/44650/denial-of-service-in-libgit2.html"},{"type":"ADVISORY","url":"https://github.com/libgit2/libgit2/releases/tag/v0.26.6"},{"type":"ADVISORY","url":"https://github.com/libgit2/libgit2/releases/tag/v0.27.4"},{"type":"ADVISORY","url":"https://lists.debian.org/debian-lts-announce/2018/08/msg00024.html"},{"type":"ADVISORY","url":"https://lists.debian.org/debian-lts-announce/2022/03/msg00031.html"},{"type":"FIX","url":"https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=9406"},{"type":"FIX","url":"https://bugzilla.suse.com/show_bug.cgi?id=1104641"},{"type":"FIX","url":"https://github.com/libgit2/libgit2/commit/1f9a8510e1d2f20ed7334eeeddb92c4dd8e7c649"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/libgit2/libgit2","events":[{"introduced":"0"},{"fixed":"e98d0a37c93574d2c6107bf7f31140b548c6a7bf"},{"introduced":"6311e886d8b5377c6037cd9937ccf66a71f3361d"},{"fixed":"8b89f362a34fcccdf1c6c5f3445895b71d9c6d56"},{"fixed":"1f9a8510e1d2f20ed7334eeeddb92c4dd8e7c649"}],"database_specific":{"versions":[{"introduced":"0"},{"fixed":"0.26.6"},{"introduced":"0.27.0"},{"fixed":"0.27.4"}]}}],"versions":["v0.1.0","v0.10.0","v0.11.0","v0.12.0","v0.13.0","v0.14.0","v0.15.0","v0.16.0","v0.17.0","v0.18.0","v0.2.0","v0.21.0","v0.22.0","v0.22.0-rc1","v0.22.0-rc2","v0.23.0","v0.23.0-rc1","v0.23.0-rc2","v0.24.0","v0.24.0-rc1","v0.26.0","v0.26.0-rc1","v0.26.0-rc2","v0.26.1","v0.26.2","v0.26.3","v0.26.4","v0.26.5","v0.27.0","v0.27.1","v0.27.2","v0.27.3","v0.3.0","v0.8.0"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2018-15501.json","unresolved_ranges":[{"events":[{"introduced":"0"},{"last_affected":"8.0"}]},{"events":[{"introduced":"0"},{"last_affected":"9.0"}]}],"vanir_signatures":[{"signature_type":"Function","id":"CVE-2018-15501-606741fe","digest":{"length":908,"function_hash":"138826696511010238732541932636188295741"},"deprecated":false,"target":{"file":"src/transports/smart_pkt.c","function":"ng_pkt"},"source":"https://github.com/libgit2/libgit2/commit/1f9a8510e1d2f20ed7334eeeddb92c4dd8e7c649","signature_version":"v1"},{"signature_type":"Line","id":"CVE-2018-15501-cee72982","digest":{"threshold":0.9,"line_hashes":["277944573312571448173291964358782886837","36280656565145144977492951188865350869","302331465101043077794962941694367824538","294618928152091666896038200414798230595","207907076655417259776009322911410236434","107580828438128948544648617943369281976","302059678418441467271694324972509664904","329815054368941535576649484587697607592","83354471640335339165381725665650886157","20275277051791725878689896175251433783"]},"deprecated":false,"target":{"file":"src/transports/smart_pkt.c"},"source":"https://github.com/libgit2/libgit2/commit/1f9a8510e1d2f20ed7334eeeddb92c4dd8e7c649","signature_version":"v1"}],"vanir_signatures_modified":"2026-04-10T03:18:37Z"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"}]}