# GHSA-rfhg-rjfp-9q8q: Potential denial of service after connection migration

> A remote attacker can cause a denial of service in applications using the s2n-quic library by triggering connection migration with duplicate frames.

- **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:** 24 Jul 2023

## What is GHSA-rfhg-rjfp-9q8q?

GHSA-rfhg-rjfp-9q8q is a denial of service vulnerability in s2n-quic, published on 24 Jul 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 results in the endpoint shutting down due to a combination of peer-initiated connection migration and duplicate new connection ID frames being received. No AWS services are affected by this issue, and customers of AWS services do not need to take action.

Impacted versions: <=v1.24.0
### Patches
The patch is included in v1.25.0.

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

If you have any questions or comments about this advisory we ask that you contact AWS/Amazon Security via our vulnerability reporting page or directly via email to aws-security@amazon.com. Please do not create a public GitHub issue.

## Which versions are affected by GHSA-rfhg-rjfp-9q8q?

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


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

## How do I fix GHSA-rfhg-rjfp-9q8q?

Upgrade s2n-quic to 1.25.0 or later.

## Is GHSA-rfhg-rjfp-9q8q being exploited?

There is no known exploitation of GHSA-rfhg-rjfp-9q8q in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for GHSA-rfhg-rjfp-9q8q and fix it if it is affected.

What it is: GHSA-rfhg-rjfp-9q8q is a denial of service vulnerability in s2n-quic, published on 24 Jul 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-rfhg-rjfp-9q8q in the wild and no public exploit code.

Affected packages and fixed versions:
- s2n-quic (crates.io): affected all versions; fixed in 1.25.0
- s2n-quic (crates.io): affected all versions; fixed in 1.25.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-rfhg-rjfp-9q8q/ (Markdown: https://insights.sbomify.com/GHSA-rfhg-rjfp-9q8q/index.md)
```

## Sources

- OSV: https://osv.dev/vulnerability/GHSA-rfhg-rjfp-9q8q

---
From sbomify Insights: https://insights.sbomify.com/GHSA-rfhg-rjfp-9q8q/
Summaries are generated and may contain mistakes; the official description above is the record.
