# CVE-2024-52811: Acks not validated before logged to qlog leads to buffer overflow in ngtcp2

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.2
- **CVSS:** 8.2 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: Low; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 1.21% (percentile 68, 2026-11-26)
- **CWE:** CWE-670
- **Published:** 2024-11-25T18:55:36.279Z
- **Modified:** 2026-06-17T08:07:40.220Z

## Who should check

- Anyone running ngtcp2 = 1.9.0

## Description

The ngtcp2 project is an effort to implement IETF QUIC protocol in C. In affected versions acks are not validated before being written to the qlog leading to a buffer overflow. In \`ngtcp2\_conn::conn\_recv\_pkt\` for an ACK, there was new logic that got added to skip \`conn\_recv\_ack\` if an ack has already been processed in the payload. However, this causes us to also skip \`ngtcp2\_pkt\_validate\_ack\`. The ack which was skipped still got written to qlog. The bug occurs in \`ngtcp2\_qlog::write\_ack\_frame\`. It is now possible to reach this code with an invalid ack, suppose \`largest\_ack=0\` and \`first\_ack\_range=15\`. Subtracting \`largest\_ack - first\_ack\_range\` will lead to an integer underflow which is 20 chars long. However, the ngtcp2 qlog code assumes the number written is a signed integer and only accounts for 19 characters of overhead (see \`NGTCP2\_QLOG\_ACK\_FRAME\_RANGE\_OVERHEAD\`). Therefore, we overwrite the buffer causing a heap overflow. This is high priority and could potentially impact many users if they enable qlog. qlog is disabled by default. Due to its overhead, it is most likely used for debugging purpose, but the actual use is unknown. ngtcp2 v1.9.1 fixes the bug and users are advised to upgrade. Users unable to upgrade should not turn on qlog.

## Affected and fixed versions

- ngtcp2: = 1.9.0 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-52811. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-52811.md
Affected: ngtcp2 = 1.9.0
Fixed in: no fixed version listed yet

Steps:
1. Search this machine and project for ngtcp2: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-52811 being exploited?

There is no confirmed exploitation: CVE-2024-52811 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.21% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-52811?

High: CVSS 8.2 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2024-52811?

ngtcp2 = 1.9.0.

### Is there a fix for CVE-2024-52811?

No fixed version is listed in the sources yet. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2024-52811?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/ngtcp2/ngtcp2/security/advisories/GHSA-4gmv-gf46-r4g5>
- patch: <https://github.com/ngtcp2/ngtcp2/commit/44b662bd139c23fee1703bf256c13349e2e624a1>
- patch: <https://github.com/ngtcp2/ngtcp2/commit/e550c1a414318d0f3f01fca1a621ae0b0428ca15>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-52811>

HTML: <https://flawdb.com/CVE-2024-52811> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-52811>
