Описание
Potential DoS when using ContextLines integration
Impact
The ContextLines integration uses readable streams to more efficiently use memory when reading files. The ContextLines integration is used to attach source context to outgoing events.
The stream was not explicitly closed after use. This could lead to excessive amounts of file handles open on the system and potentially lead to a Denial of Service (DoS).
The ContextLines integration is enabled by default in the Node SDK (@sentry/node) and SDKs that run in Node.js environments (@sentry/astro, @sentry/aws-serverless, @sentry/bun, @sentry/google-cloud-serverless, @sentry/nestjs, @sentry/nextjs, @sentry/nuxt, @sentry/remix, @sentry/solidstart, @sentry/sveltekit).
Patches
Users should upgrade to version 8.49.0 or higher.
Workarounds
To remediate this issue in affected versions without upgrading to version 8.49.0 and above you can disable the ContextLines integration. See the docs for more details.
If you disable the ContextLines integration, you will lose source context on your error events.
References
Пакеты
@sentry/node
>= 8.10.0, < 8.49.0
8.49.0
@sentry/astro
>= 8.10.0, < 8.49.0
8.49.0
@sentry/aws-serverless
>= 8.10.0, < 8.49.0
8.49.0
@sentry/bun
>= 8.10.0, < 8.49.0
8.49.0
@sentry/google-cloud-serverless
>= 8.10.0, < 8.49.0
8.49.0
@sentry/nestjs
>= 8.10.0, < 8.49.0
8.49.0
@sentry/nextjs
>= 8.10.0, < 8.49.0
8.49.0
@sentry/nuxt
>= 8.10.0, < 8.49.0
8.49.0
@sentry/remix
>= 8.10.0, < 8.49.0
8.49.0
@sentry/solidstart
>= 8.10.0, < 8.49.0
8.49.0
@sentry/sveltekit
>= 8.10.0, < 8.49.0
8.49.0
3.7 Low
CVSS3
Дефекты
3.7 Low
CVSS3