From 645a7fe8fab15df049ba19a51990e98db03d02ea Mon Sep 17 00:00:00 2001 From: Robert Schultheis Date: Tue, 2 Feb 2021 14:33:54 -0700 Subject: [PATCH] Add CVE-2021-21293 for GHSA-xmw9-q7x9-j5qc --- 2021/21xxx/CVE-2021-21293.json | 87 +++++++++++++++++++++++++++++++--- 1 file changed, 81 insertions(+), 6 deletions(-) diff --git a/2021/21xxx/CVE-2021-21293.json b/2021/21xxx/CVE-2021-21293.json index 0f7ba9863da..0e8a01fbdad 100644 --- a/2021/21xxx/CVE-2021-21293.json +++ b/2021/21xxx/CVE-2021-21293.json @@ -1,18 +1,93 @@ { - "data_type": "CVE", - "data_format": "MITRE", - "data_version": "4.0", "CVE_data_meta": { + "ASSIGNER": "security-advisories@github.com", "ID": "CVE-2021-21293", - "ASSIGNER": "cve@mitre.org", - "STATE": "RESERVED" + "STATE": "PUBLIC", + "TITLE": "Unbounded connection acceptance leads to file handle exhaustion" }, + "affects": { + "vendor": { + "vendor_data": [ + { + "product": { + "product_data": [ + { + "product_name": "blaze", + "version": { + "version_data": [ + { + "version_value": "< 0.14.15" + } + ] + } + } + ] + }, + "vendor_name": "http4s" + } + ] + } + }, + "data_format": "MITRE", + "data_type": "CVE", + "data_version": "4.0", "description": { "description_data": [ { "lang": "eng", - "value": "** RESERVED ** This candidate has been reserved by an organization or individual that will use it when announcing a new security problem. When the candidate has been publicized, the details for this candidate will be provided." + "value": "blaze is a Scala library for building asynchronous pipelines, with a focus on network IO. \n\nAll 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.\n\nThe 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.\n\nThe 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.\n\nThe \"NIO2SocketServerGroup\" has no such setting and is now deprecated.\n\nThere are several possible workarounds described in the refrenced GitHub Advisory GHSA-xmw9-q7x9-j5qc. " } ] + }, + "impact": { + "cvss": { + "attackComplexity": "LOW", + "attackVector": "NETWORK", + "availabilityImpact": "HIGH", + "baseScore": 7.5, + "baseSeverity": "HIGH", + "confidentialityImpact": "NONE", + "integrityImpact": "NONE", + "privilegesRequired": "NONE", + "scope": "UNCHANGED", + "userInteraction": "NONE", + "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H", + "version": "3.1" + } + }, + "problemtype": { + "problemtype_data": [ + { + "description": [ + { + "lang": "eng", + "value": "CWE-400: Uncontrolled Resource Consumption" + } + ] + } + ] + }, + "references": { + "reference_data": [ + { + "name": "https://github.com/http4s/blaze/security/advisories/GHSA-xmw9-q7x9-j5qc", + "refsource": "CONFIRM", + "url": "https://github.com/http4s/blaze/security/advisories/GHSA-xmw9-q7x9-j5qc" + }, + { + "name": "https://github.com/http4s/http4s/security/advisories/GHSA-xhv5-w9c5-2r2w", + "refsource": "MISC", + "url": "https://github.com/http4s/http4s/security/advisories/GHSA-xhv5-w9c5-2r2w" + }, + { + "name": "https://github.com/http4s/blaze/commit/4f786177f9fb71ab272f3a5f6c80bca3e5662aa1", + "refsource": "MISC", + "url": "https://github.com/http4s/blaze/commit/4f786177f9fb71ab272f3a5f6c80bca3e5662aa1" + } + ] + }, + "source": { + "advisory": "GHSA-xmw9-q7x9-j5qc", + "discovery": "UNKNOWN" } } \ No newline at end of file