Join our Newsletter — 33% off our NHI Course

How do you patch or mitigate CVE-2022-1040 (Sophos Firewall Authentication Bypass)?

CISA’s required action for CVE-2022-1040 is to apply updates per vendor instructions. In practice, find every instance of Sophos Firewall 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.

What CVE-2022-1040 Means for a Firewall Estate

CVE-2022-1040 is not a theoretical bug to file away for later, it is an internet-facing appliance issue that should be handled as an urgent exposure question. Start by enumerating every Sophos Firewall instance, including devices that are shadowed behind NAT, managed by another team, or only used for remote access. The practical objective is to confirm where the product exists, whether it is reachable from untrusted networks, and whether the vendor update path is available for each instance.

For a firewall vulnerability, the first mistake is assuming perimeter placement reduces urgency. If the device is exposed to the internet, it is part of the attack surface even when no user traffic appears abnormal. The right response is to treat the appliance like a privileged control plane, not a commodity endpoint, because compromise can affect authentication, traffic policy, and visibility at the same time.

When you confirm exposure, use the vendor advisory and the CISA Known Exploited Vulnerabilities Catalog to verify the required remediation path and to align your urgency with a known-exploited issue.

Patch First, Then Use Mitigation as a Temporary Control

The preferred fix is always the vendor security update or the vendor-documented mitigation, because a bypass flaw is usually not something you can fully compensate for with perimeter rules alone. Apply the update to every affected instance in a controlled sequence, beginning with the least critical environment only if the vendor process requires validation first. If the appliance supports high-availability or clustering, verify how failover affects the update and whether both nodes remain exposed during the change window.

If patching cannot happen immediately, reduce the reachable attack surface rather than relying on hope. Remove internet exposure, restrict management and user access to tightly controlled source ranges, and if the device cannot be brought into a supportable state, take it out of service. For an appliance that mediates remote access, that may be disruptive, but it is safer than leaving a known exploited bypass open while waiting for a better maintenance window.

Use the vendor guidance as the authoritative source for version-specific action, and cross-check your estate against the CVE Program record so you are working from the canonical vulnerability identity when tracking remediation.

How to Check for Prior Abuse After Remediation

Because this flaw was used in the wild, patching alone is not enough. Review firewall logs, authentication events, administrative changes, VPN or remote-access sessions, configuration exports, and any unusual policy modifications that occurred before the fix. Look for indicators of access that would not be expected from legitimate administrators, especially changes that would preserve access, redirect traffic, or conceal later activity.

Also examine whether the appliance was used as a stepping stone into adjacent systems. A bypass on a firewall can become a broader incident if it enabled network reconnaissance, credential capture, or lateral movement before detection. If you find suspicious activity, preserve logs and configuration state before making further changes so you can support incident response and determine whether reimaging, credential rotation, or policy rollback is necessary.

Reference the NIST National Vulnerability Database for the vulnerability record trail, but rely on your own appliance logs for the compromise check, since exploitation evidence is environment-specific.

Risk and Threat Considerations

Internet-facing firewall bugs are high-impact because they can remove the trust boundary that other controls assume is in place. An authentication bypass can let an attacker act as an administrator, alter security policy, intercept traffic, or use the appliance as a foothold into internal systems. The risk is not just unauthorized access, it is also loss of confidence in the device’s filtering and monitoring role.

Failure mechanism: The flaw allows an unauthenticated or improperly authenticated request path to reach functionality that should have been protected, which makes the device behave as if it trusts the wrong caller.

Impact: Attackers can bypass normal administrative controls, manipulate the firewall’s configuration, and potentially use the appliance to support broader compromise or persistence inside the network.

Standards & Framework Alignment

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

CIS Controls v8 and NIST SP 800-53 Rev 5 set the technical controls, while ISO/IEC 27001:2022 defines the regulatory obligations.

Framework Control / Reference Relevance
CIS Controls v8 CIS-4 — Secure Configuration of Enterprise Assets and Software CVE mitigation depends on correcting the firewall's exposed configuration.
CIS-7 — Continuous Vulnerability Management The issue is a known exploited vulnerability that needs prompt tracking and remediation.
Recommendation — Harden the firewall and remove unnecessary exposure paths before resuming normal service. Track the appliance as a high-priority vulnerability until the vendor fix is applied.
NIST SP 800-53 Rev 5 SI-2 — Flaw Remediation The answer centers on applying vendor updates and verified mitigation for a known flaw.
IR-4 — Incident Handling The exploitation review after patching is an incident-response activity.
Recommendation — Apply the vendor update or documented mitigation and confirm the remediation took effect. Preserve evidence and investigate for signs of prior compromise after remediation.
ISO/IEC 27001:2022 A.8.8 — Management of technical vulnerabilities The vulnerability must be identified, prioritized, remediated and verified under vulnerability management.
Recommendation — Prioritize, remediate and verify the firewall vulnerability through formal technical vulnerability management.

Practitioner Guidance

What to prioritise: Focus first on inventorying every Sophos Firewall instance and deciding which ones are internet-reachable, because exposure status determines whether you need emergency change control or immediate isolation. Do not start with log review if you have not yet confirmed where the product is deployed.

What to verify: After remediation, verify that the vendor update or documented mitigation actually changed the device state, that remote administration is still restricted as intended, and that the firewall is no longer reachable from untrusted networks unless that exposure is explicitly required.

Decision rule: If you cannot patch promptly, treat the appliance as a live incident risk, not a routine maintenance item. Isolate it, narrow access, and plan for replacement or service removal if the required mitigation still leaves unacceptable exposure.

Practitioner takeaway: For a firewall bypass CVE, the real decision is not patch versus wait, it is whether you can afford to leave a trust boundary exposed after the flaw is known to be exploited.