# GHSA-hxq4-mx37-fqvg: s2n-quic potential denial of service vulnerability when receiving empty UDP packets

> An attacker can cause a denial of service by sending empty UDP packets to applications using the s2n-quic library.

- **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:** 30 Jun 2023

## What is GHSA-hxq4-mx37-fqvg?

GHSA-hxq4-mx37-fqvg is a denial of service vulnerability in s2n-quic, published on 30 Jun 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 after receiving an empty UDP packet on a connection. 

No AWS services are affected by this issue and customers of AWS services do not need to take action. Applications using s2n-quic should upgrade their application to the most recent release of s2n-quic.

Impacted version: s2n-quic v1.22.0.

### Patches

The patch is included in s2n-quic [v1.23.0](https://github.com/aws/s2n-quic/releases/tag/v1.23.0).

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

## Which versions are affected by GHSA-hxq4-mx37-fqvg?

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


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `s2n-quic` | crates.io | From 1.22.0 | 1.23.0 |
| `s2n-quic` | crates.io | From 1.22.0 | 1.23.0 |

## How do I fix GHSA-hxq4-mx37-fqvg?

Upgrade s2n-quic to 1.23.0 or later.

## Is GHSA-hxq4-mx37-fqvg being exploited?

There is no known exploitation of GHSA-hxq4-mx37-fqvg in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for GHSA-hxq4-mx37-fqvg and fix it if it is affected.

What it is: GHSA-hxq4-mx37-fqvg is a denial of service vulnerability in s2n-quic, published on 30 Jun 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-hxq4-mx37-fqvg in the wild and no public exploit code.

Affected packages and fixed versions:
- s2n-quic (crates.io): affected from 1.22.0; fixed in 1.23.0
- s2n-quic (crates.io): affected from 1.22.0; fixed in 1.23.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-hxq4-mx37-fqvg/ (Markdown: https://insights.sbomify.com/GHSA-hxq4-mx37-fqvg/index.md)
```

## Sources

- OSV: https://osv.dev/vulnerability/GHSA-hxq4-mx37-fqvg

---
From sbomify Insights: https://insights.sbomify.com/GHSA-hxq4-mx37-fqvg/
Summaries are generated and may contain mistakes; the official description above is the record.
