{"schemaVersion":3,"id":"CVE-2021-40330","aliases":["ALPINE-CVE-2021-40330","SUSE-SU-2021:3300-1","SUSE-SU-2021:3484-1","UBUNTU-CVE-2021-40330","USN-5076-1","DEBIAN-CVE-2021-40330","openSUSE-SU-2021:1345-1","openSUSE-SU-2021:3300-1"],"status":"published","duplicateOf":null,"title":null,"description":"git_connect_git in connect.c in Git before 2.30.1 allows a repository path to contain a newline character, which may result in unexpected cross-protocol requests, as demonstrated by the git://localhost:1234/%0d%0a%0d%0aGET%20/%20HTTP/1.1 substring.","dates":{"published":"2021-08-31T00:00:00.000Z","modified":"2024-08-04T02:27:31.913Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.5,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"OSV · Alpine","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","exploitability":10,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","exploitability":10,"impact":6,"computed":true},{"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:H/I:N/A:N","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:H/I:N/A:N","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":5,"severity":"medium","vector":"AV:N/AC:L/Au:N/C:P/I:N/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.02874,"percentile":0.86638,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.02874},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.02874,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.02874,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.02874,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.02874,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.02874,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.02874,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.02874,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.02874,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.02874,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.02874,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.02874,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.02874,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.02874,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.02874,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.02874,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.02874,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.02874,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.02874,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.02874,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.02874,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.02874,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.02874,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.02874,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.02874,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.02874,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.02874,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.02874,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.02874,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.02874,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.02874,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.02874,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.02874,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.02874,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.02874,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.02874,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.02874,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.02874,"percentile":0.86638}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.02874,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.02874,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.02874,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.02874,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.02874,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.02874,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.02874,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.02874,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.02874,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.02874,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.02874,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.02874,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.02874,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.02874,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.02874,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.02874,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.02874,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.02874,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.02874,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.02874,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.02874,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.02874,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.02874,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.02874,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.02874,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.02874,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.02874,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.02874,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.02874,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.02874,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.02874,"percentile":0.86638}]},"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":[{"id":"GITHUB_GIT_GIT","name":"Git","source":"github","url":"https://github.com/git/git/commit/a02ea577174ab8ed18f847cf1693f213e0b9c473","maturity":"poc","reliabilityScore":0.3,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[],"affected":[{"vendor":"alpine","product":"git","name":"git","label":"git","ecosystem":"Alpine Linux","cpePart":null,"purl":"pkg:apk/alpine/git","purlType":"apk","versions":[{"text":"< 2.26.3-r1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.26.3-r1","eol":null,"hubHref":null},{"vendor":"debian","product":"git","name":"git","label":"git","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/git","purlType":"deb","versions":[{"text":"< 1:2.30.1-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1:2.30.1-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"git","name":"git","label":"git","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/git","purlType":"deb","versions":[{"text":"< 1:2.7.4-0ubuntu1.10+esm1","noFixRecorded":false,"fixedIn":null},{"text":"< 1:2.17.1-1ubuntu0.9","noFixRecorded":false,"fixedIn":null},{"text":"< 1:2.25.1-1ubuntu3.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1:2.7.4-0ubuntu1.10+esm1 | < 1:2.17.1-1ubuntu0.9 | < 1:2.25.1-1ubuntu3.2","eol":null,"hubHref":null},{"vendor":"debian","product":"debian_linux","name":"debian linux","label":"debian_linux","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"10.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"10.0","eol":{"isEol":true,"eolDate":"2024-06-30T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"10","label":"10 (Buster)","eolFrom":"2024-06-30T00:00:00.000Z","isLts":false,"isMaintained":true,"latestVersion":"10.13"},"product":{"name":"debian","label":"Debian","category":"os"}},"hubHref":"/vendor/debian/debian_linux"},{"vendor":"git-scm","product":"git","name":"git","label":"git","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 2.30.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.30.1","eol":null,"hubHref":"/vendor/git-scm/git"},{"vendor":"opensuse","product":"git&distro=openSUSE Leap 15.2","name":"git","label":"git&distro=openSUSE Leap 15.2","ecosystem":"openSUSE","cpePart":null,"purl":"pkg:rpm/opensuse/git&distro=openSUSE Leap 15.2","purlType":"rpm","versions":[{"text":"< 2.26.2-lp152.2.12.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.26.2-lp152.2.12.1","eol":null,"hubHref":null},{"vendor":"opensuse","product":"git&distro=openSUSE Leap 15.3","name":"git","label":"git&distro=openSUSE Leap 15.3","ecosystem":"openSUSE","cpePart":null,"purl":"pkg:rpm/opensuse/git&distro=openSUSE Leap 15.3","purlType":"rpm","versions":[{"text":"< 2.26.2-33.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.26.2-33.1","eol":null,"hubHref":null},{"vendor":"suse","product":"git&distro=HPE Helion OpenStack 8","name":"git","label":"git&distro=HPE Helion OpenStack 8","ecosystem":"SUSE Linux Enterprise","cpePart":null,"purl":"pkg:rpm/suse/git&distro=HPE Helion OpenStack 8","purlType":"rpm","versions":[{"text":"< 2.26.2-27.49.3","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.26.2-27.49.3","eol":null,"hubHref":null},{"vendor":"suse","product":"git&distro=SUSE Linux Enterprise Module for Basesystem 15 SP2","name":"git","label":"git&distro=SUSE Linux Enterprise Module for Basesystem 15 SP2","ecosystem":"SUSE Linux Enterprise","cpePart":null,"purl":"pkg:rpm/suse/git&distro=SUSE Linux Enterprise Module for Basesystem 15 SP2","purlType":"rpm","versions":[{"text":"< 2.26.2-33.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.26.2-33.1","eol":null,"hubHref":null},{"vendor":"suse","product":"git&distro=SUSE Linux Enterprise Module for Development Tools 15 SP2","name":"git","label":"git&distro=SUSE Linux Enterprise Module for Development Tools 15 SP2","ecosystem":"SUSE Linux Enterprise","cpePart":null,"purl":"pkg:rpm/suse/git&distro=SUSE Linux Enterprise Module for Development Tools 15 SP2","purlType":"rpm","versions":[{"text":"< 2.26.2-33.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.26.2-33.1","eol":null,"hubHref":null},{"vendor":"suse","product":"git&distro=SUSE Linux Enterprise Server 12 SP5","name":"git","label":"git&distro=SUSE Linux Enterprise Server 12 SP5","ecosystem":"SUSE Linux Enterprise","cpePart":null,"purl":"pkg:rpm/suse/git&distro=SUSE Linux Enterprise Server 12 SP5","purlType":"rpm","versions":[{"text":"< 2.26.2-27.49.3","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.26.2-27.49.3","eol":null,"hubHref":null},{"vendor":"suse","product":"git&distro=SUSE Linux Enterprise Server for SAP Applications 12 SP5","name":"git","label":"git&distro=SUSE Linux Enterprise Server for SAP Applications 12 SP5","ecosystem":"SUSE Linux Enterprise","cpePart":null,"purl":"pkg:rpm/suse/git&distro=SUSE Linux Enterprise Server for SAP Applications 12 SP5","purlType":"rpm","versions":[{"text":"< 2.26.2-27.49.3","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.26.2-27.49.3","eol":null,"hubHref":null},{"vendor":"suse","product":"git&distro=SUSE Linux Enterprise Software Development Kit 12 SP5","name":"git","label":"git&distro=SUSE Linux Enterprise Software Development Kit 12 SP5","ecosystem":"SUSE Linux Enterprise","cpePart":null,"purl":"pkg:rpm/suse/git&distro=SUSE Linux Enterprise Software Development Kit 12 SP5","purlType":"rpm","versions":[{"text":"< 2.26.2-27.49.3","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.26.2-27.49.3","eol":null,"hubHref":null},{"vendor":"suse","product":"git&distro=SUSE OpenStack Cloud 8","name":"git","label":"git&distro=SUSE OpenStack Cloud 8","ecosystem":"SUSE Linux Enterprise","cpePart":null,"purl":"pkg:rpm/suse/git&distro=SUSE OpenStack Cloud 8","purlType":"rpm","versions":[{"text":"< 2.26.2-27.49.3","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.26.2-27.49.3","eol":null,"hubHref":null}],"affectedCount":14,"eol":{"hasEol":true,"count":1},"references":[{"url":"https://github.com/git/git/commit/a02ea577174ab8ed18f847cf1693f213e0b9c473","label":"github.com/git/git/commit/a02ea577174ab8ed18f847cf1693f213e0b9c473","hostname":"github.com","tags":["Exploit","Patch","Third Party Advisory"]},{"url":"https://github.com/git/git/compare/v2.30.0...v2.30.1","label":"github.com/git/git/compare/v2.30.0...v2.30.1","hostname":"github.com","tags":["REPORT","Patch","Third Party Advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2022/10/msg00014.html","label":"lists.debian.org/debian-lts-announce/2022/10/msg00014.html","hostname":"lists.debian.org","tags":["Mailing List","Third Party Advisory"]},{"url":"https://security.alpinelinux.org/vuln/CVE-2021-40330","label":"security.alpinelinux.org/vuln/CVE-2021-40330","hostname":"security.alpinelinux.org","tags":["Advisory"]},{"url":"https://www.suse.com/support/update/announcement/2021/suse-su-20213300-1/","label":"www.suse.com/support/update/announcement/2021/suse-su-20213300-1/","hostname":"www.suse.com","tags":["Advisory"]},{"url":"https://bugzilla.suse.com/1189992","label":"bugzilla.suse.com/1189992","hostname":"bugzilla.suse.com","tags":["REPORT"]},{"url":"https://www.suse.com/security/cve/CVE-2021-40330","label":"www.suse.com/security/cve/CVE-2021-40330","hostname":"www.suse.com","tags":["WEB"]},{"url":"https://www.suse.com/support/update/announcement/2021/suse-su-20213484-1/","label":"www.suse.com/support/update/announcement/2021/suse-su-20213484-1/","hostname":"www.suse.com","tags":["Advisory"]},{"url":"https://ubuntu.com/security/CVE-2021-40330","label":"ubuntu.com/security/CVE-2021-40330","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-5076-1","label":"ubuntu.com/security/notices/USN-5076-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-40330","label":"www.cve.org/CVERecord?id=CVE-2021-40330","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-40330","label":"security-tracker.debian.org/tracker/CVE-2021-40330","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/HHADPIKH543AF7C3D6N7XU3ZL56DUAOW/","label":"lists.opensuse.org/archives/…","hostname":"lists.opensuse.org","tags":["Advisory"]},{"url":"https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/VXUBRXLMWBRLT5YI5UGAWTWUKG3VAM46/","label":"lists.opensuse.org/archives/…","hostname":"lists.opensuse.org","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-40330","label":"nvd.nist.gov/vuln/detail/CVE-2021-40330","hostname":"nvd.nist.gov","tags":["Oval","Advisory"]}],"lineage":{"upstream":[],"downstream":["DLA-3145-1"],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2021-08-31T00:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-04T02:27:31.913Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":41,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T20:20:08.585Z","stale":false,"partial":false}}