cve-2022-41953
Vulnerability from cvelistv5
Published
2023-01-17 21:03
Modified
2025-03-10 21:22
Severity ?
EPSS score ?
Summary
Git GUI is a convenient graphical tool that comes with Git for Windows. Its target audience is users who are uncomfortable with using Git on the command-line. Git GUI has a function to clone repositories. Immediately after the local clone is available, Git GUI will automatically post-process it, among other things running a spell checker called `aspell.exe` if it was found. Git GUI is implemented as a Tcl/Tk script. Due to the unfortunate design of Tcl on Windows, the search path when looking for an executable _always includes the current directory_. Therefore, malicious repositories can ship with an `aspell.exe` in their top-level directory which is executed by Git GUI without giving the user a chance to inspect it first, i.e. running untrusted code. This issue has been addressed in version 2.39.1. Users are advised to upgrade. Users unable to upgrade should avoid using Git GUI for cloning. If that is not a viable option, at least avoid cloning from untrusted sources.
References
Impacted products
Vendor | Product | Version | ||
---|---|---|---|---|
git-for-windows | git |
Version: < 2.39.1 |
{ containers: { adp: [ { providerMetadata: { dateUpdated: "2024-08-03T12:56:38.563Z", orgId: "af854a3a-2127-422b-91ae-364da2661108", shortName: "CVE", }, references: [ { name: "https://github.com/git-for-windows/git/security/advisories/GHSA-v4px-mx59-w99c", tags: [ "x_refsource_CONFIRM", "x_transferred", ], url: "https://github.com/git-for-windows/git/security/advisories/GHSA-v4px-mx59-w99c", }, { name: "https://github.com/git-for-windows/git/pull/4219", tags: [ "x_refsource_MISC", "x_transferred", ], url: "https://github.com/git-for-windows/git/pull/4219", }, { name: "https://github.com/git-for-windows/git/commit/7360767e8dfc1895a932324079f7d45d7791d39f", tags: [ "x_refsource_MISC", "x_transferred", ], url: "https://github.com/git-for-windows/git/commit/7360767e8dfc1895a932324079f7d45d7791d39f", }, { name: "https://www.tcl.tk/man/tcl8.6/TclCmd/exec.html#M23", tags: [ "x_refsource_MISC", "x_transferred", ], url: "https://www.tcl.tk/man/tcl8.6/TclCmd/exec.html#M23", }, ], title: "CVE Program Container", }, { metrics: [ { other: { content: { id: "CVE-2022-41953", options: [ { Exploitation: "none", }, { Automatable: "no", }, { "Technical Impact": "total", }, ], role: "CISA Coordinator", timestamp: "2025-03-10T20:58:35.869270Z", version: "2.0.3", }, type: "ssvc", }, }, ], providerMetadata: { dateUpdated: "2025-03-10T21:22:28.600Z", orgId: "134c704f-9b21-4f2e-91b3-4a467353bcc0", shortName: "CISA-ADP", }, title: "CISA ADP Vulnrichment", }, ], cna: { affected: [ { product: "git", vendor: "git-for-windows", versions: [ { status: "affected", version: "< 2.39.1", }, ], }, ], descriptions: [ { lang: "en", value: "Git GUI is a convenient graphical tool that comes with Git for Windows. Its target audience is users who are uncomfortable with using Git on the command-line. Git GUI has a function to clone repositories. Immediately after the local clone is available, Git GUI will automatically post-process it, among other things running a spell checker called `aspell.exe` if it was found. Git GUI is implemented as a Tcl/Tk script. Due to the unfortunate design of Tcl on Windows, the search path when looking for an executable _always includes the current directory_. Therefore, malicious repositories can ship with an `aspell.exe` in their top-level directory which is executed by Git GUI without giving the user a chance to inspect it first, i.e. running untrusted code. This issue has been addressed in version 2.39.1. Users are advised to upgrade. Users unable to upgrade should avoid using Git GUI for cloning. If that is not a viable option, at least avoid cloning from untrusted sources.", }, ], metrics: [ { cvssV3_1: { attackComplexity: "LOW", attackVector: "LOCAL", availabilityImpact: "HIGH", baseScore: 8.6, baseSeverity: "HIGH", confidentialityImpact: "HIGH", integrityImpact: "HIGH", privilegesRequired: "NONE", scope: "CHANGED", userInteraction: "REQUIRED", vectorString: "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H", version: "3.1", }, }, ], problemTypes: [ { descriptions: [ { cweId: "CWE-426", description: "CWE-426: Untrusted Search Path", lang: "en", type: "CWE", }, ], }, ], providerMetadata: { dateUpdated: "2023-01-17T21:03:14.721Z", orgId: "a0819718-46f1-4df5-94e2-005712e83aaa", shortName: "GitHub_M", }, references: [ { name: "https://github.com/git-for-windows/git/security/advisories/GHSA-v4px-mx59-w99c", tags: [ "x_refsource_CONFIRM", ], url: "https://github.com/git-for-windows/git/security/advisories/GHSA-v4px-mx59-w99c", }, { name: "https://github.com/git-for-windows/git/pull/4219", tags: [ "x_refsource_MISC", ], url: "https://github.com/git-for-windows/git/pull/4219", }, { name: "https://github.com/git-for-windows/git/commit/7360767e8dfc1895a932324079f7d45d7791d39f", tags: [ "x_refsource_MISC", ], url: "https://github.com/git-for-windows/git/commit/7360767e8dfc1895a932324079f7d45d7791d39f", }, { name: "https://www.tcl.tk/man/tcl8.6/TclCmd/exec.html#M23", tags: [ "x_refsource_MISC", ], url: "https://www.tcl.tk/man/tcl8.6/TclCmd/exec.html#M23", }, ], source: { advisory: "GHSA-v4px-mx59-w99c", discovery: "UNKNOWN", }, title: "Git clone remote code execution vulnerability in git-for-windows", }, }, cveMetadata: { assignerOrgId: "a0819718-46f1-4df5-94e2-005712e83aaa", assignerShortName: "GitHub_M", cveId: "CVE-2022-41953", datePublished: "2023-01-17T21:03:14.721Z", dateReserved: "2022-09-30T16:38:28.945Z", dateUpdated: "2025-03-10T21:22:28.600Z", state: "PUBLISHED", }, dataType: "CVE_RECORD", dataVersion: "5.1", "vulnerability-lookup:meta": { nvd: "{\"cve\":{\"id\":\"CVE-2022-41953\",\"sourceIdentifier\":\"security-advisories@github.com\",\"published\":\"2023-01-17T22:15:10.747\",\"lastModified\":\"2024-11-21T07:24:08.677\",\"vulnStatus\":\"Modified\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"Git GUI is a convenient graphical tool that comes with Git for Windows. Its target audience is users who are uncomfortable with using Git on the command-line. Git GUI has a function to clone repositories. Immediately after the local clone is available, Git GUI will automatically post-process it, among other things running a spell checker called `aspell.exe` if it was found. Git GUI is implemented as a Tcl/Tk script. Due to the unfortunate design of Tcl on Windows, the search path when looking for an executable _always includes the current directory_. Therefore, malicious repositories can ship with an `aspell.exe` in their top-level directory which is executed by Git GUI without giving the user a chance to inspect it first, i.e. running untrusted code. This issue has been addressed in version 2.39.1. Users are advised to upgrade. Users unable to upgrade should avoid using Git GUI for cloning. If that is not a viable option, at least avoid cloning from untrusted sources.\"},{\"lang\":\"es\",\"value\":\"Git GUI es una práctica herramienta gráfica que viene con Git para Windows. Su público objetivo son los usuarios que no se sienten cómodos usando Git en la línea de comandos. Git GUI tiene una función para clonar repositorios. Inmediatamente después de que el clon local esté disponible, la GUI de Git lo procesará automáticamente y, entre otras cosas, ejecutará un corrector ortográfico llamado `aspell.exe` si se encuentra. La GUI de Git se implementa como un script Tcl/Tk. Debido al desafortunado diseño de Tcl en Windows, la ruta de búsqueda cuando se busca un ejecutable _siempre incluye el directorio actual_. Por lo tanto, los repositorios maliciosos pueden incluir un `aspell.exe` en su directorio de nivel superior que se ejecuta mediante la GUI de Git sin darle al usuario la oportunidad de inspeccionarlo primero, es decir, ejecutando código que no es de confianza. Este problema se solucionó en la versión 2.39.1. Se recomienda a los usuarios que actualicen. Los usuarios que no puedan actualizar deben evitar usar la GUI de Git para la clonación. Si esa no es una opción viable, al menos evite la clonación de fuentes no confiables.\"}],\"metrics\":{\"cvssMetricV31\":[{\"source\":\"security-advisories@github.com\",\"type\":\"Secondary\",\"cvssData\":{\"version\":\"3.1\",\"vectorString\":\"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H\",\"baseScore\":8.6,\"baseSeverity\":\"HIGH\",\"attackVector\":\"LOCAL\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"NONE\",\"userInteraction\":\"REQUIRED\",\"scope\":\"CHANGED\",\"confidentialityImpact\":\"HIGH\",\"integrityImpact\":\"HIGH\",\"availabilityImpact\":\"HIGH\"},\"exploitabilityScore\":1.8,\"impactScore\":6.0},{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"cvssData\":{\"version\":\"3.1\",\"vectorString\":\"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H\",\"baseScore\":7.8,\"baseSeverity\":\"HIGH\",\"attackVector\":\"LOCAL\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"NONE\",\"userInteraction\":\"REQUIRED\",\"scope\":\"UNCHANGED\",\"confidentialityImpact\":\"HIGH\",\"integrityImpact\":\"HIGH\",\"availabilityImpact\":\"HIGH\"},\"exploitabilityScore\":1.8,\"impactScore\":5.9}]},\"weaknesses\":[{\"source\":\"security-advisories@github.com\",\"type\":\"Secondary\",\"description\":[{\"lang\":\"en\",\"value\":\"CWE-426\"}]}],\"configurations\":[{\"operator\":\"AND\",\"nodes\":[{\"operator\":\"OR\",\"negate\":false,\"cpeMatch\":[{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*\",\"versionEndExcluding\":\"2.39.1\",\"matchCriteriaId\":\"A20392B8-194B-4CF5-AC5F-BADD4BA6F8BB\"}]},{\"operator\":\"OR\",\"negate\":false,\"cpeMatch\":[{\"vulnerable\":false,\"criteria\":\"cpe:2.3:o:microsoft:windows:-:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"A2572D17-1DE6-457B-99CC-64AFD54487EA\"}]}]}],\"references\":[{\"url\":\"https://github.com/git-for-windows/git/commit/7360767e8dfc1895a932324079f7d45d7791d39f\",\"source\":\"security-advisories@github.com\",\"tags\":[\"Patch\",\"Third Party Advisory\"]},{\"url\":\"https://github.com/git-for-windows/git/pull/4219\",\"source\":\"security-advisories@github.com\",\"tags\":[\"Patch\",\"Third Party Advisory\"]},{\"url\":\"https://github.com/git-for-windows/git/security/advisories/GHSA-v4px-mx59-w99c\",\"source\":\"security-advisories@github.com\",\"tags\":[\"Patch\",\"Third Party Advisory\"]},{\"url\":\"https://www.tcl.tk/man/tcl8.6/TclCmd/exec.html#M23\",\"source\":\"security-advisories@github.com\",\"tags\":[\"Third Party Advisory\"]},{\"url\":\"https://github.com/git-for-windows/git/commit/7360767e8dfc1895a932324079f7d45d7791d39f\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Patch\",\"Third Party Advisory\"]},{\"url\":\"https://github.com/git-for-windows/git/pull/4219\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Patch\",\"Third Party Advisory\"]},{\"url\":\"https://github.com/git-for-windows/git/security/advisories/GHSA-v4px-mx59-w99c\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Patch\",\"Third Party Advisory\"]},{\"url\":\"https://www.tcl.tk/man/tcl8.6/TclCmd/exec.html#M23\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Third Party Advisory\"]}]}}", vulnrichment: { containers: "{\"adp\": [{\"title\": \"CVE Program Container\", \"references\": [{\"url\": \"https://github.com/git-for-windows/git/security/advisories/GHSA-v4px-mx59-w99c\", \"name\": \"https://github.com/git-for-windows/git/security/advisories/GHSA-v4px-mx59-w99c\", \"tags\": [\"x_refsource_CONFIRM\", \"x_transferred\"]}, {\"url\": \"https://github.com/git-for-windows/git/pull/4219\", \"name\": \"https://github.com/git-for-windows/git/pull/4219\", \"tags\": [\"x_refsource_MISC\", \"x_transferred\"]}, {\"url\": \"https://github.com/git-for-windows/git/commit/7360767e8dfc1895a932324079f7d45d7791d39f\", \"name\": \"https://github.com/git-for-windows/git/commit/7360767e8dfc1895a932324079f7d45d7791d39f\", \"tags\": [\"x_refsource_MISC\", \"x_transferred\"]}, {\"url\": \"https://www.tcl.tk/man/tcl8.6/TclCmd/exec.html#M23\", \"name\": \"https://www.tcl.tk/man/tcl8.6/TclCmd/exec.html#M23\", \"tags\": [\"x_refsource_MISC\", \"x_transferred\"]}], \"providerMetadata\": {\"orgId\": \"af854a3a-2127-422b-91ae-364da2661108\", \"shortName\": \"CVE\", \"dateUpdated\": \"2024-08-03T12:56:38.563Z\"}}, {\"title\": \"CISA ADP Vulnrichment\", \"metrics\": [{\"other\": {\"type\": \"ssvc\", \"content\": {\"id\": \"CVE-2022-41953\", \"role\": \"CISA Coordinator\", \"options\": [{\"Exploitation\": \"none\"}, {\"Automatable\": \"no\"}, {\"Technical Impact\": \"total\"}], \"version\": \"2.0.3\", \"timestamp\": \"2025-03-10T20:58:35.869270Z\"}}}], \"providerMetadata\": {\"orgId\": \"134c704f-9b21-4f2e-91b3-4a467353bcc0\", \"shortName\": \"CISA-ADP\", \"dateUpdated\": \"2025-03-10T20:58:37.518Z\"}}], \"cna\": {\"title\": \"Git clone remote code execution vulnerability in git-for-windows\", \"source\": {\"advisory\": \"GHSA-v4px-mx59-w99c\", \"discovery\": \"UNKNOWN\"}, \"metrics\": [{\"cvssV3_1\": {\"scope\": \"CHANGED\", \"version\": \"3.1\", \"baseScore\": 8.6, \"attackVector\": \"LOCAL\", \"baseSeverity\": \"HIGH\", \"vectorString\": \"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H\", \"integrityImpact\": \"HIGH\", \"userInteraction\": \"REQUIRED\", \"attackComplexity\": \"LOW\", \"availabilityImpact\": \"HIGH\", \"privilegesRequired\": \"NONE\", \"confidentialityImpact\": \"HIGH\"}}], \"affected\": [{\"vendor\": \"git-for-windows\", \"product\": \"git\", \"versions\": [{\"status\": \"affected\", \"version\": \"< 2.39.1\"}]}], \"references\": [{\"url\": \"https://github.com/git-for-windows/git/security/advisories/GHSA-v4px-mx59-w99c\", \"name\": \"https://github.com/git-for-windows/git/security/advisories/GHSA-v4px-mx59-w99c\", \"tags\": [\"x_refsource_CONFIRM\"]}, {\"url\": \"https://github.com/git-for-windows/git/pull/4219\", \"name\": \"https://github.com/git-for-windows/git/pull/4219\", \"tags\": [\"x_refsource_MISC\"]}, {\"url\": \"https://github.com/git-for-windows/git/commit/7360767e8dfc1895a932324079f7d45d7791d39f\", \"name\": \"https://github.com/git-for-windows/git/commit/7360767e8dfc1895a932324079f7d45d7791d39f\", \"tags\": [\"x_refsource_MISC\"]}, {\"url\": \"https://www.tcl.tk/man/tcl8.6/TclCmd/exec.html#M23\", \"name\": \"https://www.tcl.tk/man/tcl8.6/TclCmd/exec.html#M23\", \"tags\": [\"x_refsource_MISC\"]}], \"descriptions\": [{\"lang\": \"en\", \"value\": \"Git GUI is a convenient graphical tool that comes with Git for Windows. Its target audience is users who are uncomfortable with using Git on the command-line. Git GUI has a function to clone repositories. Immediately after the local clone is available, Git GUI will automatically post-process it, among other things running a spell checker called `aspell.exe` if it was found. Git GUI is implemented as a Tcl/Tk script. Due to the unfortunate design of Tcl on Windows, the search path when looking for an executable _always includes the current directory_. Therefore, malicious repositories can ship with an `aspell.exe` in their top-level directory which is executed by Git GUI without giving the user a chance to inspect it first, i.e. running untrusted code. This issue has been addressed in version 2.39.1. Users are advised to upgrade. Users unable to upgrade should avoid using Git GUI for cloning. If that is not a viable option, at least avoid cloning from untrusted sources.\"}], \"problemTypes\": [{\"descriptions\": [{\"lang\": \"en\", \"type\": \"CWE\", \"cweId\": \"CWE-426\", \"description\": \"CWE-426: Untrusted Search Path\"}]}], \"providerMetadata\": {\"orgId\": \"a0819718-46f1-4df5-94e2-005712e83aaa\", \"shortName\": \"GitHub_M\", \"dateUpdated\": \"2023-01-17T21:03:14.721Z\"}}}", cveMetadata: "{\"cveId\": \"CVE-2022-41953\", \"state\": \"PUBLISHED\", \"dateUpdated\": \"2025-03-10T21:22:28.600Z\", \"dateReserved\": \"2022-09-30T16:38:28.945Z\", \"assignerOrgId\": \"a0819718-46f1-4df5-94e2-005712e83aaa\", \"datePublished\": \"2023-01-17T21:03:14.721Z\", \"assignerShortName\": \"GitHub_M\"}", dataType: "CVE_RECORD", dataVersion: "5.1", }, }, }
Log in or create an account to share your comment.
Security Advisory comment format.
This schema specifies the format of a comment related to a security advisory.
Title of the comment
Description of the comment
Loading…
Loading…
Loading…
Sightings
Author | Source | Type | Date |
---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
- Confirmed: The vulnerability is confirmed from an analyst perspective.
- Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
- Patched: This vulnerability was successfully patched by the user reporting the sighting.
- Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
- Not confirmed: The user expresses doubt about the veracity of the vulnerability.
- Not patched: This vulnerability was not successfully patched by the user reporting the sighting.