{"api_version":"1","generated_at":"2026-04-23T05:15:38+00:00","cve":"CVE-2022-23521","urls":{"html":"https://cve.report/CVE-2022-23521","api":"https://cve.report/api/cve/CVE-2022-23521.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-23521","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-23521"},"summary":{"title":"CVE-2022-23521","description":"Git is distributed revision control system. gitattributes are a mechanism to allow defining attributes for paths. These attributes can be defined by adding a `.gitattributes` file to the repository, which contains a set of file patterns and the attributes that should be set for paths matching this pattern. When parsing gitattributes, multiple integer overflows can occur when there is a huge number of path patterns, a huge number of attributes for a single pattern, or when the declared attribute names are huge. These overflows can be triggered via a crafted `.gitattributes` file that may be part of the commit history. Git silently splits lines longer than 2KB when parsing gitattributes from a file, but not when parsing them from the index. Consequentially, the failure mode depends on whether the file exists in the working tree, the index or both. This integer overflow can result in arbitrary heap reads and writes, which may result in remote code execution. The problem has been patched in the versions published on 2023-01-17, going back to v2.30.7. Users are advised to upgrade. There are no known workarounds for this issue.","state":"PUBLIC","assigner":"security-advisories@github.com","published_at":"2023-01-17 23:15:00","updated_at":"2023-12-27 10:15:00"},"problem_types":["CWE-190"],"metrics":[],"references":[{"url":"https://github.com/git/git/security/advisories/GHSA-c738-c5qq-xg89","name":"https://github.com/git/git/security/advisories/GHSA-c738-c5qq-xg89","refsource":"MISC","tags":[],"title":"gitattributes parsing integer overflow · Advisory · git/git · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/git/git/commit/508386c6c5857b4faa2c3e491f422c98cc69ae76","name":"https://github.com/git/git/commit/508386c6c5857b4faa2c3e491f422c98cc69ae76","refsource":"MISC","tags":[],"title":"Sync with 2.39.1 · git/git@508386c · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://security.gentoo.org/glsa/202312-15","name":"https://security.gentoo.org/glsa/202312-15","refsource":"","tags":[],"title":"Git: Multiple Vulnerabilities (GLSA 202312-15) — Gentoo security","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-23521","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-23521","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2022","cve_id":"23521","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"git-scm","cpe5":"git","cpe6":"2.39.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2022","cve_id":"23521","vulnerable":"1","versionEndIncluding":"2.30.6","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"git-scm","cpe5":"git","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2022","cve_id":"23521","vulnerable":"1","versionEndIncluding":"2.31.5","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"git-scm","cpe5":"git","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2022","cve_id":"23521","vulnerable":"1","versionEndIncluding":"2.32.4","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"git-scm","cpe5":"git","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2022","cve_id":"23521","vulnerable":"1","versionEndIncluding":"2.33.5","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"git-scm","cpe5":"git","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2022","cve_id":"23521","vulnerable":"1","versionEndIncluding":"2.34.5","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"git-scm","cpe5":"git","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2022","cve_id":"23521","vulnerable":"1","versionEndIncluding":"2.35.5","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"git-scm","cpe5":"git","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2022","cve_id":"23521","vulnerable":"1","versionEndIncluding":"2.36.3","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"git-scm","cpe5":"git","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2022","cve_id":"23521","vulnerable":"1","versionEndIncluding":"2.37.4","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"git-scm","cpe5":"git","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2022","cve_id":"23521","vulnerable":"1","versionEndIncluding":"2.38.2","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"git-scm","cpe5":"git","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2022-23521","qid":"160443","title":"Oracle Enterprise Linux Security Update for git (ELSA-2023-0610)"},{"cve":"CVE-2022-23521","qid":"160446","title":"Oracle Enterprise Linux Security Update for git (ELSA-2023-0611)"},{"cve":"CVE-2022-23521","qid":"160487","title":"Oracle Enterprise Linux Security Update for git (ELSA-2023-0978)"},{"cve":"CVE-2022-23521","qid":"181505","title":"Debian Security Update for git (DLA 3282-1)"},{"cve":"CVE-2022-23521","qid":"181518","title":"Debian Security Update for git (DSA 5332-1)"},{"cve":"CVE-2022-23521","qid":"183759","title":"Debian Security Update for git (CVE-2022-23521)"},{"cve":"CVE-2022-23521","qid":"199108","title":"Ubuntu Security Notification for Git Vulnerabilities (USN-5810-1)"},{"cve":"CVE-2022-23521","qid":"199516","title":"Ubuntu Security Notification for Git Vulnerabilities (USN-5810-3)"},{"cve":"CVE-2022-23521","qid":"199582","title":"Ubuntu Security Notification for Git Vulnerabilities (USN-5810-4)"},{"cve":"CVE-2022-23521","qid":"241158","title":"Red Hat Update for git (RHSA-2023:0596)"},{"cve":"CVE-2022-23521","qid":"241161","title":"Red Hat Update for rh-git227-git (RHSA-2023:0597)"},{"cve":"CVE-2022-23521","qid":"241163","title":"Red Hat Update for git (RHSA-2023:0611)"},{"cve":"CVE-2022-23521","qid":"241166","title":"Red Hat Update for git (RHSA-2023:0610)"},{"cve":"CVE-2022-23521","qid":"241170","title":"Red Hat Update for git (RHSA-2023:0627)"},{"cve":"CVE-2022-23521","qid":"241174","title":"Red Hat Update for git (RHSA-2023:0628)"},{"cve":"CVE-2022-23521","qid":"241224","title":"Red Hat Update for git (RHSA-2023:0978)"},{"cve":"CVE-2022-23521","qid":"241611","title":"Red Hat Update for git (RHSA-2023:0599)"},{"cve":"CVE-2022-23521","qid":"241642","title":"Red Hat Update for git (RHSA-2023:0609)"},{"cve":"CVE-2022-23521","qid":"257225","title":"CentOS Security Update for git (CESA-2023:0978)"},{"cve":"CVE-2022-23521","qid":"283618","title":"Fedora Security Update for git (FEDORA-2023-9718cc6113)"},{"cve":"CVE-2022-23521","qid":"283619","title":"Fedora Security Update for git (FEDORA-2023-746c4aacce)"},{"cve":"CVE-2022-23521","qid":"354718","title":"Amazon Linux Security Advisory for git : ALAS-2023-1679"},{"cve":"CVE-2022-23521","qid":"354733","title":"Amazon Linux Security Advisory for git : ALAS2-2023-1923"},{"cve":"CVE-2022-23521","qid":"355061","title":"Amazon Linux Security Advisory for git : AL2012-2023-385"},{"cve":"CVE-2022-23521","qid":"355256","title":"Amazon Linux Security Advisory for git : ALAS2023-2023-065"},{"cve":"CVE-2022-23521","qid":"377913","title":"Git Multiple Security Vulnerabilities"},{"cve":"CVE-2022-23521","qid":"377997","title":"Alibaba Cloud Linux Security Update for git (ALINUX3-SA-2023:0020)"},{"cve":"CVE-2022-23521","qid":"378118","title":"Alibaba Cloud Linux Security Update for git (ALINUX2-SA-2023:0012)"},{"cve":"CVE-2022-23521","qid":"502636","title":"Alpine Linux Security Update for git"},{"cve":"CVE-2022-23521","qid":"502638","title":"Alpine Linux Security Update for git"},{"cve":"CVE-2022-23521","qid":"502639","title":"Alpine Linux Security Update for git"},{"cve":"CVE-2022-23521","qid":"502727","title":"Alpine Linux Security Update for git"},{"cve":"CVE-2022-23521","qid":"503106","title":"Alpine Linux Security Update for git"},{"cve":"CVE-2022-23521","qid":"505872","title":"Alpine Linux Security Update for git"},{"cve":"CVE-2022-23521","qid":"672708","title":"EulerOS Security Update for git (EulerOS-SA-2023-1466)"},{"cve":"CVE-2022-23521","qid":"672737","title":"EulerOS Security Update for git (EulerOS-SA-2023-1441)"},{"cve":"CVE-2022-23521","qid":"672793","title":"EulerOS Security Update for git (EulerOS-SA-2023-1548)"},{"cve":"CVE-2022-23521","qid":"672811","title":"EulerOS Security Update for git (EulerOS-SA-2023-1523)"},{"cve":"CVE-2022-23521","qid":"672868","title":"EulerOS Security Update for git (EulerOS-SA-2023-1594)"},{"cve":"CVE-2022-23521","qid":"672898","title":"EulerOS Security Update for git (EulerOS-SA-2023-1757)"},{"cve":"CVE-2022-23521","qid":"672902","title":"EulerOS Security Update for git (EulerOS-SA-2023-1779)"},{"cve":"CVE-2022-23521","qid":"673069","title":"EulerOS Security Update for git (EulerOS-SA-2023-2145)"},{"cve":"CVE-2022-23521","qid":"691070","title":"Free Berkeley Software Distribution (FreeBSD) Security Update for git (8fafbef4-b1d9-11ed-b0f4-002590f2a714)"},{"cve":"CVE-2022-23521","qid":"710816","title":"Gentoo Linux Git Multiple Vulnerabilities (GLSA 202312-15)"},{"cve":"CVE-2022-23521","qid":"753543","title":"SUSE Enterprise Linux Security Update for git (SUSE-SU-2023:0109-1)"},{"cve":"CVE-2022-23521","qid":"753549","title":"SUSE Enterprise Linux Security Update for git (SUSE-SU-2023:0110-1)"},{"cve":"CVE-2022-23521","qid":"753550","title":"SUSE Enterprise Linux Security Update for git (SUSE-SU-2023:0108-1)"},{"cve":"CVE-2022-23521","qid":"905273","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for git (13015)"},{"cve":"CVE-2022-23521","qid":"905276","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for git (13024)"},{"cve":"CVE-2022-23521","qid":"905470","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for git (13015-1)"},{"cve":"CVE-2022-23521","qid":"907370","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for git (13024-1)"},{"cve":"CVE-2022-23521","qid":"940913","title":"AlmaLinux Security Update for git (ALSA-2023:0610)"},{"cve":"CVE-2022-23521","qid":"940915","title":"AlmaLinux Security Update for git (ALSA-2023:0611)"},{"cve":"CVE-2022-23521","qid":"960534","title":"Rocky Linux Security Update for git (RLSA-2023:0611)"},{"cve":"CVE-2022-23521","qid":"960568","title":"Rocky Linux Security Update for git (RLSA-2023:0610)"}]},"source_records":{"cve_program":{"data_version":"4.0","data_type":"CVE","data_format":"MITRE","CVE_data_meta":{"ID":"CVE-2022-23521","ASSIGNER":"security-advisories@github.com","STATE":"PUBLIC"},"description":{"description_data":[{"lang":"eng","value":"Git is distributed revision control system. gitattributes are a mechanism to allow defining attributes for paths. These attributes can be defined by adding a `.gitattributes` file to the repository, which contains a set of file patterns and the attributes that should be set for paths matching this pattern. When parsing gitattributes, multiple integer overflows can occur when there is a huge number of path patterns, a huge number of attributes for a single pattern, or when the declared attribute names are huge. These overflows can be triggered via a crafted `.gitattributes` file that may be part of the commit history. Git silently splits lines longer than 2KB when parsing gitattributes from a file, but not when parsing them from the index. Consequentially, the failure mode depends on whether the file exists in the working tree, the index or both. This integer overflow can result in arbitrary heap reads and writes, which may result in remote code execution. The problem has been patched in the versions published on 2023-01-17, going back to v2.30.7. Users are advised to upgrade. There are no known workarounds for this issue."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-190: Integer Overflow or Wraparound","cweId":"CWE-190"}]}]},"affects":{"vendor":{"vendor_data":[{"vendor_name":"git","product":{"product_data":[{"product_name":"git","version":{"version_data":[{"version_value":"< 2.30.7","version_affected":"="},{"version_value":">= 2.31.0, < 2.31.6","version_affected":"="},{"version_value":">= 2.32.0, < 2.32.5","version_affected":"="},{"version_value":">= 2.33.0, < 2.33.6","version_affected":"="},{"version_value":">= 2.34.0, < 2.34.6","version_affected":"="},{"version_value":">= 2.35.0, < 2.35.6","version_affected":"="},{"version_value":">= 2.36.0, < 2.36.4","version_affected":"="},{"version_value":">= 2.37.0, < 2.37.5","version_affected":"="},{"version_value":">= 2.38.0, < 2.38.3","version_affected":"="},{"version_value":"= 2.39.0","version_affected":"="}]}}]}}]}},"references":{"reference_data":[{"url":"https://github.com/git/git/security/advisories/GHSA-c738-c5qq-xg89","refsource":"MISC","name":"https://github.com/git/git/security/advisories/GHSA-c738-c5qq-xg89"},{"url":"https://github.com/git/git/commit/508386c6c5857b4faa2c3e491f422c98cc69ae76","refsource":"MISC","name":"https://github.com/git/git/commit/508386c6c5857b4faa2c3e491f422c98cc69ae76"}]},"source":{"advisory":"GHSA-c738-c5qq-xg89","discovery":"UNKNOWN"},"impact":{"cvss":[{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":9.8,"baseSeverity":"CRITICAL","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"}]}},"nvd":{"publishedDate":"2023-01-17 23:15:00","lastModifiedDate":"2023-12-27 10:15:00","problem_types":["CWE-190"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":9.8,"baseSeverity":"CRITICAL"},"exploitabilityScore":3.9,"impactScore":5.9}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*","versionEndIncluding":"2.30.6","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*","versionStartIncluding":"2.31.0","versionEndIncluding":"2.31.5","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*","versionStartIncluding":"2.32.0","versionEndIncluding":"2.32.4","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*","versionStartIncluding":"2.33.0","versionEndIncluding":"2.33.5","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*","versionStartIncluding":"2.34.0","versionEndIncluding":"2.34.5","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*","versionStartIncluding":"2.35.0","versionEndIncluding":"2.35.5","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*","versionStartIncluding":"2.36.0","versionEndIncluding":"2.36.3","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*","versionStartIncluding":"2.37.0","versionEndIncluding":"2.37.4","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*","versionStartIncluding":"2.38.0","versionEndIncluding":"2.38.2","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:git-scm:git:2.39.0:*:*:*:*:*:*:*","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2022","CveId":"23521","Ordinal":"226356","Title":"CVE-2022-23521","CVE":"CVE-2022-23521","Year":"2022"},"notes":[{"CveYear":"2022","CveId":"23521","Ordinal":"1","NoteData":"** RESERVED ** This candidate has been reserved by an organization or individual that will use it when announcing a new security problem. When the candidate has been publicized, the details for this candidate will be provided.","Type":"Description","Title":null}]}}}