{"id":"CVE-2025-48384","state":"PUBLISHED","title":"Git allows arbitrary code execution through broken config quoting","description":"Git is a fast, scalable, distributed revision control system with an unusually rich command set that provides both high-level operations and full access to internals. When reading a config value, Git strips any trailing carriage return and line feed (CRLF). When writing a config entry, values with a trailing CR are not quoted, causing the CR to be lost when the config is later read. When initializing a submodule, if the submodule path contains a trailing CR, the altered path is read resulting in the submodule being checked out to an incorrect location. If a symlink exists that points the altered path to the submodule hooks directory, and the submodule contains an executable post-checkout hook, the script may be unintentionally executed after checkout. This vulnerability is fixed in v2.43.7, v2.44.4, v2.45.4, v2.46.4, v2.47.3, v2.48.2, v2.49.1, and v2.50.1.","publishedAt":"2025-07-08T18:23:48.710Z","updatedAt":"2026-02-26T17:51:05.174Z","severity":{"score":8.1,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H","source":"GitHub_M"},"assigner":"GitHub_M","products":["git git"],"affected":[{"vendor":"git","product":"git","versions":[{"version":"< 2.43.7","status":"affected"},{"version":">= 2.44.0-rc0, < 2.44.4","status":"affected"},{"version":">= 2.45.0-rc0, < 2.45.4","status":"affected"},{"version":">= 2.46.0-rc0, < 2.46.4","status":"affected"},{"version":">= 2.47.0-rc0, < 2.47.3","status":"affected"},{"version":">= 2.48.0-rc0, < 2.48.2","status":"affected"},{"version":">= 2.49.0-rc0, < 2.49.1","status":"affected"},{"version":">= 2.50.0-rc0, < 2.50.1","status":"affected"}]}],"references":["https://github.com/git/git/security/advisories/GHSA-vwqx-4fm8-6qc9","https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2025-48384","https://lists.debian.org/debian-lts-announce/2025/10/msg00003.html","http://seclists.org/fulldisclosure/2025/Sep/60","http://www.openwall.com/lists/oss-security/2025/07/08/4"],"weaknesses":["CWE-436","CWE-59"],"ingestedAt":"2026-10-29T20:09:23.771Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/48xxx/CVE-2025-48384.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2025-48384","state":"PUBLISHED","datePublished":"2025-07-08T18:23:48.710Z","dateUpdated":"2026-02-26T17:51:05.174Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2025-05-19T15:46:00.397Z"},"containers":{"cna":{"title":"Git allows arbitrary code execution through broken config quoting","descriptions":[{"lang":"en","value":"Git is a fast, scalable, distributed revision control system with an unusually rich command set that provides both high-level operations and full access to internals. When reading a config value, Git strips any trailing carriage return and line feed (CRLF). When writing a config entry, values with a trailing CR are not quoted, causing the CR to be lost when the config is later read. When initializing a submodule, if the submodule path contains a trailing CR, the altered path is read resulting in the submodule being checked out to an incorrect location. If a symlink exists that points the altered path to the submodule hooks directory, and the submodule contains an executable post-checkout hook, the script may be unintentionally executed after checkout. This vulnerability is fixed in v2.43.7, v2.44.4, v2.45.4, v2.46.4, v2.47.3, v2.48.2, v2.49.1, and v2.50.1."}],"affected":[{"vendor":"git","product":"git","versions":[{"version":"< 2.43.7","status":"affected"},{"version":">= 2.44.0-rc0, < 2.44.4","status":"affected"},{"version":">= 2.45.0-rc0, < 2.45.4","status":"affected"},{"version":">= 2.46.0-rc0, < 2.46.4","status":"affected"},{"version":">= 2.47.0-rc0, < 2.47.3","status":"affected"},{"version":">= 2.48.0-rc0, < 2.48.2","status":"affected"},{"version":">= 2.49.0-rc0, < 2.49.1","status":"affected"},{"version":">= 2.50.0-rc0, < 2.50.1","status":"affected"}]}],"references":[{"url":"https://github.com/git/git/security/advisories/GHSA-vwqx-4fm8-6qc9","name":"https://github.com/git/git/security/advisories/GHSA-vwqx-4fm8-6qc9","tags":["x_refsource_CONFIRM"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":8.1,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"LOW","scope":"CHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-436","lang":"en","description":"CWE-436: Interpretation Conflict","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-59","lang":"en","description":"CWE-59: Improper Link Resolution Before File Access ('Link Following')","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2025-07-08T18:23:48.710Z"},"source":{"advisory":"GHSA-vwqx-4fm8-6qc9","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","references":[{"url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2025-48384","tags":["government-resource"]}],"metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2025-48384","role":"CISA Coordinator","options":[{"Exploitation":"active"},{"Automatable":"no"},{"Technical Impact":"total"}],"version":"2.0.3","timestamp":"2025-08-26T03:55:23.181071Z"}}},{"other":{"type":"kev","content":{"dateAdded":"2025-08-25","reference":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2025-48384"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-02-26T17:51:05.174Z"},"timeline":[{"time":"2025-08-25T00:00:00.000Z","lang":"en","value":"CVE-2025-48384 added to CISA KEV"}]},{"title":"CVE Program Container","references":[{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00003.html"},{"url":"http://seclists.org/fulldisclosure/2025/Sep/60"},{"url":"http://www.openwall.com/lists/oss-security/2025/07/08/4"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2025-11-04T21:11:00.255Z"}}]}}}