{"answers":{"affected":"It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-40170 exists.","fix":"Upgrade to a fixed version.","what":"CVE-2026-40170 is a high-severity memory corruption vulnerability in ngtcp2, published on 16 Apr 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-40170 and fix it if it is affected.\n\nWhat it is: CVE-2026-40170 is a high-severity memory corruption vulnerability in ngtcp2, published on 16 Apr 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-40170 exists.\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-2026-40170/ (Markdown: https://insights.sbomify.com/CVE-2026-40170/index.md)","id":"CVE-2026-40170","markdown":"https://insights.sbomify.com/CVE-2026-40170/index.md","name":"CVE-2026-40170","record":{"aliases":["ALPINE-CVE-2026-40170","DEBIAN-CVE-2026-40170","ECHO-c041-b4eb-d85f","GHSA-f523-465f-8c8f","RHSA-2026:9113","UBUNTU-CVE-2026-40170","openSUSE-SU-2026:10621-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":"A stack buffer overflow in ngtcp2 allows remote attackers to execute code or cause denial of service when qlog is enabled.","user_interaction":"not_required","vuln_class":"memory_corruption"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"ngtcp2","vendor":"tatsuhiro-t"}],"cvss":{"score":7.5,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},"cwes":[{"id":"CWE-120","name":"Buffer Copy without Checking Size of Input"},{"id":"CWE-121","name":"Stack-based Buffer Overflow"}],"description":"ngtcp2 is a C implementation of the IETF QUIC protocol. In versions prior to 1.22.1, ngtcp2_qlog_parameters_set_transport_params() serializes peer transport parameters into a fixed 1024-byte stack buffer without bounds checking. When qlog is enabled, a remote peer can send sufficiently large transport parameters during the QUIC handshake to cause writes beyond the buffer boundary, resulting in a stack buffer overflow. This affects deployments that enable the qlog callback and process untrusted peer transport parameters. This issue has been fixed in version 1.22.1. If developers are unable to immediately upgrade, they can disable the qlog on client.","ecosystems":["Red Hat:hummingbird:1","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"ngtcp2 has a qlog transport parameter serialization stack buffer overflow","id":"CVE-2026-40170","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"memory_corruption","year":"2026"},"n_packages":8,"n_references":2,"next":{"headline":"Jupyter Notebook and JupyterLab token theft via stored XSS in help command linker","id":"CVE-2026-40171"},"packages":[{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:1.22.1-1.hum1"],"introduced":["0"],"last_affected":[],"package":"ngtcp2","purl":"pkg:rpm/redhat/ngtcp2","source":"RHSA-2026:9113"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:1.22.1-1.hum1"],"introduced":["0"],"last_affected":[],"package":"ngtcp2-crypto-gnutls","purl":"pkg:rpm/redhat/ngtcp2-crypto-gnutls","source":"RHSA-2026:9113"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:1.22.1-1.hum1"],"introduced":["0"],"last_affected":[],"package":"ngtcp2-crypto-gnutls-devel","purl":"pkg:rpm/redhat/ngtcp2-crypto-gnutls-devel","source":"RHSA-2026:9113"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:1.22.1-1.hum1"],"introduced":["0"],"last_affected":[],"package":"ngtcp2-crypto-ossl","purl":"pkg:rpm/redhat/ngtcp2-crypto-ossl","source":"RHSA-2026:9113"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:1.22.1-1.hum1"],"introduced":["0"],"last_affected":[],"package":"ngtcp2-crypto-ossl-devel","purl":"pkg:rpm/redhat/ngtcp2-crypto-ossl-devel","source":"RHSA-2026:9113"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:1.22.1-1.hum1"],"introduced":["0"],"last_affected":[],"package":"ngtcp2-devel","purl":"pkg:rpm/redhat/ngtcp2-devel","source":"RHSA-2026:9113"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:1.22.1-1.hum1"],"introduced":["0"],"last_affected":[],"package":"ngtcp2-doc","purl":"pkg:rpm/redhat/ngtcp2-doc","source":"RHSA-2026:9113"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["1.22.1-1.1"],"introduced":["0"],"last_affected":[],"package":"ngtcp2","purl":"pkg:rpm/opensuse/ngtcp2\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2026:10621-1"}],"prev":{"headline":"ImageMagick: Heap buffer overflow (WRITE) in the YAML and JSON encoders","id":"CVE-2026-40169"},"products":["ngtcp2"],"published":"2026-04-16","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-07-15","vendors":["ngtcp2"]},"summary":"A stack buffer overflow in ngtcp2 allows remote attackers to execute code or cause denial of service when qlog is enabled.","url":"https://insights.sbomify.com/CVE-2026-40170/"}