Vulnerability Information
Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.
Vulnerability Title
Strawberry GraphQL affected by a Denial of Service via unbounded WebSocket subscriptions
Vulnerability Description
Strawberry GraphQL is a library for creating GraphQL APIs. Prior to 0.312.3, Strawberry GraphQL's WebSocket subscription handlers for both the graphql-transport-ws and legacy graphql-ws protocols allocate an asyncio.Task and associated Operation object for every incoming subscribe message without enforcing any limit on the number of active subscriptions per connection. An unauthenticated attacker can open a single WebSocket connection, send connection_init, and then flood subscribe messages with unique IDs. Each message unconditionally spawns a new asyncio.Task and async generator, causing linear memory growth and event loop saturation. This leads to server degradation or an OOM crash. This vulnerability is fixed in 0.312.3.
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Vulnerability Type
不加限制或调节的资源分配
Vulnerability Title
Strawberry GraphQL 安全漏洞
Vulnerability Description
Strawberry GraphQL是Strawberry GraphQL开源的一个利用类型注释的 Python GraphQL 库。 Strawberry GraphQL 0.312.3之前版本存在安全漏洞,该漏洞源于WebSocket订阅处理程序未限制每个连接的活跃订阅数量,可能导致未经身份验证的攻击者通过发送大量订阅消息导致服务器内存线性增长和事件循环饱和,最终造成服务器性能下降或内存耗尽崩溃。
CVSS Information
N/A
Vulnerability Type
N/A