Key takeaway
- Critical flaws CVE-2022-25880 (DIAEnergie SQL injection) and CVE-2022-1040 (Sophos Firewall auth bypass): affected versions, scores, fixes, response.
CVE-2022-25880 is a critical SQL injection flaw in Delta Electronics DIAEnergie, and CVE-2022-1040 is a critical authentication bypass in Sophos Firewall that allows remote code execution. Both were published in March 2022, both can be reached over the network without logging in, and both have vendor fixes.
This guide is for security, infrastructure and operations teams that still run either product, or that want a clear way to read a CVE entry. It covers what each flaw is, how the two compare, what the severity scores mean and how to respond. It also points to the Cyber Security Services page for wider security work, and to the database and vendor pages the facts come from.
What is CVE-2022-25880 in Delta Electronics DIAEnergie?
DIAEnergie is an industrial energy management system from Delta Electronics. The NVD record for CVE-2022-25880 describes a blind SQL injection in all versions before 1.8.02.004. The entry says it allows an attacker to inject arbitrary SQL queries, which can lead to retrieving and changing database contents and running system commands. The weakness type is CWE-89, SQL injection.
The NVD entry names the vulnerable file as HandlerTag_KID.ashx. Some older write-ups of this flaw named a different file, so use the NVD wording when you search logs or write detection rules. The CISA advisory ICSA-22-081-01 is listed as the reference for mitigation, and the fix is to upgrade to version 1.8.02.004 or later.
What is CVE-2022-1040 in Sophos Firewall?
The Sophos advisory SA-20220325 describes an authentication bypass in the User Portal and Webadmin of Sophos Firewall that allows remote code execution. An external researcher reported it through the Sophos bug bounty programme. It affects Sophos Firewall v18.5 MR3 (18.5.3) and older.
Sophos states it saw the flaw used against a small set of organisations, mainly in South Asia, and notified each one directly. The advisory says v19.0 GA and v18.5 MR4 include the fix, and that hotfixes were issued for several earlier releases, including some end-of-life versions. Customers with automatic hotfix installation enabled, which is the default, needed to take no action. Users of older versions must upgrade. The advisory was last updated on 5 April 2022, so treat it as a record of a flaw that was patched years ago.
The NVD record for CVE-2022-1040 also carries a CISA Known Exploited Vulnerabilities entry: added on 31 March 2022, with the required action "Apply updates per vendor instructions" and a due date of 21 April 2022.
How do the two vulnerabilities compare?
| Item | CVE-2022-25880 | CVE-2022-1040 |
|---|---|---|
| Product | Delta Electronics DIAEnergie | Sophos Firewall (User Portal and Webadmin) |
| Flaw | Blind SQL injection (CWE-89) | Authentication bypass leading to remote code execution |
| Affected | All versions before 1.8.02.004 | v18.5 MR3 (18.5.3) and older |
| Published in NVD | 29 March 2022 | 25 March 2022 |
| CVSS v3.1 base score | 9.8 Critical | 9.8 Critical (NVD and Sophos) |
| CISA KEV entry | None in the NVD data read | Added 31 March 2022 |
| Fix | Upgrade to 1.8.02.004 or later | v19.0 GA, v18.5 MR4 or a listed hotfix |
| Interim step | No workaround stated in the sources read | Do not expose User Portal and Webadmin to the WAN; use VPN or Sophos Fusion |
What do the severity scores tell you?
Both NVD entries give a CVSS v3.1 base score of 9.8 with the vector AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H. Read as plain words, that means the attack comes over the network, is low in complexity, needs no privileges and no user interaction, and has a high impact on confidentiality, integrity and availability.
The NVD entry for CVE-2022-1040 also lists a CVSS v2.0 score of 7.5 (High). Some write-ups show 7.5 as the severity, but that is the older scoring system. The v3.1 score is 9.8. Likewise, a low-complexity vector does not match older descriptions of exploiting CVE-2022-25880 as challenging. A score is a starting point: whether a flaw is on the KEV list and whether the product is exposed to the internet matter as much.
How should you respond to a vulnerability like this?
- Identify every instance of the product and its exact version, including those outside the main estate.
- Compare the version with the vendor advisory and upgrade or apply the listed hotfix.
- Remove internet exposure of management portals, and use a VPN for remote administration.
- Check whether the CVE is on the CISA KEV list, because that means exploitation has been observed.
- Review logs for the period before patching, since a flaw that allows code execution may already have been used.
- Record the decision and the evidence, so an auditor can see what was checked and when.
How do AI agents change vulnerability response?
Most of the effort in handling a CVE is joining facts that live in different places: the advisory, the asset inventory, the exposure of each device and the change calendar. AI agents can do that joining work. An agent can read a new advisory, match it to the assets it affects, draft the ticket and propose the order of work, while a person approves any change to production. The weak point is not the matching but the context. An agent needs to know which systems are exposed, who owns them and which policy governs a change. ElixirClaw is XenonStack's AI agents computing platform for building and running agent workflows of this kind.
What should you do first?
- Search your asset list for DIAEnergie and Sophos Firewall, and note every version.
- Confirm none of them is below the fixed versions named above.
- Check that no management portal is reachable from the internet.
- Add the KEV list to your regular patch review.
- Write down who approves an emergency change, so the next advisory moves faster.
To map one security decision your agents make, and the data and policy it depends on, book a Context Workshop. See what happens in the workshop.
For more advisories, explore recently discovered critical vulnerabilities and their remediations.
Frequently asked questions
What is CVE-2022-25880?
It is a blind SQL injection in Delta Electronics DIAEnergie, affecting all versions before 1.8.02.004. The NVD entry says it allows an attacker to inject arbitrary SQL queries.
What is CVE-2022-1040?
It is an authentication bypass in the User Portal and Webadmin of Sophos Firewall v18.5 MR3 and older that allows remote code execution. Sophos has released fixes and hotfixes.
Is CVE-2022-1040 on the CISA Known Exploited Vulnerabilities list?
Yes. The NVD record shows it was added on 31 March 2022, with the required action to apply updates per vendor instructions.
How do I protect a Sophos Firewall from CVE-2022-1040?
Upgrade to a fixed version or apply the hotfix, and stop exposing the User Portal and Webadmin to the WAN. Sophos recommends VPN or Sophos Fusion for remote access.
Why do some pages show a different severity for CVE-2022-1040?
Some pages quote the older CVSS v2.0 score of 7.5, while the v3.1 base score from NVD and Sophos is 9.8.
Ready to put AI agents to work? See an ElixirClaw demo: the agentic OS to build, orchestrate and govern AI agents across your enterprise systems.
Explore the XenonStack platform family: ElixirData · ElixirClaw · ElixirHub · NexaStack · MetaSecure · Neural AI · AgentGRC · AgentSRE · AgentAnalyst · AgentInstruct · AgentRAI · AgentScrum · AgentSearch · AgentForce · AI Aviator · SAIF Aviator · CohortIQ · XenonStack AI · XenonStack UAE