Cyber Security News

PoC Released for High-Severity Git CLI Vulnerability Allowing Arbitrary File Writes

A critical vulnerability in Git’s command-line interface has been disclosed with public proof-of-concept exploits available, allowing arbitrary file writes and remote code execution on Linux and macOS systems.

CVE-2025-48384 affects Git installations using git clone –recursive on weaponized repositories, exploiting improper handling of carriage return characters in .gitmodules files to bypass security controls.

FieldDetails
CVE IDCVE-2025-48384
CVSS Score8.1/10 (High)
Vulnerability TypeArbitrary File Write, Remote Code Execution
CWE ClassificationPath Traversal, Configuration Parsing
Affected PlatformsLinux, macOS (Windows unaffected)

Technical Analysis and Exploitation

According to the DataDog report, the vulnerability stems from a mismatch in Git’s configuration parser behavior when processing control characters.

Specifically, carriage return (\r) characters may be stripped during read operations but preserved during write operations, creating a read-write mismatch.

Attackers can craft malicious .gitmodules files with submodule paths ending in carriage returns, such as hooks\r../../../.git/hooks/malicious.sh.

Screenshot of the Query in workload protection

When Git processes these paths, the config parser reads the path as hooks but writes to the full path including the carriage return, enabling directory traversal outside the intended submodule location.

This primitive allows attackers to write malicious Git Hook scripts to the victim’s .git/hooks directory, achieving remote code execution when common Git operations like git commit and git merge are performed.

The GitHub Desktop client for macOS is also vulnerable due to its default use of git clone –recursive. Windows installations remain unaffected due to differences in control character handling on UNIX-derived systems.

Publich Poc

Affected Versions and Patches

Git coordinated a security release on July 8, 2025, addressing the vulnerability across multiple versions:

Git Version RangeStatusPlatforms Affected
2.43.6 and priorVulnerableLinux, macOS
2.43.7PatchedLinux, macOS
2.44.0–2.44.3VulnerableLinux, macOS
2.44.4PatchedLinux, macOS
2.45.0–2.45.3VulnerableLinux, macOS
2.45.4PatchedLinux, macOS
2.46.0–2.46.3VulnerableLinux, macOS
2.46.4PatchedLinux, macOS
2.47.0–2.47.2VulnerableLinux, macOS
2.47.3PatchedLinux, macOS
2.48.0–2.48.1VulnerableLinux, macOS
2.48.2PatchedLinux, macOS
2.49.0VulnerableLinux, macOS
2.49.1PatchedLinux, macOS
2.50.0VulnerableLinux, macOS
2.50.1PatchedLinux, macOS

The vulnerability carries a CVSS score of 8.1 (High) and poses significant risks to software developers and CI/CD systems.

Exploitation scenarios include writing malicious hooks for persistence, overwriting Git configuration files to exfiltrate intellectual property, and compromising automated build pipelines.

Organizations should immediately upgrade to patched versions using their package managers. GitHub Desktop users on macOS should temporarily use the Git CLI until a patch is released.

Security teams should audit .gitmodules files for suspicious carriage return characters and implement detection rules for git clone –recursive operations against untrusted repositories.

Stay Updated on Daily Cybersecurity News . Follow us on Google News, LinkedIn, and X.

Divya

Divya is a Senior Journalist at GBhackers covering Cyber Attacks, Threats, Breaches, Vulnerabilities and other happenings in the cyber world.

Recent Posts

Storm-2603 Hackers Exploit SharePoint and Abuse Cloudflare Tunnel to Hide Remote Access

A December intrusion to Storm-2603, the China-based group Microsoft ties to Warlock ransomware. The attackers…

8 minutes ago

OpenSSH sshole Flaw Allows Hackers to Log Into Password-Disabled Linux Accounts Using 257-Character Passwords

A decade-old authentication bypass in OpenSSH on musl-based Linux lets attackers log into accounts that…

11 minutes ago

New GhostMap Android Vulnerability Can Crash Phones Permanently Without Opening an App or Granting Permissions

Bitdefender researchers have revealed a vulnerability called GhostMap that affects Android devices. This vulnerability can…

21 minutes ago

Microsoft Paint Vulnerability Allows Hackers to Execute Malicious Code Remotely Without User Interaction

Microsoft has announced a vulnerability in Windows Paint that could let unauthenticated attackers execute malicious…

44 minutes ago

ARTEX AI Framework Linked to Bank Breaches and Cloud Attacks Found Exposed Across Hundreds of Servers

An autonomous penetration-testing framework linked to South Korean banking breaches and cloud supply-chain attacks is…

1 hour ago

Shopify Makes IP Allowlisting Mandatory for All Public Apps to Prevent Stolen API Token Abuse

Shopify is making IP allowlisting mandatory for all public apps to limit abuse of stolen…

1 hour ago