{"answers":{"affected":"","exploited":"There is no known exploitation of CVE-2024-52811 in the wild and no public exploit code.","fix":"Upgrade to a fixed version.","what":"CVE-2024-52811 is a high-severity vulnerability in ngtcp2, published on 25 Nov 2024. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-52811 and fix it if it is affected.\n\nWhat it is: CVE-2024-52811 is a high-severity vulnerability in ngtcp2, published on 25 Nov 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2024-52811 in the wild and no public exploit code.\n\nAffected product: ngtcp2. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. 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.\n2. 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.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-52811/ (Markdown: https://insights.sbomify.com/CVE-2024-52811/index.md)","id":"CVE-2024-52811","markdown":"https://insights.sbomify.com/CVE-2024-52811/index.md","name":"CVE-2024-52811","record":{"aliases":["GHSA-4gmv-gf46-r4g5","UBUNTU-CVE-2024-52811","openSUSE-SU-2025:14766-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution","denial_of_service"],"network_reachable":"yes","non_default_config":true,"product_category":"QUIC protocol library","requires_auth":"none","summary":"An integer underflow in ngtcp2's qlog logging leads to a heap buffer overflow, potentially allowing code execution or denial of service when qlog is enabled.","user_interaction":"not_required","vuln_class":"integer_overflow"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":8.2,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H","version":"3.1"},"cwes":[{"id":"CWE-670","name":"Always-Incorrect Control Flow Implementation"}],"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.","ecosystems":["openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Acks not validated before logged to qlog leads to buffer overflow in ngtcp2","id":"CVE-2024-52811","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"integer_overflow","year":"2024"},"n_packages":1,"n_references":3,"next":{"headline":"LF Edge eKuiper has Stored XSS in Rules Functionality","id":"CVE-2024-52812"},"packages":[{"ecosystem":"openSUSE:Tumbleweed","fixed":["1.10.0-1.1"],"introduced":["0"],"last_affected":[],"package":"ngtcp2","purl":"pkg:rpm/opensuse/ngtcp2\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2025:14766-1"}],"prev":{"headline":"Prototype Pollution in @intlify/shared \u003e=9.7.0 \u003c= 10.0.4","id":"CVE-2024-52810"},"products":["ngtcp2"],"published":"2024-11-25","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-11-25","vendors":["ngtcp2"]},"summary":"An integer underflow in ngtcp2's qlog logging leads to a heap buffer overflow, potentially allowing code execution or denial of service when qlog is enabled.","url":"https://insights.sbomify.com/CVE-2024-52811/"}