{"id":"CVE-2026-7790","aliases":["CVE-2026-7790","GHSA-32p9-57cr-4x65","EEF-CVE-2026-7790"],"related":[],"kind":"vulnerability","state":"published","title":"Unbounded chunk-size hex digits in cowlib cause quadratic CPU and memory DoS","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"## 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.","format":"markdown","source":"eef"},{"lang":"es","text":"Una vulnerabilidad de consumo de recursos no controlado en ninenines cowlib (módulo cow_http_te) permite una asignación excesiva.\n\nEl analizador de codificación de transferencia por bloques en cow_http_te acepta un número ilimitado de dígitos hexadecimales en el campo de tamaño de bloque (’chunk-size’). Cada dígito provoca una multiplicación de número grande (’bignum’) (Len * 16 + dígito), por lo que analizar N dígitos hexadecimales requiere un trabajo de CPU de O(N²) y una memoria de O(N). Además, cuando la entrada se alimenta por goteo, el analizador descarta la longitud acumulada en cada lectura parcial y se reinicia desde cero al reanudarse, elevando el costo a O(N³). Un atacante remoto no autenticado puede explotar esto enviando una solicitud HTTP/1.1 con Transfer-Encoding: chunked y una cadena hexadecimal de tamaño de bloque (’chunk-size’) muy larga para causar denegación de servicio a través del agotamiento de la CPU y la amplificación de la memoria.\n\nEsta vulnerabilidad está asociada con el archivo de programa src/cow_http_te.erl y las rutinas de programa cow_http_te:stream_chunked/2, cow_http_te:chunked_len/4.\n\nEste problema afecta a cowlib: desde 0.6.0 antes de 2.16.1.","source":"nvd"}],"published":"2026-05-11T18:06:41.490Z","modified":"2026-11-25T17:23:09.854Z","severity":{"scorer":"EEF","scheme":"CVSS:4.0","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,"rating":"HIGH"},"severities":[{"scorer":"EEF","scheme":"CVSS:4.0","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,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","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","rating":"HIGH"},{"scorer":"Erlang Ecosystem Foundation","scheme":"CVSS:4.0","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"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"}],"cwes":["CWE-400"],"affected":[{"ranges":[{"type":"semver","introduced":"0.6.0","fixed":"2.16.1","status":"affected"}],"vendor":"ninenines","product":"cowlib","package":"cowlib","cpe":"cpe:2.3:a:ninenines:cowlib:*:*:*:*:*:*:*:*","repo":"https://github.com/ninenines/cowlib","source":"cvelist"},{"ranges":[{"type":"git","introduced":"8c0e428b012c59f553a264f285ed89d36f791e3e","fixed":"a4b8039ce8c93ab00867ef6b7e888822c09f4369","status":"affected"}],"vendor":"ninenines","product":"cowlib","package":"ninenines/cowlib","cpe":"cpe:2.3:a:ninenines:cowlib:*:*:*:*:*:*:*:*","repo":"https://github.com/ninenines/cowlib","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0.6.0","status":"affected","fixed":"2.16.1"}],"ecosystem":"Hex","package":"cowlib","purl":"pkg:hex/cowlib","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.6.0","status":"affected","fixed":"2.16.1"}],"ecosystem":"Hex","package":"cowlib","purl":"pkg:hex/cowlib","source":"eef"},{"ranges":[{"type":"git","introduced":"8c0e428b012c59f553a264f285ed89d36f791e3e","status":"affected","fixed":"a4b8039ce8c93ab00867ef6b7e888822c09f4369"}],"repo":"https://github.com/ninenines/cowlib","source":"eef"},{"ranges":[{"status":"affected","introduced":"0.6.0","fixed":"2.16.1"}],"vendor":"ninenines","product":"cowlib","cpe":"cpe:2.3:a:ninenines:cowlib:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://cna.erlef.org/cves/CVE-2026-7790.html","tags":["related","third-party-advisory","web"],"sources":["cvelist","ghsa","eef","nvd"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-7790","tags":["related","third-party-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/ninenines/cowlib/commit/8c0e428b012c59f553a264f285ed89d36f791e3e","tags":["related","web"],"sources":["cvelist","eef","nvd"]},{"url":"https://github.com/ninenines/cowlib/commit/a4b8039ce8c93ab00867ef6b7e888822c09f4369","tags":["fix","patch","web"],"sources":["cvelist","ghsa","eef","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-7790","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/ninenines/cowlib","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/ninenines/cowlib/releases/tag/2.16.1","tags":["web"],"sources":["ghsa"]},{"url":"https://hex.pm/packages/cowlib","tags":["package"],"sources":["eef"]}],"credits":["Peter Ullrich","Loïc Hoguin"],"assigner":"EEF","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-05-11T18:56:19.590Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-7790","url":"https://www.cve.org/CVERecord?id=CVE-2026-7790","licence":"CVE Terms of Use","modified":"2026-11-20T05:08:58.312Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-32p9-57cr-4x65","url":"https://github.com/advisories/GHSA-32p9-57cr-4x65","licence":"CC-BY-4.0","modified":"2026-05-18T17:11:03.404Z"},{"source":"eef","name":"Erlang Ecosystem Foundation","id":"EEF-CVE-2026-7790","url":"https://osv.dev/vulnerability/EEF-CVE-2026-7790","licence":"CC-BY-4.0","modified":"2026-11-25T17:23:09.854Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-7790","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-7790","licence":"Public domain","modified":"2026-11-20T06:17:41.330Z"}],"updatedAt":"2026-11-25T22:59:21.248Z","epss":{"score":0.00573,"percentile":0.48707,"date":"2026-12-01T12:00:22.000Z"}}