{"answers":{"affected":"It affects 1 product.","exploited":"Yes. Attackers have exploited CVE-2022-1040 in the wild since at least 31 Mar 2022.","fix":"No fix has been published for CVE-2022-1040 yet. Limit exposure of the affected software until one is available. US federal agencies must fix it by 21 Apr 2022.","what":"CVE-2022-1040 is a critical authentication bypass vulnerability in Sophos Firewall, published on 25 Mar 2022. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2022-1040 and fix it if it is affected.\n\nWhat it is: CVE-2022-1040 is a critical authentication bypass vulnerability in Sophos Firewall, published on 25 Mar 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: Yes. Attackers have exploited CVE-2022-1040 in the wild since at least 31 Mar 2022.\n\nAffected product: Sophos Firewall. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2022-1040/ (Markdown: https://insights.sbomify.com/CVE-2022-1040/index.md)","id":"CVE-2022-1040","markdown":"https://insights.sbomify.com/CVE-2022-1040/index.md","name":"CVE-2022-1040","record":{"aliases":["GHSA-9gcv-6rm7-vw3w"],"analysis":{"component_type":"network_device","fix_type":"upgrade","impacts":["code_execution","privilege_escalation"],"network_reachable":"yes","non_default_config":false,"product_category":"Sophos Firewall","requires_auth":"none","summary":"Remote attackers can bypass authentication in the User Portal and Webadmin to execute arbitrary code on Sophos Firewall devices.","user_interaction":"not_required","vuln_class":"auth_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"Sophos","cpe":[{"product":"sfos","vendor":"sophos"}],"cvss":{"score":9.8,"severity":"critical","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[],"description":"An authentication bypass vulnerability in the User Portal and Webadmin allows a remote attacker to execute code in Sophos Firewall version v18.5 MR3 and older.","ecosystems":[],"exploits":{"exploitdb":1,"first_seen":"2022-05-06","github_poc":7,"max_poc_stars":18,"metasploit":0,"nuclei":1,"refs":[{"date":"2022-09-25T15:15:01Z","kind":"github_poc","ref":"https://github.com/jam620/Sophos-Vulnerability","stars":18,"title":"CVE-2022-1040"},{"date":"2022-05-06T08:56:04Z","kind":"github_poc","ref":"https://github.com/killvxk/CVE-2022-1040","stars":16,"title":"may the poc with you"},{"date":"2022-10-07T14:44:42Z","kind":"github_poc","ref":"https://github.com/Keith-amateur/cve-2022-1040","stars":3,"title":"Save the trouble to open the burpsuite..."},{"date":"2022-10-30T19:20:57Z","kind":"github_poc","ref":"https://github.com/jackson5sec/CVE-2022-1040","stars":3,"title":"This vulnerability allows an attacker to gain unauthorized access to the firewall management space by bypassing authentication"},{"date":"2023-09-26T07:26:42Z","kind":"github_poc","ref":"https://github.com/Cyb3rEnthusiast/CVE-2022-1040","stars":1,"title":"New exploitation of 2020 Sophos vuln"},{"date":"2022-09-02","kind":"exploitdb","ref":"51006","stars":null,"title":"Sophos XG115w Firewall 17.0.10 MR-10 - Authentication Bypass"},{"date":"2023-01-08T15:46:00Z","kind":"github_poc","ref":"https://github.com/michealadams30/CVE-2022-1040","stars":0,"title":"Sophos EXploit"},{"date":"2024-02-05T07:35:41Z","kind":"github_poc","ref":"https://github.com/xMr110/CVE-2022-1040","stars":0,"title":null}],"tier":"exploited"},"has_fix":null,"headline":"Sophos Firewall Authentication Bypass","id":"CVE-2022-1040","indexable":true,"kev":{"dateAdded":"2022-03-31","dueDate":"2022-04-21","knownRansomwareCampaignUse":"Unknown","product":"Firewall","requiredAction":"Apply updates per vendor instructions.","vendorProject":"Sophos","vulnerabilityName":"Sophos Firewall Authentication Bypass Vulnerability"},"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"auth_bypass","year":"2022"},"n_packages":0,"n_references":3,"next":{"headline":"Out-of-bound write vulnerability in the Bluetooth mesh core stack can be triggered during provisioning","id":"CVE-2022-1041"},"packages":[],"prev":{"headline":"ICSA-22-104-03 Red Lion DA50N","id":"CVE-2022-1039"},"products":["Sophos Firewall"],"published":"2022-03-25","related":[{"cvss_score":10,"headline":"Sophos SFOS SQL Injection","id":"CVE-2020-12271","kev_date_added":"2021-11-03","published":"2020-04-27"},{"cvss_score":9.8,"headline":"Memory corruption in n/a","id":"CVE-2020-11503","kev_date_added":null,"published":"2020-06-18"},{"cvss_score":8.8,"headline":"SQL injection in n/a","id":"CVE-2018-16116","kev_date_added":null,"published":"2019-06-20"},{"cvss_score":8.8,"headline":"Command injection in n/a","id":"CVE-2018-16117","kev_date_added":null,"published":"2019-06-20"},{"cvss_score":8.1,"headline":"Command injection in n/a","id":"CVE-2018-16118","kev_date_added":null,"published":"2019-06-20"},{"cvss_score":6.1,"headline":"Cross-site scripting in n/a","id":"CVE-2017-18014","kev_date_added":null,"published":"2018-01-12"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"open","licence":"CC0 1.0","name":"CISA KEV"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"attribution","licence":"GPL-2.0-or-later","name":"Exploit-DB"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"active","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-10-21","vendors":["Sophos"]},"summary":"Remote attackers can bypass authentication in the User Portal and Webadmin to execute arbitrary code on Sophos Firewall devices.","url":"https://insights.sbomify.com/CVE-2022-1040/"}