GHSA-r5w7-f542-q2j4: Potential DoS when using ContextLines integration
Noroxi assessment
Priority: Monitor (action score 14/100)
- The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
- Anyone who can reach it over the internet can trigger it. No account or password is required. No user action is required. Special conditions such as timing or configuration are required.
- Fixed version: @sentry/astro (npm) 8.49.0; @sentry/aws-serverless (npm) 8.49.0; @sentry/bun (npm) 8.49.0.
Low priority for now. Upgrade to @sentry/astro (npm) 8.49.0; @sentry/aws-serverless (npm) 8.49.0; @sentry/bun (npm) 8.49.0 or later.
Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it
Primary sources: OSV
### Impact The [ContextLines integration](https://docs.sentry.io/platforms/javascript/guides/node/configuration/integrations/contextlines/) 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](https://docs.sentry.io/platforms/javascript/guides/node/configuration/integrations/#removing-a-default-integration) for more details. ```js Sentry.init({ // ... integrations: function (integrations) { // integrations will be all default integrations return integrations.filter(function (integration) { return integration.name !== "ContextLines"; }); }, }); ``` If you disable the ContextLines integration, you will lose source context on your error events. ### References - Reported issue: https://github.com/getsentry/sentry-javascript/issues/14892 - PR Fix: https://github.com/getsentry/sentry-javascript/pull/14997
- Published
- Jan 28, 2025
- Updated
- Jan 28, 2025
- EPSS
- —
- CWE
- CWE-774
Report tools
Action score
14
Low priority for now.
- CVSS
- 14 / 40 · 3.7 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 0 / 30 · —
Get told when this record changes
- Not in KEV: no record of exploitation in the wild
- No public exploit code on record
- A fix has been released
If any of these changes, we'll tell you in the daily email digest.
Is your version affected? Check itNoroxi analysis
What does it mean in your environment?
The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.
We use this product, ask for helpAffected systems
Is your version affected?
Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.
| Vendor | Product | CPE |
|---|---|---|
| npm | @sentry/node | pkg:npm/%40sentry/node |
| npm | @sentry/astro | pkg:npm/%40sentry/astro |
| npm | @sentry/aws-serverless | pkg:npm/%40sentry/aws-serverless |
| npm | @sentry/bun | pkg:npm/%40sentry/bun |
| npm | @sentry/google-cloud-serverless | pkg:npm/%40sentry/google-cloud-serverless |
| npm | @sentry/nestjs | pkg:npm/%40sentry/nestjs |
| npm | @sentry/nextjs | pkg:npm/%40sentry/nextjs |
| npm | @sentry/nuxt | pkg:npm/%40sentry/nuxt |
| npm | @sentry/remix | pkg:npm/%40sentry/remix |
| npm | @sentry/solidstart | pkg:npm/%40sentry/solidstart |
| npm | @sentry/sveltekit | pkg:npm/%40sentry/sveltekit |
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| npm | @sentry/astro | from 8.10.0 · before 8.49.0 | 8.49.0 |
| npm | @sentry/aws-serverless | from 8.10.0 · before 8.49.0 | 8.49.0 |
| npm | @sentry/bun | from 8.10.0 · before 8.49.0 | 8.49.0 |
| npm | @sentry/google-cloud-serverless | from 8.10.0 · before 8.49.0 | 8.49.0 |
| npm | @sentry/nestjs | from 8.10.0 · before 8.49.0 | 8.49.0 |
| npm | @sentry/nextjs | from 8.10.0 · before 8.49.0 | 8.49.0 |
| npm | @sentry/node | from 8.10.0 · before 8.49.0 | 8.49.0 |
| npm | @sentry/nuxt | from 8.10.0 · before 8.49.0 | 8.49.0 |
| npm | @sentry/remix | from 8.10.0 · before 8.49.0 | 8.49.0 |
| npm | @sentry/solidstart | from 8.10.0 · before 8.49.0 | 8.49.0 |
| npm | @sentry/sveltekit | from 8.10.0 · before 8.49.0 | 8.49.0 |
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| npm:@sentry/astro | 8.49.0 | Package registry (OSV) |
| npm:@sentry/aws-serverless | 8.49.0 | Package registry (OSV) |
| npm:@sentry/bun | 8.49.0 | Package registry (OSV) |
| npm:@sentry/google-cloud-serverless | 8.49.0 | Package registry (OSV) |
| npm:@sentry/nestjs | 8.49.0 | Package registry (OSV) |
| npm:@sentry/nextjs | 8.49.0 | Package registry (OSV) |
| npm:@sentry/node | 8.49.0 | Package registry (OSV) |
| npm:@sentry/nuxt | 8.49.0 | Package registry (OSV) |
| npm:@sentry/remix | 8.49.0 | Package registry (OSV) |
| npm:@sentry/solidstart | 8.49.0 | Package registry (OSV) |
| npm:@sentry/sveltekit | 8.49.0 | Package registry (OSV) |
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
Patch and commit links
Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.
Not on record for this CVE: EPSS history · researcher credit · variant or chain candidate · public bounty program.
Technical details
Attack conditions
- Anyone who can reach it over the internet can trigger it.
- No account or password is required.
- No user action is required.
- Special conditions such as timing or configuration are required.
If successful
- Confidentiality
- none
- Integrity
- none
- Availability
- low · the service can be disrupted
- Attack vector
- Network
- Attack complexity
- High
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality impact
- None
- Integrity impact
- None
- Availability impact
- Low
Weakness class (CWE)
CWE-774 · Allocation of File Descriptors or Handles Without Limits or ThrottlingCVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L
osv
Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
MITRE has no CAPEC/ATT&CK mapping for this CWE.
Change log (1)
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Show all references (3 more)Show less
Vendor advisories and official records. Exploit/PoC links are deliberately left out.