Show plain JSON{"cve": {"data_type": "CVE", "references": {"reference_data": [{"url": "https://github.com/git/git/security/advisories/GHSA-475x-2q3q-hvwq", "name": "https://github.com/git/git/security/advisories/GHSA-475x-2q3q-hvwq", "tags": ["Third Party Advisory"], "refsource": "MISC"}, {"url": "https://github.com/git/git/commit/508386c6c5857b4faa2c3e491f422c98cc69ae76", "name": "https://github.com/git/git/commit/508386c6c5857b4faa2c3e491f422c98cc69ae76", "tags": ["Patch", "Release Notes", "Third Party Advisory"], "refsource": "MISC"}, {"url": "https://git-scm.com/book/en/v2/Customizing-Git-Git-Attributes#_export_subst", "name": "https://git-scm.com/book/en/v2/Customizing-Git-Git-Attributes#_export_subst", "tags": ["Vendor Advisory"], "refsource": "MISC"}, {"url": "https://git-scm.com/docs/pretty-formats#Documentation/pretty-formats.txt-emltltNgttruncltruncmtruncem", "name": "https://git-scm.com/docs/pretty-formats#Documentation/pretty-formats.txt-emltltNgttruncltruncmtruncem", "tags": ["Vendor Advisory"], "refsource": "MISC"}]}, "data_format": "MITRE", "description": {"description_data": [{"lang": "en", "value": "Git is distributed revision control system. `git log` can display commits in an arbitrary format using its `--format` specifiers. This functionality is also exposed to `git archive` via the `export-subst` gitattribute. When processing the padding operators, there is a integer overflow in `pretty.c::format_and_pad_commit()` where a `size_t` is stored improperly as an `int`, and then added as an offset to a `memcpy()`. This overflow can be triggered directly by a user running a command which invokes the commit formatting machinery (e.g., `git log --format=...`). It may also be triggered indirectly through git archive via the export-subst mechanism, which expands format specifiers inside of files within the repository during a git archive. This integer overflow can result in arbitrary heap writes, which may result in arbitrary 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. Users who are unable to upgrade should disable `git archive` in untrusted repositories. If you expose git archive via `git daemon`, disable it by running `git config --global daemon.uploadArch false`."}]}, "problemtype": {"problemtype_data": [{"description": [{"lang": "en", "value": "CWE-190"}]}]}, "data_version": "4.0", "CVE_data_meta": {"ID": "CVE-2022-41903", "ASSIGNER": "security-advisories@github.com"}}, "impact": {"baseMetricV3": {"cvssV3": {"scope": "UNCHANGED", "version": "3.1", "baseScore": 9.8, "attackVector": "NETWORK", "baseSeverity": "CRITICAL", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H", "integrityImpact": "HIGH", "userInteraction": "NONE", "attackComplexity": "LOW", "availabilityImpact": "HIGH", "privilegesRequired": "NONE", "confidentialityImpact": "HIGH"}, "impactScore": 5.9, "exploitabilityScore": 3.9}}, "publishedDate": "2023-01-17T23:15Z", "configurations": {"nodes": [{"children": [], "operator": "OR", "cpe_match": [{"cpe23Uri": "cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*", "cpe_name": [], "vulnerable": true, "versionEndIncluding": "2.30.6"}, {"cpe23Uri": "cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*", "cpe_name": [], "vulnerable": true, "versionEndIncluding": "2.31.5", "versionStartIncluding": "2.31.0"}, {"cpe23Uri": "cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*", "cpe_name": [], "vulnerable": true, "versionEndIncluding": "2.32.4", "versionStartIncluding": "2.32.0"}, {"cpe23Uri": "cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*", "cpe_name": [], "vulnerable": true, "versionEndIncluding": "2.33.5", "versionStartIncluding": "2.33.0"}, {"cpe23Uri": "cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*", "cpe_name": [], "vulnerable": true, "versionEndIncluding": "2.34.5", "versionStartIncluding": "2.34.0"}, {"cpe23Uri": "cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*", "cpe_name": [], "vulnerable": true, "versionEndIncluding": "2.35.5", "versionStartIncluding": "2.35.0"}, {"cpe23Uri": "cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*", "cpe_name": [], "vulnerable": true, "versionEndIncluding": "2.36.3", "versionStartIncluding": "2.36.0"}, {"cpe23Uri": "cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*", "cpe_name": [], "vulnerable": true, "versionEndIncluding": "2.37.4", "versionStartIncluding": "2.37.0"}, {"cpe23Uri": "cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*", "cpe_name": [], "vulnerable": true, "versionEndIncluding": "2.38.2", "versionStartIncluding": "2.38.0"}, {"cpe23Uri": "cpe:2.3:a:git-scm:git:2.39.0:*:*:*:*:*:*:*", "cpe_name": [], "vulnerable": true}]}], "CVE_data_version": "4.0"}, "lastModifiedDate": "2023-01-25T14:32Z"}