{"schemaVersion":3,"id":"CVE-2023-22742","aliases":["SUSE-SU-2023:1788-1","SUSE-SU-2023:1909-1","UBUNTU-CVE-2023-22742","DEBIAN-CVE-2023-22742","SUSE-SU-2023:1570-1","openSUSE-SU-2024:12632-1","CGA-fq95-hrrf-5gp5","CGA-m9m4-4rrq-qg2p","GHSA-m4ch-rfv5-x5g3","GHSA-8643-3wh5-rmjq","RUSTSEC-2023-0003"],"status":"published","duplicateOf":null,"title":null,"description":"libgit2 is a cross-platform, linkable library implementation of Git. When using an SSH remote with the optional libssh2 backend, libgit2 does not perform certificate checking by default. Prior versions of libgit2 require the caller to set the `certificate_check` field of libgit2's `git_remote_callbacks` structure - if a certificate check callback is not set, libgit2 does not perform any certificate checking. This means that by default - without configuring a certificate check callback, clients will not perform validation on the server SSH keys and may be subject to a man-in-the-middle attack. Users are encouraged to upgrade to v1.4.5 or v1.5.1. Users unable to upgrade should ensure that all relevant certificates are manually checked.","dates":{"published":"2023-01-20T22:49:06.378Z","modified":"2025-03-10T21:21:08.962Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":5.9,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":5.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":5.9,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N","exploitability":5.6,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":5.9,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N","exploitability":5.6,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Chainguard","score":5.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N","exploitability":4.1,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Crates.io","score":6.8,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N","exploitability":4.1,"impact":8.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":5.9,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.0058,"percentile":0.46696,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.0058},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.0058,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.0058,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.0058,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.0058,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.0058,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.0058,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.0058,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.0058,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.0058,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.0058,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.0058,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.0058,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.0058,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.0058,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.0058,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.0058,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.0058,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.0058,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.0058,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.0058,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.0058,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.0058,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.0058,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.0058,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.0058,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.0058,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.0058,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.0058,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.0058,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.0058,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.0058,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.0058,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.0058,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.0058,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.0058,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.0058,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.0058,"percentile":0.46696}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.0058,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.0058,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.0058,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.0058,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.0058,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.0058,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.0058,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.0058,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.0058,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.0058,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.0058,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.0058,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.0058,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.0058,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.0058,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.0058,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.0058,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.0058,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.0058,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.0058,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.0058,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.0058,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.0058,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.0058,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.0058,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.0058,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.0058,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.0058,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.0058,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.0058,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.0058,"percentile":0.46696}]},"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-347","name":"Improper Verification of Cryptographic Signature","description":"The product does not verify, or incorrectly verifies, the cryptographic signature for data.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/347.html"}],"affected":[{"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":"Crates.Io","product":"git2","name":"git2","label":"git2","ecosystem":"Crates.Io","cpePart":null,"purl":"pkg:cargo/git2","purlType":"cargo","versions":[{"text":"< 0.16.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.16.1","eol":null,"hubHref":null},{"vendor":"Crates.Io","product":"libgit2-sys","name":"libgit2-sys","label":"libgit2-sys","ecosystem":"Crates.Io","cpePart":null,"purl":"pkg:cargo/libgit2-sys","purlType":"cargo","versions":[{"text":"≥ 0.14.0, < 0.14.2","noFixRecorded":false,"fixedIn":null},{"text":"< 0.13.5","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 0.14.0, < 0.14.2 | < 0.13.5","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","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.5.1+ds-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"libgit2","name":"libgit2","label":"libgit2","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/libgit2","purlType":"deb","versions":[{"text":"< 0.24.1-2ubuntu0.2+esm2","noFixRecorded":false,"fixedIn":null},{"text":"< 0.26.0+dfsg.1-1.1ubuntu0.2+esm1","noFixRecorded":false,"fixedIn":null},{"text":"< 0.28.4+dfsg.1-2ubuntu0.1","noFixRecorded":false,"fixedIn":null},{"text":"< 1.1.0+dfsg.1-4.1ubuntu0.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.24.1-2ubuntu0.2+esm2 | < 0.26.0+dfsg.1-1.1ubuntu0.2+esm1 | < 0.28.4+dfsg.1-2ubuntu0.1 | < 1.1.0+dfsg.1-4.1ubuntu0.1","eol":null,"hubHref":null},{"vendor":"libgit2","product":"libgit2","name":"libgit2","label":"libgit2","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"= 1.5.0","noFixRecorded":false,"fixedIn":null},{"text":"< 1.4.5","noFixRecorded":false,"fixedIn":null},{"text":"1.5.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"= 1.5.0 | < 1.4.5 | 1.5.0","eol":null,"hubHref":"/vendor/libgit2/libgit2"},{"vendor":"opensuse","product":"libgit2&distro=openSUSE Leap 15.4","name":"libgit2","label":"libgit2&distro=openSUSE Leap 15.4","ecosystem":"openSUSE","cpePart":null,"purl":"pkg:rpm/opensuse/libgit2&distro=openSUSE Leap 15.4","purlType":"rpm","versions":[{"text":"< 0.26.8-150000.3.18.1","noFixRecorded":false,"fixedIn":null},{"text":"< 1.3.0-150400.3.6.1","noFixRecorded":false,"fixedIn":null},{"text":"< 0.28.4-150200.3.6.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.26.8-150000.3.18.1 | < 1.3.0-150400.3.6.1 | < 0.28.4-150200.3.6.1","eol":null,"hubHref":null},{"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.5.1-1.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.5.1-1.1","eol":null,"hubHref":null},{"vendor":"suse","product":"libgit2&distro=SUSE Linux Enterprise Module for Development Tools 15 SP4","name":"libgit2","label":"libgit2&distro=SUSE Linux Enterprise Module for Development Tools 15 SP4","ecosystem":"SUSE Linux Enterprise","cpePart":null,"purl":"pkg:rpm/suse/libgit2&distro=SUSE Linux Enterprise Module for Development Tools 15 SP4","purlType":"rpm","versions":[{"text":"< 1.3.0-150400.3.6.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.3.0-150400.3.6.1","eol":null,"hubHref":null},{"vendor":"suse","product":"libgit2&distro=SUSE Linux Enterprise Real Time 15 SP3","name":"libgit2","label":"libgit2&distro=SUSE Linux Enterprise Real Time 15 SP3","ecosystem":"SUSE Linux Enterprise","cpePart":null,"purl":"pkg:rpm/suse/libgit2&distro=SUSE Linux Enterprise Real Time 15 SP3","purlType":"rpm","versions":[{"text":"< 0.28.4-150200.3.6.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.28.4-150200.3.6.1","eol":null,"hubHref":null},{"vendor":"suse","product":"libgit2&distro=SUSE Manager Server Module 4.2","name":"libgit2","label":"libgit2&distro=SUSE Manager Server Module 4.2","ecosystem":"SUSE Linux Enterprise","cpePart":null,"purl":"pkg:rpm/suse/libgit2&distro=SUSE Manager Server Module 4.2","purlType":"rpm","versions":[{"text":"< 0.28.4-150200.3.6.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.28.4-150200.3.6.1","eol":null,"hubHref":null},{"vendor":"suse","product":"libgit2&distro=SUSE Manager Server Module 4.3","name":"libgit2","label":"libgit2&distro=SUSE Manager Server Module 4.3","ecosystem":"SUSE Linux Enterprise","cpePart":null,"purl":"pkg:rpm/suse/libgit2&distro=SUSE Manager Server Module 4.3","purlType":"rpm","versions":[{"text":"< 0.28.4-150200.3.6.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.28.4-150200.3.6.1","eol":null,"hubHref":null}],"affectedCount":12,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/libgit2/libgit2/security/advisories/GHSA-8643-3wh5-rmjq","label":"github.com/libgit2/libgit2/security/advisories/GHSA-8643-3wh5-rmjq","hostname":"github.com","tags":["X Refsource CONFIRM","REPORT","Advisory","WEB","Third Party Advisory"]},{"url":"https://github.com/libgit2/libgit2/commit/42e5db98b963ae503229c63e44e06e439df50e56","label":"github.com/libgit2/libgit2/commit/42e5db98b963ae503229c63e44e06e439df50e56","hostname":"github.com","tags":["X Refsource MISC","FIX","Patch","Third Party Advisory"]},{"url":"https://github.com/libgit2/libgit2/commit/cd6f679af401eda1f172402006ef8265f8bd58ea","label":"github.com/libgit2/libgit2/commit/cd6f679af401eda1f172402006ef8265f8bd58ea","hostname":"github.com","tags":["X Refsource MISC","FIX","Patch","Third Party Advisory"]},{"url":"https://github.com/libgit2/libgit2/releases/tag/v1.4.5","label":"github.com/libgit2/libgit2/releases/tag/v1.4.5","hostname":"github.com","tags":["X Refsource MISC","REPORT","WEB","Release Notes","Third Party Advisory"]},{"url":"https://github.com/libgit2/libgit2/releases/tag/v1.5.1","label":"github.com/libgit2/libgit2/releases/tag/v1.5.1","hostname":"github.com","tags":["X Refsource MISC","REPORT","WEB","Release Notes","Third Party Advisory"]},{"url":"https://www.libssh2.org","label":"www.libssh2.org","hostname":"www.libssh2.org","tags":["X Refsource MISC","REPORT","WEB","Third Party Advisory"]},{"url":"http://www.openwall.com/lists/oss-security/2023/11/06/5","label":"www.openwall.com/lists/oss-security/2023/11/06/5","hostname":"www.openwall.com","tags":["WEB"]},{"url":"https://www.suse.com/support/update/announcement/2023/suse-su-20231788-1/","label":"www.suse.com/support/update/announcement/2023/suse-su-20231788-1/","hostname":"www.suse.com","tags":["Advisory"]},{"url":"https://bugzilla.suse.com/1207364","label":"bugzilla.suse.com/1207364","hostname":"bugzilla.suse.com","tags":["REPORT"]},{"url":"https://www.suse.com/security/cve/CVE-2023-22742","label":"www.suse.com/security/cve/CVE-2023-22742","hostname":"www.suse.com","tags":["WEB"]},{"url":"https://www.suse.com/support/update/announcement/2023/suse-su-20231909-1/","label":"www.suse.com/support/update/announcement/2023/suse-su-20231909-1/","hostname":"www.suse.com","tags":["Advisory"]},{"url":"https://ubuntu.com/security/CVE-2023-22742","label":"ubuntu.com/security/CVE-2023-22742","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-6678-1","label":"ubuntu.com/security/notices/USN-6678-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2023-22742","label":"www.cve.org/CVERecord?id=CVE-2023-22742","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2023-22742","label":"security-tracker.debian.org/tracker/CVE-2023-22742","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://www.suse.com/support/update/announcement/2023/suse-su-20231570-1/","label":"www.suse.com/support/update/announcement/2023/suse-su-20231570-1/","hostname":"www.suse.com","tags":["Advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/22xxx/CVE-2023-22742.json","label":"github.com/CVEProject/cvelistV5/tree/main/cves/2023/22xxx/CVE-2023-22742.json","hostname":"github.com","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-22742","label":"nvd.nist.gov/vuln/detail/CVE-2023-22742","hostname":"nvd.nist.gov","tags":["Advisory","Oval"]},{"url":"https://github.com/rust-lang/git2-rs/security/advisories/GHSA-m4ch-rfv5-x5g3","label":"github.com/rust-lang/git2-rs/security/advisories/GHSA-m4ch-rfv5-x5g3","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/rust-lang/git2-rs/commit/87934f87d36753ed702792ec063be7246444a8e1","label":"github.com/rust-lang/git2-rs/commit/87934f87d36753ed702792ec063be7246444a8e1","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/rust-lang/git2-rs","label":"github.com/rust-lang/git2-rs","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2023-0003.html","label":"rustsec.org/advisories/RUSTSEC-2023-0003.html","hostname":"rustsec.org","tags":["WEB","Advisory"]},{"url":"https://crates.io/crates/libgit2-sys","label":"crates.io/crates/libgit2-sys","hostname":"crates.io","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":["DLA-3340-1","MGASA-2024-0059","USN-6678-1"],"duplicates":[],"related":["CGA-M65J-66MR-3GJ7","CGA-V4R3-9CQ4-P6CH","USN-6678-1"]},"timeline":[{"kind":"published","date":"2023-01-20T22:49:06.378Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-03-10T21:21:08.962Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":24,"level":"low","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T21:22:36.387Z","stale":false,"partial":false}}