{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2022-41953 in the wild and no public exploit code.","fix":"Upgrade to a fixed version.","what":"CVE-2022-41953 is a high-severity command injection vulnerability in git-for-windows git, published on 17 Jan 2023. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2022-41953 and fix it if it is affected.\n\nWhat it is: CVE-2022-41953 is a high-severity command injection vulnerability in git-for-windows git, published on 17 Jan 2023. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2022-41953 in the wild and no public exploit code.\n\nAffected product: git-for-windows git. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2022-41953/ (Markdown: https://insights.sbomify.com/CVE-2022-41953/index.md)","id":"CVE-2022-41953","markdown":"https://insights.sbomify.com/CVE-2022-41953/index.md","name":"CVE-2022-41953","record":{"aliases":["AZL-13025","GHSA-v4px-mx59-w99c","OESA-2023-1059"],"analysis":{"component_type":"desktop_application","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Git for Windows GUI","requires_auth":"none","summary":"Git for Windows GUI executes a bundled aspell.exe from the current directory, allowing remote code execution via malicious repositories.","user_interaction":"required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"git","vendor":"git-scm"}],"cvss":{"score":8.6,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-426","name":"Untrusted Search Path"}],"description":"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.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Git clone remote code execution vulnerability in git-for-windows","id":"CVE-2022-41953","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"command_injection","year":"2022"},"n_packages":0,"n_references":4,"next":{"headline":"Temporary File Information Disclosure Vulnerability","id":"CVE-2022-41954"},"packages":[],"prev":{"headline":"Uncontrolled Resource Consumption in Matrix Synapse","id":"CVE-2022-41952"},"products":["git"],"published":"2023-01-17","related":[{"cvss_score":9.8,"headline":"gitattributes parsing integer overflow in git","id":"CVE-2022-23521","kev_date_added":null,"published":"2023-01-17"},{"cvss_score":9.8,"headline":"Integer overflow in `git archive`, `git log --format` leading to RCE in git","id":"CVE-2022-41903","kev_date_added":null,"published":"2023-01-17"},{"cvss_score":9.8,"headline":"Security feature bypass in Git","id":"CVE-2019-1353","kev_date_added":null,"published":"2020-01-24"},{"cvss_score":9.8,"headline":"Memory corruption in n/a","id":"CVE-2016-2315","kev_date_added":null,"published":"2016-04-08"},{"cvss_score":9.8,"headline":"Integer overflow in n/a","id":"CVE-2016-2324","kev_date_added":null,"published":"2016-04-08"},{"cvss_score":8.8,"headline":"Command injection in Git","id":"CVE-2019-1387","kev_date_added":null,"published":"2019-12-18"},{"cvss_score":8.8,"headline":"Command injection in n/a","id":"CVE-2017-1000117","kev_date_added":null,"published":"2017-10-04"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-03-10","vendors":["git-for-windows"]},"summary":"Git for Windows GUI executes a bundled aspell.exe from the current directory, allowing remote code execution via malicious repositories.","url":"https://insights.sbomify.com/CVE-2022-41953/"}