{"answers":{"affected":"It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-46728 exists.","fix":"Upgrade to a fixed version.","what":"CVE-2025-46728 is a high-severity denial of service vulnerability in yhirose cpp-httplib, published on 6 May 2025. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-46728 and fix it if it is affected.\n\nWhat it is: CVE-2025-46728 is a high-severity denial of service vulnerability in yhirose cpp-httplib, published on 6 May 2025. 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-2025-46728 exists.\n\nAffected product: yhirose cpp-httplib. 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-2025-46728/ (Markdown: https://insights.sbomify.com/CVE-2025-46728/index.md)","id":"CVE-2025-46728","markdown":"https://insights.sbomify.com/CVE-2025-46728/index.md","name":"CVE-2025-46728","record":{"aliases":["DEBIAN-CVE-2025-46728","ECHO-f24e-40e5-ba8e","GHSA-px83-72rx-v57c","OESA-2025-1610","OESA-2025-1611","OESA-2025-1612","OESA-2025-1613","UBUNTU-CVE-2025-46728","openSUSE-SU-2025:15084-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"C++ HTTP library","requires_auth":"none","summary":"Remote attackers can exhaust server memory via unbounded chunked requests in cpp-httplib, causing denial of service.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"cpp-httplib","vendor":"cpp-httplib_project"}],"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-400","name":"Uncontrolled Resource Consumption"}],"description":"cpp-httplib is a C++ header-only HTTP/HTTPS server and client library. Prior to version 0.20.1, the library fails to enforce configured size limits on incoming request bodies when `Transfer-Encoding: chunked` is used or when no `Content-Length` header is provided. A remote attacker can send a chunked request without the terminating zero-length chunk, causing uncontrolled memory allocation on the server. This leads to potential exhaustion of system memory and results in a server crash or unresponsiveness. Version 0.20.1 fixes the issue by enforcing limits during parsing. If the limit is exceeded at any point during reading, the connection is terminated immediately. A short-term workaround through a Reverse Proxy is available. If updating the library immediately is not feasible, deploy a reverse proxy (e.g., Nginx, HAProxy) in front of the `cpp-httplib` application. Configure the proxy to enforce maximum request body size limits, thereby stopping excessively large requests before they reach the vulnerable library code.","ecosystems":["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":"cpp-httplib has Unbounded Memory Allocation in Chunked/No-Length Requests","id":"CVE-2025-46728","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"denial_of_service","year":"2025"},"n_packages":1,"n_references":2,"next":{"headline":"phpDVDProfiler Cross-site Scripting vulnerability","id":"CVE-2025-46729"},"packages":[{"ecosystem":"openSUSE:Tumbleweed","fixed":["0.20.1-1.1"],"introduced":["0"],"last_affected":[],"package":"cpp-httplib","purl":"pkg:rpm/opensuse/cpp-httplib\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2025:15084-1"}],"prev":{"headline":"Unbounded-Parameter DoS in Rack::QueryParser","id":"CVE-2025-46727"},"products":["cpp-httplib"],"published":"2025-05-06","related":[{"cvss_score":7.5,"headline":"Other in yhirose/cpp-httplib","id":"CVE-2023-26130","kev_date_added":null,"published":"2023-05-30"}],"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":"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":"2025-05-06","vendors":["yhirose"]},"summary":"Remote attackers can exhaust server memory via unbounded chunked requests in cpp-httplib, causing denial of service.","url":"https://insights.sbomify.com/CVE-2025-46728/"}