{"id":"CVE-2025-48384","kind":"vulnerability","aliases":["CVE-2025-48384"],"related":[],"title":"Git is a fast, scalable, distributed revision control system with an unusually rich command set that provides both…","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.","summary":"Git mishandles carriage return characters in configuration files, which lets a crafted repository or config cause Git to follow a symbolic link to a path it should not touch. An attacker who can get a victim to use a malicious repository could read or write files outside the intended location on the victim's machine.","severity":"high","cvss":8.0,"epss":null,"exploited":true,"exploited_at":"2025-08-25T00:00:00+00:00","products":[{"name":"Git Git","fixed":[],"affected":"","ecosystem":"vendor"},{"name":"git-scm git","fixed":["2.43.7"],"affected":"< 2.43.7","ecosystem":"vendor"},{"name":"git-scm git","fixed":["2.44.4"],"affected":">= 2.44.0, < 2.44.4","ecosystem":"vendor"},{"name":"git-scm git","fixed":["2.45.4"],"affected":">= 2.45.0, < 2.45.4","ecosystem":"vendor"},{"name":"git-scm git","fixed":["2.46.4"],"affected":">= 2.46.0, < 2.46.4","ecosystem":"vendor"},{"name":"git-scm git","fixed":["2.47.3"],"affected":">= 2.47.0, < 2.47.3","ecosystem":"vendor"},{"name":"git-scm git","fixed":["2.48.2"],"affected":">= 2.48.0, < 2.48.2","ecosystem":"vendor"},{"name":"git-scm git","fixed":["2.49.1"],"affected":">= 2.49.0, < 2.49.1","ecosystem":"vendor"},{"name":"git-scm git","fixed":["2.50.1"],"affected":">= 2.50.0, < 2.50.1","ecosystem":"vendor"},{"name":"debian linux","fixed":[],"affected":"= 11.0","ecosystem":"vendor"},{"name":"apple xcode","fixed":["26.0"],"affected":"< 26.0","ecosystem":"vendor"}],"ecosystems":["vendor"],"tags":["ci-runners","developers","exploited","git","runtime","self-hosted"],"not_affected_if":["git-not-installed"],"how_to_check":"Run 'git --version' and compare against the fixed release in the vendor advisory.\nCheck whether the version reports an unpatched build from your OS package manager.","fix":"Upgrade Git to a patched release per the vendor advisory (fixed version not stated in the source).\nIf upgrade is not possible, follow CISA mitigation guidance: apply vendor mitigations or discontinue use.","status":"open","published_at":"2025-07-08T19:15:42+00:00","first_seen_at":"2026-10-23T19:11:51+00:00","triaged_at":"2026-10-23T20:46:30+00:00","updated_at":"2026-10-23T22:29:05+00:00","category":"runtime","confidence":0.5,"triage":{"at":"2026-10-23T20:46:30Z","model":"claude-haiku-5-5","output":{"fix":"Upgrade Git to a patched release per the vendor advisory (fixed version not stated in the source).\nIf upgrade is not possible, follow CISA mitigation guidance: apply vendor mitigations or discontinue use.","reach":"local","summary":"Git mishandles carriage return characters in configuration files, which lets a crafted repository or config cause Git to follow a symbolic link to a path it should not touch. An attacker who can get a victim to use a malicious repository could read or write files outside the intended location on the victim's machine.","category":"runtime","who_cares":["git","developers","ci-runners","self-hosted"],"confidence":0.5,"needs_auth":"unknown","worst_case":"Attacker reads or writes files outside the repository through symbolic link following.","analyst_note":"Find the fixed Git versions and the exact trigger condition in the Git security advisory for CVE-2025-48384 and the CISA KEV entry.","how_to_check":"Run 'git --version' and compare against the fixed release in the vendor advisory.\nCheck whether the version reports an unpatched build from your OS package manager.\nunknown","needs_analyst":true,"not_affected_if":["git-not-installed"],"user_interaction":"yes","needs_special_setup":"unknown","severity_if_unknown":"high"},"cost_usd":0.000473,"input_tokens":2499,"output_tokens":447,"severity_before":"unknown"},"analyst_status":null,"analyst_note":null,"search":"'-2025':19A,22A '-48384':20A,23A 'access':151C 'alter':207C,229C 'apple':60A 'attack':102B 'carriag':74B,163C 'caus':87B,182C 'charact':76B 'check':216C 'checkout':244C,253C 'ci':63B 'ci-runn':62B 'command':14A,140C 'config':86B,157C,172C,190C 'configur':78B 'contain':202C,239C 'control':8A,134C 'could':113B 'cr':178C,184C,205C 'craft':83B 'crlf':168C 'cve':18A,21A 'debian':58A 'develop':65B 'directori':235C 'distribut':6A,132C 'entri':173C 'execut':241C,251C 'exist':225C 'exploit':66B 'fast':4A,130C 'feed':167C 'file':79B,117B 'fix':257C 'follow':90B 'full':150C 'get':105B 'git':1A,24A,25A,27A,29A,31A,33A,35A,37A,39A,41A,43A,45A,47A,49A,51A,53A,55A,57A,67B,72B,88B,127C,159C 'git-scm':26A,30A,34A,38A,42A,46A,50A,54A 'high':146C 'high-level':145C 'hook':234C,245C 'host':71B 'incorrect':220C 'initi':195C 'intend':120B 'intern':153C 'later':192C 'let':81B 'level':147C 'line':166C 'link':93B 'linux':59A 'locat':121B,221C 'lost':187C 'machin':126B 'malici':111B 'may':248C 'mishandl':73B 'oper':148C 'outsid':118B 'path':96B,201C,208C,230C 'point':227C 'post':243C 'post-checkout':242C 'provid':17A,143C 'quot':181C 'read':114B,155C,193C,210C 'repositori':84B,112B 'result':211C 'return':75B,164C 'revis':7A,133C 'rich':13A,139C 'runner':64B 'runtim':68B 'scalabl':5A,131C 'scm':28A,32A,36A,40A,44A,48A,52A,56A 'script':247C 'self':70B 'self-host':69B 'set':15A,141C 'strip':160C 'submodul':197C,200C,214C,233C,238C 'symbol':92B 'symlink':224C 'system':9A,135C 'touch':100B 'trail':162C,177C,204C 'unintent':250C 'unusu':12A,138C 'use':109B 'v2.43.7':259C 'v2.44.4':260C 'v2.45.4':261C 'v2.46.4':262C 'v2.47.3':263C 'v2.48.2':264C 'v2.49.1':265C 'v2.50.1':267C 'valu':158C,174C 'victim':107B,124B 'vulner':255C 'write':116B,170C 'xcode':61A","nicknames":[],"mitigations":[],"who_affected":null,"tier":null,"verified":{},"analyst_revisit_at":null,"first_public_at":"2025-07-08T19:15:42+00:00","kev":{"dateAdded":"2025-08-25","dueDate":"2025-09-15","requiredAction":"Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.","knownRansomwareCampaignUse":"Unknown"},"cvss_vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H","cvss_by":"security-advisories@github.com","poc_count":0,"sources":[{"source":"kev","external_id":"CVE-2025-48384","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog?search_api_fulltext=CVE-2025-48384","severity":null,"published_at":"2025-08-25T00:00:00+00:00","modified_at":null,"first_seen_at":"2026-10-23T19:11:51+00:00","fetched_at":"2026-10-25T17:39:55+00:00","note":null},{"source":"nvd","external_id":"CVE-2025-48384","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-48384","severity":null,"published_at":"2025-07-08T19:15:42+00:00","modified_at":"2026-09-24T13:10:00+00:00","first_seen_at":"2026-10-23T22:29:05+00:00","fetched_at":"2026-10-23T22:29:05+00:00","note":null}],"documents":[],"notice":"Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai"}