{"id":"CVE-2024-52006","summary":"Newline confusion in credential helpers can lead to credential exfiltration in git","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. Git defines a line-based protocol that is used to exchange information between Git and Git credential helpers. Some ecosystems (most notably, .NET and node.js) interpret single Carriage Return characters as newlines, which renders the protections against CVE-2020-5260 incomplete for credential helpers that treat Carriage Returns in this way. This issue has been addressed in commit `b01b9b8` which is included in release versions v2.48.1, v2.47.2, v2.46.3, v2.45.3, v2.44.3, v2.43.6, v2.42.4, v2.41.3, and v2.40.4. Users are advised to upgrade. Users unable to upgrade should avoid cloning from untrusted URLs, especially recursive clones.","aliases":["BIT-git-2024-52006"],"modified":"2026-08-12T15:13:10.311672Z","published":"2025-01-14T18:39:52.748Z","related":["ALSA-2025:11462","ALSA-2025:11533","ALSA-2025:11534","CGA-9hcc-vp2r-7hmh","GHSA-86c2-4x57-wc8g","GHSA-qm7j-c969-7j4q","GHSA-r5ph-xg7q-xfrp","SUSE-RU-2025:20362-1","SUSE-SU-2025:0116-1","SUSE-SU-2025:0144-1","SUSE-SU-2025:0197-1","SUSE-SU-2025:20197-1","SUSE-SU-2025:20721-1"],"database_specific":{"cna_assigner":"GitHub_M","cwe_ids":["CWE-116","CWE-147","CWE-150"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/52xxx/CVE-2024-52006.json"},"references":[{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00025.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/52xxx/CVE-2024-52006.json"},{"type":"ADVISORY","url":"https://github.com/git-ecosystem/git-credential-manager/security/advisories/GHSA-86c2-4x57-wc8g"},{"type":"ADVISORY","url":"https://github.com/git/git/security/advisories/GHSA-qm7j-c969-7j4q"},{"type":"ADVISORY","url":"https://github.com/git/git/security/advisories/GHSA-r5ph-xg7q-xfrp"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-52006"},{"type":"FIX","url":"https://github.com/git/git/commit/b01b9b81d36759cdcd07305e78765199e1bc2060"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/git/git","events":[{"introduced":"0"},{"fixed":"54a3711a9dd968a04249beef157393d64b579d64"},{"introduced":"fe86abd7511a9a6862d5706c6fa1d9b57a63ba09"},{"fixed":"6fd641a521a722e438b291ec7b852b7bb508b18b"},{"introduced":"43c8a30d150ecede9709c1f2527c8fba92c65f40"},{"fixed":"54ddf17f827969c989576f2411d9ff519fa8091f"},{"introduced":"564d0252ca632e0264ed670534a51d18a689ef5d"},{"fixed":"664d4fa692cb8637a7c9297c94abf0de8593e585"},{"introduced":"2f323bb16219c105e0c576ea4c2ece9863f5d926"},{"fixed":"2f323bb16219c105e0c576ea4c2ece9863f5d926"},{"introduced":"fc16eb306c2ad25c080612ae85fdeba1fbcbfc98"},{"fixed":"fc16eb306c2ad25c080612ae85fdeba1fbcbfc98"},{"introduced":"5c21db3a0d5f4414b65e114ca21c5a1fe736f2bc"},{"fixed":"5c21db3a0d5f4414b65e114ca21c5a1fe736f2bc"},{"introduced":"777489f9e09c8d0dd6b12f9d90de6376330577a2"},{"fixed":"e1fbebe347426ef7974dc2198f8a277b7c31c8fe"},{"introduced":"fbe8d3079d4a96aeb4e4529cc93cc0043b759a05"},{"fixed":"b01b9b81d36759cdcd07305e78765199e1bc2060"}],"database_specific":{"cpe":["cpe:2.3:a:git:git:*:*:*:*:*:*:*:*","cpe:2.3:a:git:git:2.48.0:*:*:*:*:*:*:*"],"extracted_events":[{"introduced":"0"},{"fixed":"2.40.4"},{"introduced":"2.41.0"},{"fixed":"2.41.3"},{"introduced":"2.42.0"},{"fixed":"2.42.4"},{"introduced":"2.43.0"},{"fixed":"2.43.6"},{"introduced":"2.44.3"},{"fixed":"2.44.3"},{"introduced":"2.45.3"},{"fixed":"2.45.3"},{"introduced":"2.46.3"},{"fixed":"2.46.3"},{"introduced":"2.47.0"},{"fixed":"2.47.2"},{"introduced":"2.48.0"},{"last_affected":"2.48.0"}],"source":["CPE_RANGE","CPE_STRING","REFERENCES"]}}],"versions":["2.48.0","= 2.48.0","v2.33.0","v2.47.0","v2.47.1","v2.46.0","v2.46.2","v2.40.3","v2.44.2","v2.43.5","v2.42.3","v2.41.2","v2.46.0-rc2","v2.46.1","v2.46.0-rc0","v2.46.0-rc1","v2.45.0","v2.43.0","v2.44.0","v2.45.2","v2.42.1","v2.45.1","v2.44.1","v2.43.4","v2.42.2","v2.41.1","v2.40.2","v2.43.3","v2.40.1","v2.45.0-rc0","v2.45.0-rc1","v2.44.0-rc2","v2.43.2","v2.44.0-rc1","v2.42.0","v2.44.0-rc0","v2.43.1","v2.41.0","v2.40.0","v2.39.0-rc0","v2.40.0-rc2","v2.40.0-rc1","v2.40.0-rc0","v2.39.0","v2.39.0-rc1","v2.39.0-rc2","v2.38.0","v2.38.0-rc2","v2.38.0-rc1","v2.38.0-rc0","v2.37.0-rc0","v2.37.0","v2.36.0","v2.37.0-rc2","v2.37.0-rc1","v2.36.0-rc2","v2.36.0-rc1","v2.36.0-rc0","v2.32.0","v2.34.0","v2.35.0","v2.35.0-rc2","v2.35.0-rc1","v2.35.0-rc0","v2.30.0","v2.34.0-rc2","v2.34.0-rc1","v2.34.0-rc0","v2.33.0-rc1","v2.33.0-rc2","v2.33.0-rc0","v2.31.0","v2.32.0-rc3","v2.32.0-rc2","v2.32.0-rc1","v2.32.0-rc0","v2.31.0-rc2","v2.31.0-rc1","v2.31.0-rc0","v2.28.0","v2.27.0","v2.30.0-rc1","v2.30.0-rc2","v2.30.0-rc0","v2.29.0","v2.29.0-rc2","v2.29.0-rc1","v2.29.0-rc0","v2.28.0-rc1","v2.28.0-rc2","v2.26.0","v2.28.0-rc0","v2.27.0-rc2","v2.27.0-rc0","v2.27.0-rc1","v2.25.0","v2.24.0","v2.26.0-rc2","v2.26.0-rc1","v2.26.0-rc0","v2.25.0-rc2","v2.25.0-rc1","v2.25.0-rc0","v2.22.0","v2.23.0","v2.21.0","v2.24.0-rc1","v2.24.0-rc2","v2.24.0-rc0","v2.23.0-rc2","v2.23.0-rc1","v2.23.0-rc0","v2.22.0-rc3","v2.22.0-rc2","v2.22.0-rc1","v2.22.0-rc0","v2.20.0","v2.21.0-rc2","v2.21.0-rc1","v2.15.0","v2.21.0-rc0","v2.17.0","v2.18.0","v2.20.0-rc2","v2.20.0-rc1","v2.20.0-rc0","v2.19.0","v2.19.0-rc2","v2.19.0-rc1","v2.19.0-rc0","v2.18.0-rc2","v2.18.0-rc1","v2.18.0-rc0","v2.17.0-rc2","v2.17.0-rc1","v2.17.0-rc0","v2.16.0-rc0","v2.16.0","v2.16.0-rc1","v2.16.0-rc2","v2.15.0-rc2","v2.15.0-rc1","v2.15.0-rc0","v2.14.0","v2.14.0-rc1","v2.11.0","v2.12.0","v2.13.0","v2.14.0-rc0","v2.13.0-rc2","v2.13.0-rc1","v2.13.0-rc0","v2.10.0","v2.12.0-rc2","v2.12.0-rc1","v2.12.0-rc0","v2.11.0-rc3","v2.9.0","v2.11.0-rc2","v2.11.0-rc1","v2.11.0-rc0","v2.10.0-rc2","v2.10.0-rc1","v2.10.0-rc0","v2.7.0","v2.9.0-rc2","v2.8.0","v2.9.0-rc1","v2.9.0-rc0","v2.8.0-rc4","v2.8.0-rc1","v2.8.0-rc3","v2.8.0-rc2","v2.8.0-rc0","v2.6.0","v2.7.0-rc3","v2.4.0","v2.7.0-rc1","v2.7.0-rc2","v2.0.0","v2.7.0-rc0","v2.6.0-rc1","v2.6.0-rc3","v2.6.0-rc2","v2.5.0","v2.6.0-rc0","v2.2.0","v2.5.0-rc3","v2.5.0-rc0","v2.5.0-rc2","v2.5.0-rc1","v2.4.0-rc0","v2.4.0-rc3","v2.4.0-rc2","v2.4.0-rc1","v2.3.0","v2.3.0-rc2","v2.3.0-rc1","v2.3.0-rc0","v1.8.5","v2.2.0-rc1","v2.2.0-rc3","v2.2.0-rc2","v2.1.0","v2.2.0-rc0","v2.1.0-rc2","v2.1.0-rc1","v2.1.0-rc0","v1.9.0","v2.0.0-rc2","v2.0.0-rc4","v2.0.0-rc3","v2.0.0-rc1","v2.0.0-rc0","v1.9-rc0","v1.9.0-rc3","v1.9-rc2","v1.9-rc1","v1.8.5-rc3","v1.8.5-rc2","v1.8.5-rc0","v1.8.5-rc1","v1.8.4","v1.8.3","v1.8.4-rc4","v1.8.4-rc3","v1.8.4-rc2","v1.8.4-rc1","v1.8.4-rc0","v1.8.2","v1.8.1","v1.7.11","v1.8.3-rc0","v1.8.3-rc3","v1.8.3-rc2","v1.8.3-rc1","v1.8.2-rc3","v1.8.2-rc2","v1.8.2-rc1","v1.8.2-rc0","v1.8.0","v1.8.1-rc2","v1.8.1-rc3","v1.7.12","v1.7.9","v1.8.1-rc1","v1.8.1-rc0","v1.8.0-rc3","v1.8.0-rc2","v1.8.0-rc1","v1.8.0-rc0","v1.7.3","v1.7.12-rc3","v1.7.12-rc2","v1.7.11-rc1","v1.7.12-rc1","v1.7.12-rc0","v1.7.11-rc3","v1.7.11-rc0","v1.7.11-rc2","v1.7.10","v1.7.8","v1.7.10-rc3","v1.7.10-rc4","v1.7.10-rc2","v1.7.10-rc1","v1.7.10-rc0","v1.7.7","v1.7.9-rc2","v1.7.9-rc1","v1.7.9-rc0","v1.7.4","v1.7.5","v1.7.8-rc2","v1.7.8-rc4","v1.7.8-rc3","v1.7.0","v1.7.8-rc1","v1.7.6","v1.7.8-rc0","v1.7.7-rc1","v1.7.7-rc3","v1.7.7-rc2","v1.7.7-rc0","v1.6.0","v1.7.6-rc3","v1.7.6-rc2","v1.7.2-rc1","v1.7.6-rc1","v1.7.6-rc0","v1.6.6","v1.7.5-rc3","v1.7.5-rc2","v1.7.5-rc1","v1.7.5-rc0","v1.7.4-rc1","v1.7.4-rc3","v1.7.4-rc2","v1.7.4-rc0","v1.7.1","v1.7.3.1","v1.7.3-rc2","v1.7.3-rc1","v1.7.3-rc0","v1.7.2","v1.7.2-rc3","v1.7.2-rc2","v1.7.2-rc0","v1.7.1-rc2","v1.7.1-rc1","v1.7.1-rc0","v1.7.0-rc2","v1.6.3","v1.6.5","v1.7.0-rc1","v1.7.0-rc0","v1.6.6-rc1","v1.6.1-rc1","v1.6.6-rc4","v1.6.6-rc3","v1.6.6-rc2","v1.6.6-rc0","v1.6.5-rc3","v1.6.5-rc2","v1.6.5-rc1","v1.6.5-rc0","v1.6.4","v1.6.4-rc3","v1.6.4-rc2","v1.6.4-rc1","v1.6.4-rc0","v1.6.2","v1.6.3-rc4","v1.6.3-rc3","v1.6.3-rc2","v1.6.3-rc1","v1.6.3-rc0","v1.6.1","v1.6.2-rc2","v1.6.2-rc1","v1.6.2-rc0","v1.6.1-rc4","v1.6.1-rc3","v1.6.1-rc2","v1.6.0-rc3","v1.6.0-rc2","v1.6.0-rc1","v1.6.0-rc0","v1.5.6","v1.5.6-rc3","v1.5.6-rc2","v1.5.6-rc1","v1.5.6-rc0","v1.5.5","v1.5.5-rc3","v1.5.5-rc2","v1.5.5-rc1","v1.5.5-rc0","v1.5.4","v1.5.4-rc5","v1.5.4-rc4","v1.5.4-rc3","v1.5.4-rc2","v1.5.4-rc1","v1.5.4-rc0","v1.5.3.1","v1.5.3","v1.5.3-rc7","v1.5.3-rc6","v1.5.3-rc5","v1.5.3-rc4","v1.5.3-rc3","v1.5.3-rc2","v1.5.3-rc1","v1.5.3-rc0","v1.5.2","v1.5.2-rc3","v1.5.2-rc2","v1.5.2-rc1","v1.5.2-rc0","v1.5.1","v1.5.1-rc3","v1.5.1-rc2","v1.5.1-rc1","v1.5.0","v1.5.0-rc4","v1.5.0-rc3","v1.5.0-rc2","v1.5.0-rc1","v1.5.0-rc0","v1.4.4.1","v1.4.4","v1.4.4-rc2","v1.4.4-rc1","v1.4.3","v1.4.3-rc3","v1.4.3-rc2","v1.4.3-rc1","v1.4.2","v1.4.2-rc4","v1.4.2-rc3","v1.4.2-rc2","v1.4.2-rc1","v1.4.1","v1.4.1-rc2","v1.4.1-rc1","v1.3.0-rc1","v1.2.0","v1.1.0","v1.0.0","v1.0rc6","v0.99.9n","v1.0rc5","v0.99.9m","v1.0rc4","v0.99.9l","v0.99.9k","v1.0rc3","v0.99.9j","v1.0rc2","v0.99.9i","v1.0rc1","v0.99.9h","v0.99.9g","v0.99.9f","v0.99.9e","v0.99.9d","v0.99.9c","v0.99.9b","v0.99.9a","v0.99.8g","v0.99.8f","v0.99.8e","v0.99.8d","v0.99.8c","v0.99.8b","v0.99.8a","v0.99.8","v0.99.7","v0.99.6","v0.99.5","v0.99.4","v0.99.3","v0.99.2","v0.99.1","v0.99"],"database_specific":{"vanir_signatures_modified":"2026-08-12T15:13:10Z","vanir_signatures":[{"deprecated":false,"digest":{"line_hashes":["287541224991611783929304424063397142729","201626679470735635245580260573603676463","79108016917533103929930247912516288422","142728248326090405056862463894059309464","296916865485909401380256520087031735018","107702620755735800989214234120037163136","85481652939803844996118185620955310813","50702758241524699344169173020416681863"],"threshold":0.9},"id":"CVE-2024-52006-3fbe294f","signature_type":"Line","signature_version":"v1","source":"https://github.com/git/git/commit/b01b9b81d36759cdcd07305e78765199e1bc2060","target":{"file":"credential.h"}},{"deprecated":false,"digest":{"line_hashes":["260158271642589245371184095658696517521","168066770201353646701698468701498242902","117022953743430627333228759895527529570","80741658419984466202508021373473445500","219868289498191672137162985982676294357","100950624996769215000578011147918538971","144871054558959490727438474242640756633","300387172339610984259721421056419321221","173076204008931394733191969390279696925","209664971148701926164511298801331385466","36294067156051561765831809065321172492","31094318934870410253386823344574644554","134380716688470496077884396563649879338","12362312558529633846641298733987735647","237362938895979543516223756553674465379","179344433917774388235583535121212195484","332643330340535018516790162108779515777","264428630469171431733013642769900220621","133296834680838600691588860190635610663","37434402037797323084461457424074045404","1110620485159593023383302454182577217","39359139736876317939990983275709921473","330803958603946556776902818948558925298","296744511703792873261889418259379082851"],"threshold":0.9},"id":"CVE-2024-52006-5092ba12","signature_type":"Line","signature_version":"v1","source":"https://github.com/git/git/commit/b01b9b81d36759cdcd07305e78765199e1bc2060","target":{"file":"credential.c"}},{"digest":{"function_hash":"334634272559817877100954772857440798045","length":357},"id":"CVE-2024-52006-6329448c","signature_type":"Function","signature_version":"v1","source":"https://github.com/git/git/commit/b01b9b81d36759cdcd07305e78765199e1bc2060","target":{"file":"credential.c","function":"credential_write_item"},"deprecated":false},{"digest":{"function_hash":"316051934392824477773764991156368144037","length":522},"id":"CVE-2024-52006-654f3b99","signature_type":"Function","signature_version":"v1","source":"https://github.com/git/git/commit/b01b9b81d36759cdcd07305e78765199e1bc2060","target":{"file":"credential.c","function":"credential_write"},"deprecated":false},{"signature_version":"v1","source":"https://github.com/git/git/commit/b01b9b81d36759cdcd07305e78765199e1bc2060","target":{"file":"credential.c","function":"credential_config_callback"},"deprecated":false,"digest":{"length":744,"function_hash":"207413631165714746888446545836349020850"},"id":"CVE-2024-52006-c599328b","signature_type":"Function"}],"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-52006.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N"}]}