engine.io: Improper Handling of Exceptional Conditions
CVE-2022-21676 is a high-severity improper handling of exceptional conditions vulnerability in engine.io from Socketio, with a CVSS 3.1 base score of 7.5 out of 10. It can be exploited remotely over the network by an unauthenticated attacker, without any action from a user. Affected engine.io versions: >= 4.0.0, < 4.1.2; >= 5.0.0, < 5.2.1; >= 6.0.0, < 6.1.1. The record does not name a fixed version, so check the vendor advisory. There is no confirmed exploitation so far. EPSS estimates a 2.85% chance of exploitation within 30 days, higher than 87% of scored CVEs.
High severity with no evidence of exploitation so far.
What to do
- Check which version of engine.io you run against the affected versions below, and install the vendor's latest release.
- Read the advisory on github.com for workarounds and exact fixed builds.
- Until you can update, restrict network access to the affected service so it is not reachable from untrusted networks.
Affected products and versions
| Vendor | Product | Affected versions | Fixed in |
|---|---|---|---|
| Socketio | engine.io | >= 4.0.0, < 4.1.2; >= 5.0.0, < 5.2.1; >= 6.0.0, < 6.1.1 | Not stated |
Version data comes from the organisation that assigned the CVE. Confirm against the vendor advisory before deciding you are unaffected.
How the severity score breaks down
- Attack vector
- NetworkCan be exploited remotely over a network, including the internet.
- Attack complexity
- LowNo special conditions are needed; the attack works reliably.
- Privileges required
- NoneNo account or login is needed.
- User interaction
- NoneNo action by a victim is required.
- Scope
- UnchangedImpact stays within the vulnerable component.
- Confidentiality
- NoneNo data is disclosed.
- Integrity
- NoneNothing can be modified.
- Availability
- HighThe component can be taken down completely.
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H. Scored by NVD.
| Scoring system | Score | Severity | Scored by |
|---|---|---|---|
| CVSS 3.1 | 7.5 | High | CNA (github.com) |
| CVSS 3.1 | 7.5 | High | NVD |
| CVSS 2.0 | 5.0 | Medium | NVD |
Official description
Engine.IO is the implementation of transport-based cross-browser/cross-device bi-directional communication layer for Socket.IO. A specially crafted HTTP request can trigger an uncaught exception on the Engine.IO server, thus killing the Node.js process. This impacts all the users of the `engine.io` package starting from version `4.0.0`, including those who uses depending packages like `socket.io`. Versions prior to `4.0.0` are not impacted. A fix has been released for each major branch, namely `4.1.2` for the `4.x.x` branch, `5.2.1` for the `5.x.x` branch, and `6.1.1` for the `6.x.x` branch. There is no known workaround except upgrading to a safe version.
Source: the CVE record as published by its numbering authority, via NVD and CVE.org.
The underlying weakness: Improper Handling of Exceptional Conditions
The product does not handle or incorrectly handles an exceptional condition.
More Improper Handling of Exceptional Conditions vulnerabilities (CWE-755)
Timeline
- CVE record published.
- CISA published its SSVC assessment (exploitation: none, automatable: yes, technical impact: partial).
- Record last changed materially (score, affected products, status or references).
References
Advisories
- github.com/socketio/engine.io/security/advisories/GHSA-273r-mgr4-v34fThird Party Advisory
Patches and release notes
- github.com/socketio/engine.io/commit/66f889fc1d966bf5bfa0de1939069153643874abThird Party Advisory
- github.com/socketio/engine.io/commit/a70800d7e96da32f6e6622804ef659ebc58659dbThird Party Advisory
- github.com/socketio/engine.io/commit/c0e194d44933bd83bf9a4b126fca68ba7bf5098cThird Party Advisory
- github.com/socketio/engine.io/releases/tag/4.1.2Release Notes, Third Party Advisory
- github.com/socketio/engine.io/releases/tag/5.2.1Release Notes, Third Party Advisory
- github.com/socketio/engine.io/releases/tag/6.1.1Release Notes, Third Party Advisory
Third-party and government advisories
- security.netapp.com/advisory/ntap-20220209-0002/Third Party Advisory
Other vulnerabilities in engine.io
- 7.5 High severity
Recent Improper Handling of Exceptional Conditions vulnerabilities
- 7.5 High severity
- 8.8 High severity
Google Chromium V8 Memory Corruption Exploited
- 8.6 High severity
- 9.8 Critical severity
Apache Struts Remote Code Execution Exploited
Spotted an error? Tell us.