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 linkedT1190 — drag to rearrange
Malicious PostgreSQL COPY FROM PROGRAM Command Execution via Managed Cloud Database (via process_creation)
Suspicious PAN-OS Shell Execution Setting panusername via Command Injection (via process_creation)
Malicious OMI Server Spawning Shell as Root via OMIGOD SCX Provider (via process_creation)
Possible F5 iControl REST Remote Code Execution via Util Bash Endpoint
Cleo File Transfer Software Spawning Command Interpreter
Possible React2Shell CVE-2025-55182 Prototype Pollution Exploitation
Malicious Shell Payload Piped from curl to zsh
Possible Next.js Middleware Auth Bypass via X-Middleware-Subrequest Header (CVE-2025-29927)
Possible Ivanti Pulse Connect Secure Command Injection via License Keys-Status Endpoint (via webserver)
Possible Bitbucket Pre-Auth RCE via git archive exec Null-Byte Injection (CVE-2022-36804) (via webserver)
Pivot detection · T1190 · 9 related

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