Join our Newsletter — 33% off our NHI Course
Home› FAQ› Threats, Abuse & Incident Response› How do you patch or mitigate CVE-2022-36804 (Atlassian…
Threats, Abuse & Incident Response

How do you patch or mitigate CVE-2022-36804 (Atlassian Bitbucket Server and Data Center Command Injection)?

← Back to all FAQ
By NHI Mgmt Group Editorial Team Updated October 19, 2026 Domain: Threats, Abuse & Incident Response

CISA's required action for CVE-2022-36804 is to apply updates per vendor instructions. In practice, find every instance of Atlassian Bitbucket Server and Data Center in your estate, apply the vendor security update or documented mitigation, and if no fix can be applied, remove internet exposure or take the product out of service. After patching, review logs for signs of earlier exploitation, because attackers used this flaw in the wild.

How to confirm Bitbucket exposure before you patch CVE-2022-36804

Start by locating every Atlassian Bitbucket Server and Data Center deployment, then verify whether each instance is actually internet reachable, behind a reverse proxy, or only available on a segmented internal network. For a vulnerability with known exploitation in the wild, exposure is not just “is the package installed”, but “can an attacker reach the vulnerable interface before you finish remediation”.

Inventory matters because patching the wrong tier or missing a forgotten node leaves the exploit path intact. Check clustered nodes, backup instances, staging systems that mirror production, and any admin consoles exposed through shared infrastructure. Where Bitbucket is internet facing, treat the exposure as urgent even if the business workload seems low risk.

When the product is embedded in a larger platform, confirm version ownership and operational ownership together. A team can believe another group is handling the update while the public endpoint stays live. The practical control is to identify each running instance, each route to it, and each owner who can approve emergency maintenance.

Patch, mitigate, or take Bitbucket out of service

For this CVE, the right order is simple: apply the vendor security update or the documented mitigation first, then only use exposure reduction as a temporary substitute when patching cannot happen immediately. If you need the vendor guidance for the exact update path, use the Atlassian advisory and the CISA KEV catalogue rather than relying on informal change notes.

If a fix cannot be applied fast enough, the next best action is to remove internet exposure, restrict access to trusted administrative networks, or take the product out of service until the remediation window opens. That is especially important for command injection flaws, because the service itself may become the execution vehicle rather than merely a data target.

Do not treat “we blocked public access” as a permanent control unless you have verified that every path in, including VPN, jump hosts, CI runners, and administrative subnets, is still constrained. A vulnerable internal-only service can still be reached after one foothold elsewhere in the environment.

For broader prioritisation and emergency response patterns around actively exploited flaws, see Zero-Day and Exploited Vulnerabilities Guide. It aligns well with KEV-driven triage, emergency mitigation, and post-patch hunting.

What to check after patching or mitigation

After you remediate, review authentication, application, and system logs for signs of prior exploitation. For an exploited command injection issue, the key question is not only whether the fix is now installed, but whether the attacker already used the flaw to run commands, stage tools, or access adjacent systems before you closed the door.

Look for unusual process creation, shell invocation, outbound network connections, suspicious archive or script files, new user accounts, altered scheduled tasks, and unexpected changes to repository contents or service configuration. If Bitbucket has privileged access to source code, build systems, deployment automation, or secrets, the blast radius can extend beyond the application host itself.

Where you find credible evidence of abuse, treat it as a compromise assessment problem, not just a patch verification problem. The right follow-up is to validate whether credentials, tokens, SSH keys, or integration secrets stored or used by the platform may have been exposed during the incident window.

Risk and Threat Considerations

Command injection in a repository platform is dangerous because the service often sits close to source code, deployment secrets, and administrative tooling. Once exploited, an attacker may gain code execution with enough access to pivot into build pipelines, steal credentials, or tamper with repository content.

Failure mechanism: The flaw can let a remote requester supply input that the application passes into operating system commands, turning a normal web request into unauthorized command execution on the server.

Impact: The immediate impact can include host compromise, data theft, tampering with source control assets, and follow-on intrusion into connected systems that trust the Bitbucket environment.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

CIS Controls v8, NIST SP 800-53 Rev 5 and OWASP ASVS set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
CIS Controls v8CIS-4 — Secure Configuration of Enterprise Assets and SoftwareRemoving exposure and hardening Bitbucket require secure configuration discipline.
Recommendation — Harden and isolate Bitbucket instances to reduce exploitable exposure.
NIST SP 800-53 Rev 5SI-2 — Flaw RemediationThe question is about applying updates or mitigations for a known flaw.
AU-6 — Audit Record Review, Analysis, and ReportingPost-exploitation log review is central after patching an exploited flaw.
Recommendation — Apply vendor updates or mitigations promptly for the vulnerable Bitbucket deployment. Review audit and system logs for signs of prior exploitation after remediation.
OWASP ASVSV15 — Secure Coding and ArchitectureCommand injection is an application-layer input-to-command execution failure.
Recommendation — Review input handling and command execution paths that enable injection.

Practitioner Guidance

What to prioritise: If Bitbucket is internet exposed, patch or isolate it before spending time on deep forensic work. Exposure reduction is the fastest way to reduce attacker opportunity while you complete remediation and investigation.

What to verify: Confirm that the vendor fix or mitigation is applied on every node, not just the primary server. In clustered or replicated deployments, one unpatched node can preserve the exploit path.

Escalation / exception: If patching must wait, document the exception, remove public access, and set an expiry on the workaround. A temporary mitigation that becomes a standing state is usually where command-injection risk resurfaces.

Practitioner takeaway: For an actively exploited server-side injection flaw, the decision point is whether the service can still be reached. If it can, treat patching, isolation, and post-exploitation review as one response, not three separate tasks.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on October 19, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org