{"id":"CVE-2025-48386","summary":"Git allows a buffer overflow in 'wincred' credential helper","details":"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. The wincred credential helper uses a static buffer (target) as a unique key for storing and comparing against internal storage. This credential helper does not properly bounds check the available space remaining in the buffer before appending to it with wcsncat(), leading to potential buffer overflows. 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.","aliases":["BIT-git-2025-48386","GHSA-4v56-3xvj-xvfr"],"modified":"2026-04-10T05:28:15.451543Z","published":"2025-07-08T18:23:41.246Z","related":["SUSE-SU-2025:20721-1","SUSE-SU-2025:20855-1","openSUSE-SU-2025:15337-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/48xxx/CVE-2025-48386.json","cwe_ids":["CWE-120"],"cna_assigner":"GitHub_M"},"references":[{"type":"WEB","url":"http://www.openwall.com/lists/oss-security/2025/07/08/4"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/48xxx/CVE-2025-48386.json"},{"type":"ADVISORY","url":"https://github.com/git/git/security/advisories/GHSA-4v56-3xvj-xvfr"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-48386"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/git/git","events":[{"introduced":"0"},{"fixed":"7a1903ad46b5cc7524c0734a5034dccaec07209b"}],"database_specific":{"versions":[{"introduced":"0"},{"fixed":"2.43.7"}]}},{"type":"GIT","repo":"https://github.com/git/git","events":[{"introduced":"c875e0b8e036c12cfbf6531962108a063c7a821c"},{"fixed":"080b728d4b2bbdd2c0b9eb9ed6a41195f8303088"}],"database_specific":{"versions":[{"introduced":"2.44.0-rc0"},{"fixed":"2.44.4"}]}},{"type":"GIT","repo":"https://github.com/git/git","events":[{"introduced":"ae3196a5ea84a9e88991d576020cf66512487088"},{"fixed":"f94b90ad6e49cc7f15c4171c5a434aa459e82d2d"}],"database_specific":{"versions":[{"introduced":"2.45.0-rc0"},{"fixed":"2.45.4"}]}},{"type":"GIT","repo":"https://github.com/git/git","events":[{"introduced":"a7dae3bdc8b516d36f630b12bb01e853a667e0d9"},{"fixed":"47d3b506d48b7971080f09770f5b06b42569c967"}],"database_specific":{"versions":[{"introduced":"2.46.0-rc0"},{"fixed":"2.46.4"}]}},{"type":"GIT","repo":"https://github.com/git/git","events":[{"introduced":"3857aae53f3633b7de63ad640737c657387ae0c6"},{"fixed":"a52a24e03c8c711f1d5e252fba78f9276908129b"}],"database_specific":{"versions":[{"introduced":"2.47.0-rc0"},{"fixed":"2.47.3"}]}},{"type":"GIT","repo":"https://github.com/git/git","events":[{"introduced":"063bcebf0c917140ca0e705cbe0fdea127e90086"},{"fixed":"fbae1f06cbb04a6592c32f465e9bc28149039358"}],"database_specific":{"versions":[{"introduced":"2.48.0-rc0"},{"fixed":"2.48.2"}]}},{"type":"GIT","repo":"https://github.com/git/git","events":[{"introduced":"08bdfd453584e489d5a551aecbdcb77584e1b958"},{"fixed":"aadf8ae518afd80b73d49eff8aff475161aa5157"}],"database_specific":{"versions":[{"introduced":"2.49.0-rc0"},{"fixed":"2.49.1"}]}},{"type":"GIT","repo":"https://github.com/git/git","events":[{"introduced":"b32feae0f1b21faaf8e191e8d3314a32470a536b"},{"fixed":"d82adb61ba2fd11d8f2587fca1b6bd7925ce4044"}],"database_specific":{"versions":[{"introduced":"2.50.0-rc0"},{"fixed":"2.50.1"}]}}],"versions":["v0.99","v0.99.1","v0.99.2","v0.99.3","v0.99.4","v0.99.5","v0.99.6","v0.99.7","v0.99.8","v0.99.8a","v0.99.8b","v0.99.8c","v0.99.8d","v0.99.8e","v0.99.8f","v0.99.8g","v0.99.9a","v0.99.9b","v0.99.9c","v0.99.9d","v0.99.9e","v0.99.9f","v0.99.9g","v0.99.9h","v0.99.9i","v0.99.9j","v0.99.9k","v0.99.9l","v0.99.9m","v0.99.9n","v1.0.0","v1.0rc1","v1.0rc2","v1.0rc3","v1.0rc4","v1.0rc5","v1.0rc6","v1.1.0","v1.2.0","v1.3.0-rc1","v1.4.1","v1.4.1-rc1","v1.4.1-rc2","v1.4.2","v1.4.2-rc1","v1.4.2-rc2","v1.4.2-rc3","v1.4.2-rc4","v1.4.3","v1.4.3-rc1","v1.4.3-rc2","v1.4.3-rc3","v1.4.4","v1.4.4-rc1","v1.4.4-rc2","v1.4.4.1","v1.5.0","v1.5.0-rc0","v1.5.0-rc1","v1.5.0-rc2","v1.5.0-rc3","v1.5.0-rc4","v1.5.1","v1.5.1-rc1","v1.5.1-rc2","v1.5.1-rc3","v1.5.2","v1.5.2-rc0","v1.5.2-rc1","v1.5.2-rc2","v1.5.2-rc3","v1.5.3","v1.5.3-rc0","v1.5.3-rc1","v1.5.3-rc2","v1.5.3-rc3","v1.5.3-rc4","v1.5.3-rc5","v1.5.3-rc6","v1.5.3-rc7","v1.5.3.1","v1.5.4","v1.5.4-rc0","v1.5.4-rc1","v1.5.4-rc2","v1.5.4-rc3","v1.5.4-rc4","v1.5.4-rc5","v1.5.5","v1.5.5-rc0","v1.5.5-rc1","v1.5.5-rc2","v1.5.5-rc3","v1.5.6","v1.5.6-rc0","v1.5.6-rc1","v1.5.6-rc2","v1.5.6-rc3","v1.6.0","v1.6.0-rc0","v1.6.0-rc1","v1.6.0-rc2","v1.6.0-rc3","v1.6.1","v1.6.1-rc1","v1.6.1-rc2","v1.6.1-rc3","v1.6.1-rc4","v1.6.2","v1.6.2-rc0","v1.6.2-rc1","v1.6.2-rc2","v1.6.3","v1.6.3-rc0","v1.6.3-rc1","v1.6.3-rc2","v1.6.3-rc3","v1.6.3-rc4","v1.6.4","v1.6.4-rc0","v1.6.4-rc1","v1.6.4-rc2","v1.6.4-rc3","v1.6.5","v1.6.5-rc0","v1.6.5-rc1","v1.6.5-rc2","v1.6.5-rc3","v1.6.6","v1.6.6-rc0","v1.6.6-rc1","v1.6.6-rc2","v1.6.6-rc3","v1.6.6-rc4","v1.7.0","v1.7.0-rc0","v1.7.0-rc1","v1.7.0-rc2","v1.7.1","v1.7.1-rc0","v1.7.1-rc1","v1.7.1-rc2","v1.7.10","v1.7.10-rc0","v1.7.10-rc1","v1.7.10-rc2","v1.7.10-rc3","v1.7.10-rc4","v1.7.11","v1.7.11-rc0","v1.7.11-rc1","v1.7.11-rc2","v1.7.11-rc3","v1.7.12","v1.7.12-rc0","v1.7.12-rc1","v1.7.12-rc2","v1.7.12-rc3","v1.7.2","v1.7.2-rc0","v1.7.2-rc1","v1.7.2-rc2","v1.7.2-rc3","v1.7.3","v1.7.3-rc0","v1.7.3-rc1","v1.7.3-rc2","v1.7.3.1","v1.7.4","v1.7.4-rc0","v1.7.4-rc1","v1.7.4-rc2","v1.7.4-rc3","v1.7.5","v1.7.5-rc0","v1.7.5-rc1","v1.7.5-rc2","v1.7.5-rc3","v1.7.6","v1.7.6-rc0","v1.7.6-rc1","v1.7.6-rc2","v1.7.6-rc3","v1.7.7","v1.7.7-rc0","v1.7.7-rc1","v1.7.7-rc2","v1.7.7-rc3","v1.7.8","v1.7.8-rc0","v1.7.8-rc1","v1.7.8-rc2","v1.7.8-rc3","v1.7.8-rc4","v1.7.9","v1.7.9-rc0","v1.7.9-rc1","v1.7.9-rc2","v1.8.0","v1.8.0-rc0","v1.8.0-rc1","v1.8.0-rc2","v1.8.0-rc3","v1.8.1","v1.8.1-rc0","v1.8.1-rc1","v1.8.1-rc2","v1.8.1-rc3","v1.8.2","v1.8.2-rc0","v1.8.2-rc1","v1.8.2-rc2","v1.8.2-rc3","v1.8.3","v1.8.3-rc0","v1.8.3-rc1","v1.8.3-rc2","v1.8.3-rc3","v1.8.4","v1.8.4-rc0","v1.8.4-rc1","v1.8.4-rc2","v1.8.4-rc3","v1.8.4-rc4","v1.8.5","v1.8.5-rc0","v1.8.5-rc1","v1.8.5-rc2","v1.8.5-rc3","v1.9-rc0","v1.9-rc1","v1.9-rc2","v1.9.0","v1.9.0-rc3","v2.0.0","v2.0.0-rc0","v2.0.0-rc1","v2.0.0-rc2","v2.0.0-rc3","v2.0.0-rc4","v2.1.0","v2.1.0-rc0","v2.1.0-rc1","v2.1.0-rc2","v2.10.0","v2.10.0-rc0","v2.10.0-rc1","v2.10.0-rc2","v2.11.0","v2.11.0-rc0","v2.11.0-rc1","v2.11.0-rc2","v2.11.0-rc3","v2.12.0","v2.12.0-rc0","v2.12.0-rc1","v2.12.0-rc2","v2.13.0","v2.13.0-rc0","v2.13.0-rc1","v2.13.0-rc2","v2.14.0","v2.14.0-rc0","v2.14.0-rc1","v2.15.0","v2.15.0-rc0","v2.15.0-rc1","v2.15.0-rc2","v2.16.0","v2.16.0-rc0","v2.16.0-rc1","v2.16.0-rc2","v2.17.0","v2.17.0-rc0","v2.17.0-rc1","v2.17.0-rc2","v2.18.0","v2.18.0-rc0","v2.18.0-rc1","v2.18.0-rc2","v2.19.0","v2.19.0-rc0","v2.19.0-rc1","v2.19.0-rc2","v2.2.0","v2.2.0-rc0","v2.2.0-rc1","v2.2.0-rc2","v2.2.0-rc3","v2.20.0","v2.20.0-rc0","v2.20.0-rc1","v2.20.0-rc2","v2.21.0","v2.21.0-rc0","v2.21.0-rc1","v2.21.0-rc2","v2.22.0","v2.22.0-rc0","v2.22.0-rc1","v2.22.0-rc2","v2.22.0-rc3","v2.23.0","v2.23.0-rc0","v2.23.0-rc1","v2.23.0-rc2","v2.24.0","v2.24.0-rc0","v2.24.0-rc1","v2.24.0-rc2","v2.25.0","v2.25.0-rc0","v2.25.0-rc1","v2.25.0-rc2","v2.26.0","v2.26.0-rc0","v2.26.0-rc1","v2.26.0-rc2","v2.27.0","v2.27.0-rc0","v2.27.0-rc1","v2.27.0-rc2","v2.28.0","v2.28.0-rc0","v2.28.0-rc1","v2.28.0-rc2","v2.29.0","v2.29.0-rc0","v2.29.0-rc1","v2.29.0-rc2","v2.3.0","v2.3.0-rc0","v2.3.0-rc1","v2.3.0-rc2","v2.30.0","v2.30.0-rc0","v2.30.0-rc1","v2.30.0-rc2","v2.31.0","v2.31.0-rc0","v2.31.0-rc1","v2.31.0-rc2","v2.32.0","v2.32.0-rc0","v2.32.0-rc1","v2.32.0-rc2","v2.32.0-rc3","v2.33.0","v2.33.0-rc0","v2.33.0-rc1","v2.33.0-rc2","v2.34.0","v2.34.0-rc0","v2.34.0-rc1","v2.34.0-rc2","v2.35.0","v2.35.0-rc0","v2.35.0-rc1","v2.35.0-rc2","v2.36.0","v2.36.0-rc0","v2.36.0-rc1","v2.36.0-rc2","v2.37.0","v2.37.0-rc0","v2.37.0-rc1","v2.37.0-rc2","v2.38.0","v2.38.0-rc0","v2.38.0-rc1","v2.38.0-rc2","v2.39.0","v2.39.0-rc0","v2.39.0-rc1","v2.39.0-rc2","v2.4.0","v2.4.0-rc0","v2.4.0-rc1","v2.4.0-rc2","v2.4.0-rc3","v2.40.0","v2.40.0-rc0","v2.40.0-rc1","v2.40.0-rc2","v2.41.0","v2.41.0-rc0","v2.41.0-rc1","v2.41.0-rc2","v2.42.0","v2.42.0-rc0","v2.42.0-rc1","v2.42.0-rc2","v2.43.0","v2.43.0-rc0","v2.43.0-rc1","v2.43.0-rc2","v2.43.1","v2.43.2","v2.43.3","v2.43.4","v2.43.5","v2.43.6","v2.44.0","v2.44.0-rc0","v2.44.0-rc1","v2.44.0-rc2","v2.44.1","v2.44.2","v2.44.3","v2.45.0","v2.45.0-rc0","v2.45.0-rc1","v2.45.1","v2.45.2","v2.45.3","v2.46.0","v2.46.0-rc0","v2.46.0-rc1","v2.46.0-rc2","v2.46.1","v2.46.2","v2.46.3","v2.47.0","v2.47.0-rc0","v2.47.0-rc1","v2.47.1","v2.47.2","v2.48.0","v2.48.0-rc0","v2.48.0-rc1","v2.48.0-rc2","v2.48.1","v2.49.0","v2.49.0-rc0","v2.49.0-rc1","v2.49.0-rc2","v2.5.0","v2.5.0-rc0","v2.5.0-rc1","v2.5.0-rc2","v2.5.0-rc3","v2.50.0","v2.50.0-rc0","v2.50.0-rc1","v2.50.0-rc2","v2.6.0","v2.6.0-rc0","v2.6.0-rc1","v2.6.0-rc2","v2.6.0-rc3","v2.7.0","v2.7.0-rc0","v2.7.0-rc1","v2.7.0-rc2","v2.7.0-rc3","v2.8.0","v2.8.0-rc0","v2.8.0-rc1","v2.8.0-rc2","v2.8.0-rc3","v2.8.0-rc4","v2.9.0","v2.9.0-rc0","v2.9.0-rc1","v2.9.0-rc2"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-48386.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N"}]}