# GHSA-475v-pq2g-fp9g: s2n-quic potential denial of service via crafted stream frames

> Attackers can cause denial of service by opening streams beyond limits, requiring library upgrade to mitigate resource exhaustion.

- **Severity:** Not scored
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 8 Nov 2023

## What is GHSA-475v-pq2g-fp9g?

GHSA-475v-pq2g-fp9g is a denial of service vulnerability in s2n-quic, published on 8 Nov 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

### Impact
An issue in s2n-quic could result in unnecessary resource utilization when peers open streams beyond advertised limits.

Impacted versions: <= v1.30.0.

### Patches
The patch is included in v1.31.0 [1].

### Workarounds
There is no workaround. Applications using s2n-quic should upgrade to the most recent release of s2n-quic.

If you have any questions or comments about this advisory, we ask that you contact AWS Security via our vulnerability reporting page [2] or directly via email to [aws-security@amazon.com](mailto:aws-security@amazon.com). Please do not create a public GitHub issue.

[1] https://github.com/aws/s2n-quic/releases/tag/v1.31.0
[2] https://aws.amazon.com/security/vulnerability-reporting

## Which versions are affected by GHSA-475v-pq2g-fp9g?

2 open source packages ship an affected version, including s2n-quic.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `s2n-quic` | crates.io | All versions | 1.31.0 |
| `s2n-quic` | crates.io | All versions | 1.31.0 |

## How do I fix GHSA-475v-pq2g-fp9g?

Upgrade s2n-quic to 1.31.0 or later.

## Is GHSA-475v-pq2g-fp9g being exploited?

There is no known exploitation of GHSA-475v-pq2g-fp9g in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for GHSA-475v-pq2g-fp9g and fix it if it is affected.

What it is: GHSA-475v-pq2g-fp9g is a denial of service vulnerability in s2n-quic, published on 8 Nov 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: There is no known exploitation of GHSA-475v-pq2g-fp9g in the wild and no public exploit code.

Affected packages and fixed versions:
- s2n-quic (crates.io): affected all versions; fixed in 1.31.0
- s2n-quic (crates.io): affected all versions; fixed in 1.31.0

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/GHSA-475v-pq2g-fp9g/ (Markdown: https://insights.sbomify.com/GHSA-475v-pq2g-fp9g/index.md)
```

## Sources

- OSV: https://osv.dev/vulnerability/GHSA-475v-pq2g-fp9g

---
From sbomify Insights: https://insights.sbomify.com/GHSA-475v-pq2g-fp9g/
Summaries are generated and may contain mistakes; the official description above is the record.
