{"id":"CVE-2026-7790","aliases":["EEF-CVE-2026-7790","GHSA-32p9-57cr-4x65"],"title":"Unbounded chunk-size hex digits in cowlib cause quadratic CPU and memory DoS","titleSource":"EEF","descriptionSource":"OSV","description":"## Summary\n\nUncontrolled 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.\n\n## Workarounds\n\nIn Cowboy, setting `initial_stream_flow_size` to a much lower value limits the amount of chunked body data that cowlib will parse in a single read, reducing the window of data an attacker can use to trigger the quadratic work. This does not fully eliminate the vulnerability but can significantly reduce its impact for some applications.","severity":"high","score":8.7,"published":"2026-05-11T18:06:41.490Z","modified":"2026-11-25T17:23:09.854Z","withdrawn":false,"knownExploited":false,"affected":[{"ecosystem":"Hex","name":"cowlib","sources":[{"name":"OSV · EEF-CVE-2026-7790","url":"https://osv.dev/vulnerability/EEF-CVE-2026-7790"}],"ranges":[{"events":[{"introduced":"0.6.0"},{"fixed":"2.16.1"}],"type":"SEMVER"}],"versions":["1.0.0","1.0.1","1.0.2","1.1.0","1.2.0","1.3.0","2.0.0","2.0.1","2.1.0","2.10.0","2.10.1","2.11.0","2.12.0","2.12.1","2.13.0","2.14.0","2.15.0","2.16.0","2.2.0","2.2.1","2.3.0","2.4.0","2.5.0","2.5.1","2.6.0","2.7.0","2.7.1","2.7.2","2.7.3","2.8.0","2.9.0","2.9.1"],"fixed":["2.16.1"]}],"sourceAffected":[{"ranges":[{"events":[{"introduced":"8c0e428b012c59f553a264f285ed89d36f791e3e"},{"fixed":"a4b8039ce8c93ab00867ef6b7e888822c09f4369"}],"type":"GIT","repo":"https://github.com/ninenines/cowlib"}],"versions":["2.16.0","2.15.0","2.14.0","2.13.0","2.12.1","2.12.0","2.11.0","2.10.1","2.10.0","2.9.1","2.9.0","2.8.0","2.7.3","2.7.2","2.7.1","2.7.0","2.6.0","2.5.1","2.5.0","2.4.0","2.3.0","2.2.1","2.2.0","2.1.0","2.0.1","2.0.0","2.0.0-rc.1","2.0.0-pre.1","1.0.1","1.3.0","1.2.0","1.1.0","1.0.0","0.6.2","0.6.1","0.6.0"]}],"references":["https://cna.erlef.org/cves/CVE-2026-7790.html","https://osv.dev/vulnerability/EEF-CVE-2026-7790","https://github.com/ninenines/cowlib/commit/8c0e428b012c59f553a264f285ed89d36f791e3e","https://github.com/ninenines/cowlib/commit/a4b8039ce8c93ab00867ef6b7e888822c09f4369","https://hex.pm/packages/cowlib"],"sources":[{"name":"CVE","id":"CVE-2026-7790","modified":"2026-11-20T05:08:58.312Z","url":"https://www.cve.org/CVERecord?id=CVE-2026-7790"},{"name":"OSV","id":"EEF-CVE-2026-7790","modified":"2026-11-25T17:23:09.854330364Z","url":"https://osv.dev/vulnerability/EEF-CVE-2026-7790"}],"assessments":[{"source":"EEF","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","score":8.7},{"source":"OSV","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","score":8.7}],"cve":{"records":[{"id":"CVE-2026-7790","source":"EEF","state":"PUBLISHED","reasons":[],"replacements":[],"disputed":false,"unsupportedWhenAssigned":false,"reserved":"2026-05-04T18:23:21.380Z","published":"2026-05-11T18:06:41.490Z","modified":"2026-11-20T05:08:58.312Z"}],"publishers":[{"name":"EEF","role":"CNA","organizationId":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","modified":"2026-11-20T05:08:58.312Z"},{"name":"CISA-ADP","role":"ADP","organizationId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","modified":"2026-05-11T18:56:31.426Z"}],"references":[{"url":"https://cna.erlef.org/cves/CVE-2026-7790.html","tags":["related","third-party-advisory"],"source":"EEF"},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-7790","tags":["related"],"source":"EEF"},{"url":"https://github.com/ninenines/cowlib/commit/8c0e428b012c59f553a264f285ed89d36f791e3e","tags":["related"],"source":"EEF"},{"url":"https://github.com/ninenines/cowlib/commit/a4b8039ce8c93ab00867ef6b7e888822c09f4369","tags":["patch"],"source":"EEF"}],"weaknesses":[{"id":"CWE-400","description":"CWE-400 Uncontrolled Resource Consumption","source":"EEF"}],"applicability":[{"source":"EEF","statements":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:a:ninenines:cowlib:*:*:*:*:*:*:*:*","versionEndExcluding":"2.16.1","versionStartIncluding":"0.6.0","vulnerable":true}],"negate":false,"operator":"OR"}],"operator":"AND"}]}],"prioritization":[{"source":"CISA-ADP","type":"SSVC","role":"CISA Coordinator","timestamp":"2026-05-11T18:56:19.590262Z","decisions":[{"name":"Exploitation","value":"none"},{"name":"Automatable","value":"yes"},{"name":"Technical Impact","value":"partial"}]}]},"products":[{"vendor":"ninenines","name":"cowlib","platforms":[],"versions":[{"version":"0.6.0","status":"affected","lessThan":"2.16.1","versionType":"semver"}],"defaultStatus":"unaffected","packageURL":"pkg:hex/cowlib","packageIdentity":{"ecosystem":"Hex","name":"cowlib"},"cpes":["cpe:2.3:a:ninenines:cowlib:*:*:*:*:*:*:*:*"],"source":"EEF","url":"https://www.cve.org/CVERecord?id=CVE-2026-7790"},{"vendor":"ninenines","name":"cowlib","platforms":[],"versions":[{"version":"8c0e428b012c59f553a264f285ed89d36f791e3e","status":"affected","lessThan":"a4b8039ce8c93ab00867ef6b7e888822c09f4369","versionType":"git"}],"defaultStatus":"unaffected","packageURL":"pkg:github/ninenines/cowlib","cpes":["cpe:2.3:a:ninenines:cowlib:*:*:*:*:*:*:*:*"],"source":"EEF","url":"https://www.cve.org/CVERecord?id=CVE-2026-7790"}],"remediation":[{"text":"In Cowboy, setting initial_stream_flow_size to a much lower value limits the amount of chunked body data that cowlib will parse in a single read, reducing the window of data an attacker can use to trigger the quadratic work. This does not fully eliminate the vulnerability but can significantly reduce its impact for some applications.","source":"EEF","url":"https://www.cve.org/CVERecord?id=CVE-2026-7790"}],"observedAt":"2026-11-25T18:37:41.920Z","kev":{"status":"unavailable","checkedAt":"2026-11-28T23:55:31.062Z"},"coverage":[{"source":"NVD","status":"available","checkedAt":"2026-11-20T06:05:32.504Z","attemptedAt":"2026-11-20T06:05:32.504Z"},{"source":"GHSA","status":"available","checkedAt":"2026-11-20T06:05:32.079Z","attemptedAt":"2026-11-20T06:05:32.079Z"},{"source":"EUVD","status":"available","checkedAt":"2026-11-20T06:05:32.079Z","attemptedAt":"2026-11-20T06:05:32.079Z"},{"source":"EPSS","status":"available","checkedAt":"2026-11-20T06:05:32.079Z","attemptedAt":"2026-11-20T06:05:32.079Z"}],"evidence":[{"source":"ENISA EUVD","id":"EUVD-2026-29200","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-29200","modified":"May 26, 2026, 7:46:42 PM","score":8.7,"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","checkedAt":"2026-11-20T06:05:32.079Z"},{"source":"FIRST EPSS","id":"CVE-2026-7790","url":"https://www.first.org/epss/","probability":0.00431,"percentile":0.38016,"date":"2026-11-19","checkedAt":"2026-11-20T06:05:32.079Z"},{"source":"GitHub Advisory Database","id":"GHSA-32p9-57cr-4x65","url":"https://github.com/advisories/GHSA-32p9-57cr-4x65","modified":"2026-05-18T16:49:22Z","checkedAt":"2026-11-20T06:05:32.079Z"},{"source":"NVD","id":"CVE-2026-7790","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-7790","modified":"2026-10-26T18:10:00.173","score":8.7,"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","checkedAt":"2026-11-20T06:05:32.504Z"},{"source":"NVD","id":"CVE-2026-7790","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-7790","modified":"2026-10-26T18:10:00.173","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","checkedAt":"2026-11-20T06:05:32.504Z"}],"aiSummary":{"text":"The cowlib library, versions 0.6.0 before 2.16.1, has a vulnerability that allows an unauthenticated remote attacker to cause a denial of service through CPU exhaustion and memory amplification by sending an HTTP/1.1 request with a very long chunk-size hex string. The chunked transfer-encoding parser in `cow_http_te` accepts an unbounded number of hex digits. An attacker can exploit this to consume excessive resources.","model":"@cf/meta/llama-3.3-70b-instruct-fp8-fast","generatedAt":"2026-11-20T06:16:11.528Z","sources":[{"name":"CVE","url":"https://www.cve.org/CVERecord?id=CVE-2026-7790"},{"name":"OSV","url":"https://osv.dev/vulnerability/EEF-CVE-2026-7790"}]}}