Git RCE flaw tied to submodule recursion
A Git vulnerability allows remote code execution when the --recurse-submodules option is used, per CERT-FR advisory.
Sourcecert.cyber.gouv.fr — open the original
What to check
- Applies to
- The 1 CVE named below. Whether you run an affected version is not assessed: check the versions the source lists.
- Exploitation
- No exploitation in the wild and no public exploit is recorded for the CVEs named.
CERT-FR has issued an advisory regarding a vulnerability in Git that could allow an attacker to achieve arbitrary remote code execution. According to the vendor, exploitation is only possible when the --recurse-submodules option is used, which narrows the attack surface but does not eliminate risk for users and automation pipelines that rely on this feature when cloning or updating repositories with submodules.
The vulnerability affects all versions of Git. No evidence of in-the-wild exploitation is mentioned in the advisory. Defenders should consult the official Git security advisory (GHSA-vp2w-7xxj-jvxr) and apply available patches promptly, particularly in environments where CI/CD pipelines, build scripts, or developer workflows use --recurse-submodules when cloning untrusted or third-party repositories.
Organizations should audit their use of Git submodule recursion in automated tooling and avoid using --recurse-submodules with untrusted repository sources until patches are applied. Monitoring for anomalous process execution following git clone or git submodule operations is advisable as a detection measure.
Mentioned in this report
Detection guidance
Git Spawning Scripting or Download Utilities
A behavioural hunt for the technique in general, not a signature for the CVEs this report names.
git.exe spawning a shell, script host or download LOLBin, which can follow malicious submodule hooks or config abuse such as the --recurse-submodules RCE in GHSA-vp2w-7xxj-jvxr. Auto-generated starting point — validate and tune in your environment before deploying. IOC matches can false-positive on shared infrastructure and decay as adversary infrastructure rotates.
title: Git Spawning Scripting or Download Utilities
description: Detects git.exe directly spawning PowerShell, cmd, script hosts or download
LOLBins. Anomalous child processes after git clone or submodule operations were
suggested as the detection measure for the Git --recurse-submodules RCE.
references:
- https://www.cert.cyber.gouv.fr/avis/CERTFR-2026-AVI-1541
tags:
- attack.execution
- attack.t1203
logsource:
category: process_creation
product: windows
detection:
selection:
ParentImage|endswith: \git.exe
Image|endswith:
- \powershell.exe
- \pwsh.exe
- \wscript.exe
- \cscript.exe
- \mshta.exe
- \certutil.exe
- \bitsadmin.exe
- \regsvr32.exe
- \rundll32.exe
condition: selection
falsepositives:
- Developer repositories whose git hooks or aliases intentionally call PowerShell
- Build scripts that use git aliases to launch PowerShell helpers
level: medium
id: a1820f6d-51be-5245-af61-6afdaf82c92a
status: experimental
author: Vorant
Git Recursive Submodule Clone or Update
A behavioural hunt for the technique in general, not a signature for the CVEs this report names.
Hunting rule for git invoked with --recurse-submodules or --recursive, the precondition for the Git submodule RCE. Review the source repository and any child processes. Auto-generated starting point — validate and tune in your environment before deploying. IOC matches can false-positive on shared infrastructure and decay as adversary infrastructure rotates.
title: Git Recursive Submodule Clone or Update
description: 'Detects git.exe run with --recurse-submodules or --recursive, the only
exploitation precondition named in the advisory. Hunting rule: triage when the repository
is untrusted or when it runs on CI/CD hosts and is followed by unexpected child
processes.'
references:
- https://www.cert.cyber.gouv.fr/avis/CERTFR-2026-AVI-1541
tags:
- attack.execution
- attack.t1203
logsource:
category: process_creation
product: windows
detection:
selection:
Image|endswith: \git.exe
CommandLine|contains:
- --recurse-submodules
- --recursive
condition: selection
falsepositives:
- Normal developer and CI/CD clones of trusted repositories that use submodules
- Package or build tooling that clones dependencies recursively
level: low
id: 1092310d-46f1-5710-8451-d619177804f8
status: experimental
author: Vorant
Git Spawning Network Tools or Reverse Shell Utilities on Linux
A behavioural hunt for the technique in general, not a signature for the CVEs this report names.
git spawning curl, wget, netcat or socat on Linux, which can indicate code execution triggered by a malicious repository or submodule. Auto-generated starting point — validate and tune in your environment before deploying. IOC matches can false-positive on shared infrastructure and decay as adversary infrastructure rotates.
title: Git Spawning Network Tools or Reverse Shell Utilities on Linux
description: Detects git directly spawning curl, wget, netcat variants or socat on
Linux. Git does not normally launch these itself, so this may indicate code execution
via a malicious submodule or hook, as in the Git --recurse-submodules RCE.
references:
- https://www.cert.cyber.gouv.fr/avis/CERTFR-2026-AVI-1541
tags:
- attack.execution
- attack.t1203
logsource:
category: process_creation
product: linux
detection:
selection:
ParentImage|endswith: /git
Image|endswith:
- /curl
- /wget
- /nc
- /ncat
- /netcat
- /socat
condition: selection
falsepositives:
- Git aliases or wrappers that deliberately call curl or wget
- Custom CI tooling invoking downloads through git exec-path helpers
level: medium
id: 127fe305-3f65-57e2-afaf-70434c5d77cc
status: experimental
author: Vorant
Behavioural rules are generated from public reporting — validate in your environment before deploying.
Source reporting: https://www.cert.cyber.gouv.fr/avis/CERTFR-2026-AVI-1541
Free public brief. The Sigma rules (and on a paid plan the Splunk SPL already written, plus Elastic and KQL where they apply) are in the app with a free account, no card. Slack alerts on the vendors you run come with the paid plans, and a new account gets five days of them.
What this brief leaves out
This page is the free tier: the write-up, the severity, the names. In the app the same report carries its Sigma rules (and on a paid plan the Splunk SPL already written, plus Elastic and Microsoft KQL where they apply) and live profiles of the CVEs it names. A free account in the app opens every report of the last 30 days, the security research and news included; the paid plans add the archive, what to hunt, the investigations and the rules as SIEM queries.
It sits in a corpus of 17,321 reports from 146 sources, 698 of them written in the last seven days, and it grows through the day.
A new account starts with five days of all of it, no card, then keeps the last 30 days of reporting free, the research and news included. Slack alerts are a paid-plan feature: name the vendors you run and Slack hears about the reports that touch them, not the rest of the week's. Nothing is charged unless you subscribe.
Create a free account What it costs