CVE-2021-21293
"Blaze File Handle Exhaustion Vulnerability"
Description
blaze is a Scala library for building asynchronous pipelines, with a focus on network IO. All servers running blaze-core before version 0.14.15 are affected by a vulnerability in which unbounded connection acceptance leads to file handle exhaustion. Blaze, accepts connections unconditionally on a dedicated thread pool. This has the net effect of amplifying degradation in services that are unable to handle their current request load, since incoming connections are still accepted and added to an unbounded queue. Each connection allocates a socket handle, which drains a scarce OS resource. This can also confound higher level circuit breakers which work based on detecting failed connections. The vast majority of affected users are using it as part of http4s-blaze-server <= 0.21.16. http4s provides a mechanism for limiting open connections, but is enforced inside the Blaze accept loop, after the connection is accepted and the socket opened. Thus, the limit only prevents the number of connections which can be simultaneously processed, not the number of connections which can be held open. The issue is fixed in version 0.14.15 for "NIO1SocketServerGroup". A "maxConnections" parameter is added, with a default value of 512. Concurrent connections beyond this limit are rejected. To run unbounded, which is not recommended, set a negative number. The "NIO2SocketServerGroup" has no such setting and is now deprecated. There are several possible workarounds described in the refrenced GitHub Advisory GHSA-xmw9-q7x9-j5qc.
INFO
Published Date :
Feb. 2, 2021, 10:15 p.m.
Last Modified :
Oct. 25, 2022, 12:56 p.m.
Source :
[email protected]
Remotely Exploitable :
Yes !
Impact Score :
3.6
Exploitability Score :
3.9
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2021-21293
.
URL | Resource |
---|---|
https://github.com/http4s/blaze/commit/4f786177f9fb71ab272f3a5f6c80bca3e5662aa1 | Patch Third Party Advisory |
https://github.com/http4s/blaze/security/advisories/GHSA-xmw9-q7x9-j5qc | Third Party Advisory |
https://github.com/http4s/http4s/security/advisories/GHSA-xhv5-w9c5-2r2w | Third Party Advisory |
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2021-21293
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2021-21293
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by [email protected]
May. 14, 2024
Action Type Old Value New Value -
Reanalysis by [email protected]
Oct. 25, 2022
Action Type Old Value New Value Added CWE NIST CWE-770 -
Initial Analysis by [email protected]
Feb. 08, 2021
Action Type Old Value New Value Added CVSS V2 NIST (AV:N/AC:L/Au:N/C:N/I:N/A:P) Added CVSS V3.1 NIST AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H Changed Reference Type https://github.com/http4s/blaze/commit/4f786177f9fb71ab272f3a5f6c80bca3e5662aa1 No Types Assigned https://github.com/http4s/blaze/commit/4f786177f9fb71ab272f3a5f6c80bca3e5662aa1 Patch, Third Party Advisory Changed Reference Type https://github.com/http4s/blaze/security/advisories/GHSA-xmw9-q7x9-j5qc No Types Assigned https://github.com/http4s/blaze/security/advisories/GHSA-xmw9-q7x9-j5qc Third Party Advisory Changed Reference Type https://github.com/http4s/http4s/security/advisories/GHSA-xhv5-w9c5-2r2w No Types Assigned https://github.com/http4s/http4s/security/advisories/GHSA-xhv5-w9c5-2r2w Third Party Advisory Added CPE Configuration OR *cpe:2.3:a:typelevel:blaze:*:*:*:*:*:*:*:* versions up to (excluding) 0.14.15
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2021-21293
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2021-21293
weaknesses.
Exploit Prediction
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.
0.15 }} 0.02%
score
0.50465
percentile