{"schemaVersion":3,"id":"CVE-2024-24575","aliases":["DEBIAN-CVE-2024-24575","CGA-6cvf-88p5-wf55","CGA-cp6g-vgf4-qqgw","openSUSE-SU-2024:13675-1","CGA-5m86-x88q-xp7f","CGA-rcc8-j3f7-5fxm"],"status":"published","duplicateOf":null,"title":null,"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. 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.","dates":{"published":"2024-02-06T21:27:57.328Z","modified":"2025-02-13T17:40:13.105Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.5,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":10,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Wolfi","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":10,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Chainguard","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":10,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.01443,"percentile":0.72887,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.01443},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.01443,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.01443,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.01443,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.01443,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.01443,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.01443,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01443,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01443,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01443,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01443,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01443,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01443,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01443,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01443,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01443,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01443,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01443,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01443,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01443,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01443,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01443,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01443,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01443,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01443,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01443,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01443,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01443,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01443,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01443,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01443,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01443,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01443,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01443,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01443,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01443,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01443,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.01443,"percentile":0.72887}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.01443,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01443,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01443,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01443,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01443,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01443,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01443,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01443,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01443,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01443,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01443,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01443,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01443,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01443,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01443,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01443,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01443,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01443,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01443,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01443,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01443,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01443,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01443,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01443,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01443,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01443,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01443,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01443,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01443,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01443,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.01443,"percentile":0.72887}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption","description":"The product does not properly control the allocation and maintenance of a limited resource.","type":"weakness","status":"Draft","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/400.html"}],"affected":[{"vendor":"chainguard","product":"libgit2","name":"libgit2","label":"libgit2","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/libgit2","purlType":"apk","versions":[{"text":"< 1.7.2-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.7.2-r0","eol":null,"hubHref":null},{"vendor":"chainguard","product":"libgit2-1.5","name":"libgit2-1.5","label":"libgit2-1.5","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/libgit2-1.5","purlType":"apk","versions":[{"text":"< 1.7.2-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.7.2-r0","eol":null,"hubHref":null},{"vendor":"wolfi","product":"libgit2","name":"libgit2","label":"libgit2","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/libgit2","purlType":"apk","versions":[{"text":"< 1.7.2-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.7.2-r0","eol":null,"hubHref":null},{"vendor":"debian","product":"libgit2","name":"libgit2","label":"libgit2","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/libgit2","purlType":"deb","versions":[{"text":"< 1.5.1+ds-1+deb12u1","noFixRecorded":false,"fixedIn":null},{"text":"< 1.7.2+ds-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.5.1+ds-1+deb12u1 | < 1.7.2+ds-1","eol":null,"hubHref":null},{"vendor":"libgit2","product":"libgit2","name":"libgit2","label":"libgit2","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 1.4.0, < 1.6.5","noFixRecorded":false,"fixedIn":null},{"text":"≥ 1.7.0, < 1.7.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 1.4.0, < 1.6.5 | ≥ 1.7.0, < 1.7.2","eol":null,"hubHref":"/vendor/libgit2/libgit2"},{"vendor":"opensuse","product":"libgit2&distro=openSUSE Tumbleweed","name":"libgit2","label":"libgit2&distro=openSUSE Tumbleweed","ecosystem":"openSUSE","cpePart":null,"purl":"pkg:rpm/opensuse/libgit2&distro=openSUSE Tumbleweed","purlType":"rpm","versions":[{"text":"< 1.7.2-2.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.7.2-2.1","eol":null,"hubHref":null}],"affectedCount":6,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/libgit2/libgit2/security/advisories/GHSA-54mf-x2rh-hq9v","label":"github.com/libgit2/libgit2/security/advisories/GHSA-54mf-x2rh-hq9v","hostname":"github.com","tags":["X Refsource CONFIRM","Advisory","Third Party Advisory"]},{"url":"https://github.com/libgit2/libgit2/commit/add2dabb3c16aa49b33904dcdc07cd915efc12fa","label":"github.com/libgit2/libgit2/commit/add2dabb3c16aa49b33904dcdc07cd915efc12fa","hostname":"github.com","tags":["X Refsource MISC","FIX","Patch"]},{"url":"https://github.com/libgit2/libgit2/releases/tag/v1.6.5","label":"github.com/libgit2/libgit2/releases/tag/v1.6.5","hostname":"github.com","tags":["X Refsource MISC","WEB","Release Notes"]},{"url":"https://github.com/libgit2/libgit2/releases/tag/v1.7.2","label":"github.com/libgit2/libgit2/releases/tag/v1.7.2","hostname":"github.com","tags":["X Refsource MISC","WEB","Release Notes"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/S635BGHHZUMRPI7QOXOJ45QHDD5FFZ3S/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["WEB"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4M3P7WIEPXNRLBINQRJFXUSTNKBCHYC7/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["WEB"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/7CNDW3PF6NHO7OXNM5GN6WSSGAMA7MZE/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["WEB"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/Z6MXOX7I43OWNN7R6M54XLG6U5RXY244/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["WEB"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZGNHOEE2RBLH7KCJUPUNYG4CDTW4HTBT/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["WEB"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2024-24575","label":"security-tracker.debian.org/tracker/CVE-2024-24575","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/24xxx/CVE-2024-24575.json","label":"github.com/CVEProject/cvelistV5/tree/main/cves/2024/24xxx/CVE-2024-24575.json","hostname":"github.com","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-24575","label":"nvd.nist.gov/vuln/detail/CVE-2024-24575","hostname":"nvd.nist.gov","tags":["Advisory","Oval"]},{"url":"https://www.suse.com/security/cve/CVE-2024-24575","label":"www.suse.com/security/cve/CVE-2024-24575","hostname":"www.suse.com","tags":["WEB"]}],"lineage":{"upstream":[],"downstream":["SUSE-SU-2024:2584-1"],"duplicates":[],"related":["CGA-3PCQ-XMM5-276V","CGA-43PC-5Q3C-245V","CGA-XC88-PM3Q-X25P","GHSA-22Q8-GHMQ-63VF","SUSE-SU-2024:2584-1"]},"timeline":[{"kind":"published","date":"2024-02-06T21:27:57.328Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-02-13T17:40:13.105Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":30,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T06:33:22.530Z","stale":false,"partial":false}}