{"answers":{"affected":"","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-53587 exists.","fix":"Upgrade to a fixed version.","what":"CVE-2026-53587 is a high-severity memory corruption vulnerability in libgit2, published on 20 Aug 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-53587 and fix it if it is affected.\n\nWhat it is: CVE-2026-53587 is a high-severity memory corruption vulnerability in libgit2, published on 20 Aug 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-53587 exists.\n\nAffected product: libgit2. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-53587/ (Markdown: https://insights.sbomify.com/CVE-2026-53587/index.md)","id":"CVE-2026-53587","markdown":"https://insights.sbomify.com/CVE-2026-53587/index.md","name":"CVE-2026-53587","record":{"aliases":["ALSA-2026:67285","ALSA-2026:67286","AZL-96968","BELL-CVE-2026-53587","CLSA-2026-1790157025","DEBIAN-CVE-2026-53587","ECHO-3904-34e5-511a","GHSA-pm24-4jhq-3xvm","JLSEC-2026-1373","MINI-6vjf-m6jr-h569","RHSA-2026:67285","RHSA-2026:67286","RHSA-2026:69096","RHSA-2026:69097","RHSA-2026:69109","RLSA-2026:67285","RLSA-2026:67286"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Git core library","requires_auth":"none","summary":"A malicious Git server can trigger a heap out-of-bounds read in libgit2, causing a client crash during protocol negotiation.","user_interaction":"not_required","vuln_class":"memory_corruption"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":7.5,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"},{"id":"CWE-1284","name":"Improper Validation of Specified Quantity in Input"},{"id":"CWE-126","name":"Buffer Over-read"},{"id":"CWE-125","name":"Out-of-bounds Read"}],"description":"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.","ecosystems":["AlmaLinux:10","AlmaLinux:9","Red Hat:enterprise_linux:10.2","Red Hat:enterprise_linux:9::appstream","Red Hat:enterprise_linux_eus:10.0","Red Hat:rhel_e4s:9.4::appstream","Red Hat:rhel_eus:9.6::appstream","Rocky Linux:10","Rocky Linux:9"],"exploits":{"exploitdb":0,"first_seen":"2026-08-15","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2026-08-15T14:09:46Z","kind":"github_poc","ref":"https://github.com/Alixploit22/CVE-2026-53587","stars":0,"title":null}],"tier":"weaponised"},"has_fix":true,"headline":"libgit2 - Unauthenticated network-reachable heap out-of-bounds read in transports/smart_pkt.c:set_data","id":"CVE-2026-53587","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"memory_corruption","year":"2026"},"n_packages":143,"n_references":6,"next":{"headline":"FreeScout Vulnerable to Unauthenticated Conversation Thread Injection via HMAC Length Bypass in FetchEmails","id":"CVE-2026-53591"},"packages":[{"ecosystem":"AlmaLinux:10","fixed":["1.92.0-2.el10_2.alma.1"],"introduced":["0"],"last_affected":[],"package":"cargo","purl":"pkg:rpm/almalinux/cargo","source":"ALSA-2026:67286"},{"ecosystem":"AlmaLinux:10","fixed":["1.92.0-2.el10_2.alma.1"],"introduced":["0"],"last_affected":[],"package":"clippy","purl":"pkg:rpm/almalinux/clippy","source":"ALSA-2026:67286"},{"ecosystem":"AlmaLinux:10","fixed":["1.92.0-2.el10_2.alma.1"],"introduced":["0"],"last_affected":[],"package":"rust","purl":"pkg:rpm/almalinux/rust","source":"ALSA-2026:67286"},{"ecosystem":"AlmaLinux:10","fixed":["1.92.0-2.el10_2.alma.1"],"introduced":["0"],"last_affected":[],"package":"rust-analyzer","purl":"pkg:rpm/almalinux/rust-analyzer","source":"ALSA-2026:67286"},{"ecosystem":"AlmaLinux:10","fixed":["1.92.0-2.el10_2.alma.1"],"introduced":["0"],"last_affected":[],"package":"rust-debugger-common","purl":"pkg:rpm/almalinux/rust-debugger-common","source":"ALSA-2026:67286"},{"ecosystem":"AlmaLinux:10","fixed":["1.92.0-2.el10_2.alma.1"],"introduced":["0"],"last_affected":[],"package":"rust-doc","purl":"pkg:rpm/almalinux/rust-doc","source":"ALSA-2026:67286"},{"ecosystem":"AlmaLinux:10","fixed":["1.92.0-2.el10_2.alma.1"],"introduced":["0"],"last_affected":[],"package":"rust-gdb","purl":"pkg:rpm/almalinux/rust-gdb","source":"ALSA-2026:67286"},{"ecosystem":"AlmaLinux:10","fixed":["1.92.0-2.el10_2.alma.1"],"introduced":["0"],"last_affected":[],"package":"rust-lldb","purl":"pkg:rpm/almalinux/rust-lldb","source":"ALSA-2026:67286"},{"ecosystem":"AlmaLinux:10","fixed":["1.92.0-2.el10_2.alma.1"],"introduced":["0"],"last_affected":[],"package":"rust-src","purl":"pkg:rpm/almalinux/rust-src","source":"ALSA-2026:67286"},{"ecosystem":"AlmaLinux:10","fixed":["1.92.0-2.el10_2.alma.1"],"introduced":["0"],"last_affected":[],"package":"rust-std-static","purl":"pkg:rpm/almalinux/rust-std-static","source":"ALSA-2026:67286"},{"ecosystem":"AlmaLinux:10","fixed":["1.92.0-2.el10_2.alma.1"],"introduced":["0"],"last_affected":[],"package":"rust-std-static-aarch64-unknown-none-softfloat","purl":"pkg:rpm/almalinux/rust-std-static-aarch64-unknown-none-softfloat","source":"ALSA-2026:67286"},{"ecosystem":"AlmaLinux:10","fixed":["1.92.0-2.el10_2.alma.1"],"introduced":["0"],"last_affected":[],"package":"rust-std-static-wasm32-unknown-unknown","purl":"pkg:rpm/almalinux/rust-std-static-wasm32-unknown-unknown","source":"ALSA-2026:67286"},{"ecosystem":"AlmaLinux:10","fixed":["1.92.0-2.el10_2.alma.1"],"introduced":["0"],"last_affected":[],"package":"rust-std-static-wasm32-wasip1","purl":"pkg:rpm/almalinux/rust-std-static-wasm32-wasip1","source":"ALSA-2026:67286"},{"ecosystem":"AlmaLinux:10","fixed":["1.92.0-2.el10_2.alma.1"],"introduced":["0"],"last_affected":[],"package":"rust-std-static-x86_64-unknown-none","purl":"pkg:rpm/almalinux/rust-std-static-x86_64-unknown-none","source":"ALSA-2026:67286"},{"ecosystem":"AlmaLinux:10","fixed":["1.92.0-2.el10_2.alma.1"],"introduced":["0"],"last_affected":[],"package":"rust-toolset","purl":"pkg:rpm/almalinux/rust-toolset","source":"ALSA-2026:67286"},{"ecosystem":"AlmaLinux:10","fixed":["1.92.0-2.el10_2.alma.1"],"introduced":["0"],"last_affected":[],"package":"rust-toolset-srpm-macros","purl":"pkg:rpm/almalinux/rust-toolset-srpm-macros","source":"ALSA-2026:67286"},{"ecosystem":"AlmaLinux:10","fixed":["1.92.0-2.el10_2.alma.1"],"introduced":["0"],"last_affected":[],"package":"rustfmt","purl":"pkg:rpm/almalinux/rustfmt","source":"ALSA-2026:67286"},{"ecosystem":"AlmaLinux:9","fixed":["1.92.0-2.el9_8"],"introduced":["0"],"last_affected":[],"package":"cargo","purl":"pkg:rpm/almalinux/cargo","source":"ALSA-2026:67285"},{"ecosystem":"AlmaLinux:9","fixed":["1.92.0-2.el9_8"],"introduced":["0"],"last_affected":[],"package":"clippy","purl":"pkg:rpm/almalinux/clippy","source":"ALSA-2026:67285"},{"ecosystem":"AlmaLinux:9","fixed":["1.92.0-2.el9_8"],"introduced":["0"],"last_affected":[],"package":"rust","purl":"pkg:rpm/almalinux/rust","source":"ALSA-2026:67285"},{"ecosystem":"AlmaLinux:9","fixed":["1.92.0-2.el9_8"],"introduced":["0"],"last_affected":[],"package":"rust-analyzer","purl":"pkg:rpm/almalinux/rust-analyzer","source":"ALSA-2026:67285"},{"ecosystem":"AlmaLinux:9","fixed":["1.92.0-2.el9_8"],"introduced":["0"],"last_affected":[],"package":"rust-debugger-common","purl":"pkg:rpm/almalinux/rust-debugger-common","source":"ALSA-2026:67285"},{"ecosystem":"AlmaLinux:9","fixed":["1.92.0-2.el9_8"],"introduced":["0"],"last_affected":[],"package":"rust-doc","purl":"pkg:rpm/almalinux/rust-doc","source":"ALSA-2026:67285"},{"ecosystem":"AlmaLinux:9","fixed":["1.92.0-2.el9_8"],"introduced":["0"],"last_affected":[],"package":"rust-gdb","purl":"pkg:rpm/almalinux/rust-gdb","source":"ALSA-2026:67285"},{"ecosystem":"AlmaLinux:9","fixed":["1.92.0-2.el9_8"],"introduced":["0"],"last_affected":[],"package":"rust-lldb","purl":"pkg:rpm/almalinux/rust-lldb","source":"ALSA-2026:67285"},{"ecosystem":"AlmaLinux:9","fixed":["1.92.0-2.el9_8"],"introduced":["0"],"last_affected":[],"package":"rust-src","purl":"pkg:rpm/almalinux/rust-src","source":"ALSA-2026:67285"},{"ecosystem":"AlmaLinux:9","fixed":["1.92.0-2.el9_8"],"introduced":["0"],"last_affected":[],"package":"rust-std-static","purl":"pkg:rpm/almalinux/rust-std-static","source":"ALSA-2026:67285"},{"ecosystem":"AlmaLinux:9","fixed":["1.92.0-2.el9_8"],"introduced":["0"],"last_affected":[],"package":"rust-std-static-wasm32-unknown-unknown","purl":"pkg:rpm/almalinux/rust-std-static-wasm32-unknown-unknown","source":"ALSA-2026:67285"},{"ecosystem":"AlmaLinux:9","fixed":["1.92.0-2.el9_8"],"introduced":["0"],"last_affected":[],"package":"rust-std-static-wasm32-wasip1","purl":"pkg:rpm/almalinux/rust-std-static-wasm32-wasip1","source":"ALSA-2026:67285"},{"ecosystem":"AlmaLinux:9","fixed":["1.92.0-2.el9_8"],"introduced":["0"],"last_affected":[],"package":"rust-toolset","purl":"pkg:rpm/almalinux/rust-toolset","source":"ALSA-2026:67285"},{"ecosystem":"AlmaLinux:9","fixed":["1.92.0-2.el9_8"],"introduced":["0"],"last_affected":[],"package":"rustfmt","purl":"pkg:rpm/almalinux/rustfmt","source":"ALSA-2026:67285"},{"ecosystem":"Red Hat:enterprise_linux:10.2","fixed":["0:1.92.0-2.el10_2"],"introduced":["0"],"last_affected":[],"package":"cargo","purl":"pkg:rpm/redhat/cargo","source":"RHSA-2026:67286"},{"ecosystem":"Red Hat:enterprise_linux:10.2","fixed":["0:1.92.0-2.el10_2"],"introduced":["0"],"last_affected":[],"package":"cargo-debuginfo","purl":"pkg:rpm/redhat/cargo-debuginfo","source":"RHSA-2026:67286"},{"ecosystem":"Red Hat:enterprise_linux:10.2","fixed":["0:1.92.0-2.el10_2"],"introduced":["0"],"last_affected":[],"package":"clippy","purl":"pkg:rpm/redhat/clippy","source":"RHSA-2026:67286"},{"ecosystem":"Red Hat:enterprise_linux:10.2","fixed":["0:1.92.0-2.el10_2"],"introduced":["0"],"last_affected":[],"package":"clippy-debuginfo","purl":"pkg:rpm/redhat/clippy-debuginfo","source":"RHSA-2026:67286"},{"ecosystem":"Red Hat:enterprise_linux:10.2","fixed":["0:1.92.0-2.el10_2"],"introduced":["0"],"last_affected":[],"package":"rust","purl":"pkg:rpm/redhat/rust","source":"RHSA-2026:67286"},{"ecosystem":"Red Hat:enterprise_linux:10.2","fixed":["0:1.92.0-2.el10_2"],"introduced":["0"],"last_affected":[],"package":"rust-analyzer","purl":"pkg:rpm/redhat/rust-analyzer","source":"RHSA-2026:67286"},{"ecosystem":"Red Hat:enterprise_linux:10.2","fixed":["0:1.92.0-2.el10_2"],"introduced":["0"],"last_affected":[],"package":"rust-analyzer-debuginfo","purl":"pkg:rpm/redhat/rust-analyzer-debuginfo","source":"RHSA-2026:67286"},{"ecosystem":"Red Hat:enterprise_linux:10.2","fixed":["0:1.92.0-2.el10_2"],"introduced":["0"],"last_affected":[],"package":"rust-debugger-common","purl":"pkg:rpm/redhat/rust-debugger-common","source":"RHSA-2026:67286"},{"ecosystem":"Red Hat:enterprise_linux:10.2","fixed":["0:1.92.0-2.el10_2"],"introduced":["0"],"last_affected":[],"package":"rust-debuginfo","purl":"pkg:rpm/redhat/rust-debuginfo","source":"RHSA-2026:67286"}],"prev":{"headline":"libgit2: HTTP transport can leak credentials to an offsite redirect target","id":"CVE-2026-53586"},"products":["libgit2"],"published":"2026-08-20","related":[],"sources":[{"class":"attribution","licence":"MIT","name":"AlmaLinux","prefix":"ALSA"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-08-20","vendors":["libgit2"]},"summary":"A malicious Git server can trigger a heap out-of-bounds read in libgit2, causing a client crash during protocol negotiation.","url":"https://insights.sbomify.com/CVE-2026-53587/"}