{"answers":{"affected":"3 open source packages ship an affected version, including cowlib. It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-7790 in the wild and no public exploit code.","fix":"Upgrade cowlib to 2.16.1 or later.","what":"CVE-2026-7790 is a high-severity denial of service vulnerability in ninenines cowlib, published on 11 May 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-7790 and fix it if it is affected.\n\nWhat it is: CVE-2026-7790 is a high-severity denial of service vulnerability in ninenines cowlib, published on 11 May 2026. 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-2026-7790 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- cowlib (Hex): affected from 0.6.0; fixed in 2.16.1\n- cowlib (Hex): affected from 0.6.0; fixed in 2.16.1\n- cowlib (Hex): affected from 0.6.0; fixed in 2.16.1\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-7790/ (Markdown: https://insights.sbomify.com/CVE-2026-7790/index.md)","id":"CVE-2026-7790","markdown":"https://insights.sbomify.com/CVE-2026-7790/index.md","name":"CVE-2026-7790","record":{"aliases":["AZL-86790","DEBIAN-CVE-2026-7790","EEF-CVE-2026-7790","GHSA-32p9-57cr-4x65","UBUNTU-CVE-2026-7790"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Erlang HTTP library","requires_auth":"none","summary":"Remote attackers can cause denial of service via CPU and memory exhaustion by sending crafted chunked HTTP requests to applications using the cowlib library.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"EEF","cpe":[{"product":"cowlib","vendor":"ninenines"}],"cvss":{"score":8.7,"severity":"high","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","version":"4.0"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"description":"Uncontrolled Resource Consumption vulnerability in ninenines cowlib (cow_http_te module) allows Excessive Allocation.\n\nThe chunked transfer-encoding parser in cow_http_te accepts an unbounded number of hex digits in the chunk-size field. Each digit causes a bignum multiplication (Len * 16 + digit), so parsing N hex digits requires O(N²) CPU work and O(N) memory. Additionally, when input is drip-fed, the parser discards the accumulated length on each partial read and restarts from zero on resumption, raising the cost to O(N³). An unauthenticated remote attacker can exploit this by sending an HTTP/1.1 request with Transfer-Encoding: chunked and a very long chunk-size hex string to cause denial of service through CPU exhaustion and memory amplification.\n\nThis vulnerability is associated with program file src/cow_http_te.erl and program routines cow_http_te:stream_chunked/2, cow_http_te:chunked_len/4.\n\nThis issue affects cowlib: from 0.6.0 before 2.16.1.","ecosystems":["Hex"],"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":"Unbounded chunk-size hex digits in cowlib cause quadratic CPU and memory DoS","id":"CVE-2026-7790","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Hex","product":null,"products":[],"type":"denial_of_service","year":"2026"},"n_packages":3,"n_references":3,"next":{"headline":"Local Privilege Escalation via TOCTOU Race Condition in Amazon WorkSpaces Skylight Agent","id":"CVE-2026-7791"},"packages":[{"ecosystem":"Hex","fixed":["2.16.1"],"introduced":["0.6.0"],"last_affected":[],"package":"cowlib","purl":"pkg:hex/cowlib","source":"EEF-CVE-2026-7790"},{"ecosystem":"Hex","fixed":["2.16.1"],"introduced":["0.6.0"],"last_affected":[],"package":"cowlib","purl":null,"source":"GHSA-32p9-57cr-4x65"},{"ecosystem":"Hex","fixed":["2.16.1"],"introduced":["0.6.0"],"last_affected":[],"package":"cowlib","purl":"pkg:hex/cowlib","source":"GHSA-32p9-57cr-4x65"}],"prev":{"headline":"Axle-Bucamp MCP-Docusaurus document.py get_content path traversal","id":"CVE-2026-7788"},"products":["cowlib"],"published":"2026-05-11","related":[{"cvss_score":6.3,"headline":"HTTP Response Splitting via Non-VCHAR Bytes in cow_http_struct_hd:escape_string/2","id":"CVE-2026-43966","kev_date_added":null,"published":"2026-06-08"},{"cvss_score":6.3,"headline":"CR Injection in SSE Encoder Enables Event Splitting via cow_sse:event/1","id":"CVE-2026-43968","kev_date_added":null,"published":"2026-05-11"},{"cvss_score":2.1,"headline":"Cookie Request Header Injection via Unvalidated Encoder in cow_cookie:cookie/1","id":"CVE-2026-43969","kev_date_added":null,"published":"2026-05-11"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"Erlang Ecosystem Foundation","prefix":"EEF"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"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":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-05-26","vendors":["ninenines"]},"summary":"Remote attackers can cause denial of service via CPU and memory exhaustion by sending crafted chunked HTTP requests to applications using the cowlib library.","url":"https://insights.sbomify.com/CVE-2026-7790/"}