Possible Bitbucket Pre-Auth RCE via git archive exec Null-Byte Injection (CVE-2022-36804) (via webserver)

PremiumReviewedSigma · High · v1
Category
webserver
Author
HuntRule
Published
2026-09-08
Updated
2026-09-08

ATT&CK techniques

Initial Access → Execution
  1. Recon

  2. Resource Dev

  3. Persistence

  4. Priv Esc

  5. Defense Evasion

  6. Cred Access

  7. Discovery

  8. Lateral Movement

  9. Collection

  10. C2

  11. Exfiltration

  12. Impact

What it detects

This rule detects requests to the Bitbucket archive REST endpoint carrying a null-byte encoded prefix and a git archive exec directive. This maps to CVE-2022-36804 where the prefix parameter is abused to inject arguments into the git archive command. An attacker uses this to spawn a shell and achieve unauthenticated remote command execution on the server.

Related detections9 linkedT1059.004 — drag to rearrange
Possible TP-Link Command Injection via WlanNetworkRpm Endpoint (via webserver)
Malicious Command Injection Probe via node Spawning Shell Arithmetic Echo (via process_creation)
Malicious Reverse Shell via bash dev tcp Redirection (via process_creation)
Suspicious GeoServer Java Process Spawning Download Utility
Possible Shellshock Bash Function Definition Injection via Process Creation
Malicious React Server Component RCE via Node Web Process Spawning Shell (via process_creation)
Malicious Reverse Shell Spawned from Oracle EBS Java Process
Suspicious NKAbuse Implant Staging under StoreService Config Directory (via file_event)
Malicious n8n Expression Sandbox Escape child_process Payload
Possible Bitbucket Pre-Auth RCE via git archive exec Null-Byte Injection (CVE-2022-36804) (via webserver)
Pivot detection · T1059.004 · 9 related

Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.