{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-7790","id":"CVE-2026-7790","title":"Unbounded chunk-size hex digits in cowlib cause quadratic CPU and memory DoS","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-fe","descriptionLong":"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.","published":"2026-05-11T18:06:41.490Z","updated":"2026-10-28T02:30:27.706863620Z","reserved":"2026-05-04T18:23:21.380Z","status":"Analyzed","rejected":false,"assigner":"EEF","metric":{"version":"4.0","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","rating":"high","source":"EEF"},"metrics":[{"version":"4.0","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","rating":"high","source":"EEF"},{"version":"4.0","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","rating":"high","source":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db"},{"version":"4.0","score":null,"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":"unrated","source":"OSV"},{"version":"4.0","score":null,"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","source":"GitHub"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"high","source":"NVD"}],"rating":"high","products":["ninenines cowlib"],"affectedProducts":[{"vendor":"ninenines","product":"cowlib","defaultStatus":"unaffected","versions":[{"lessThan":"2.16.1","status":"affected","version":"0.6.0","versionType":"semver"}],"platforms":[]},{"vendor":"ninenines","product":"cowlib","defaultStatus":"unaffected","versions":[{"lessThan":"a4b8039ce8c93ab00867ef6b7e888822c09f4369","status":"affected","version":"8c0e428b012c59f553a264f285ed89d36f791e3e","versionType":"git"}],"platforms":[]}],"packages":[{"ecosystem":"Hex","name":"cowlib","purl":"pkg:hex/cowlib","ranges":[">=0.6.0 <2.16.1"],"fixed":["2.16.1"],"advisory":"GHSA-32p9-57cr-4x65"}],"cwes":["CWE-400"],"aliases":["EEF-CVE-2026-7790","GHSA-32p9-57cr-4x65"],"references":[{"url":"https://cna.erlef.org/cves/CVE-2026-7790.html","tags":["related","third-party-advisory","Third Party Advisory","advisory","web"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-7790","tags":["related","Third Party Advisory","web"]},{"url":"https://github.com/ninenines/cowlib/commit/a4b8039ce8c93ab00867ef6b7e888822c09f4369","tags":["patch","Patch","fix","web"]},{"url":"https://github.com","tags":["web"]},{"url":"https://repo.hex.pm","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/7xxx/CVE-2026-7790.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-7790","tags":["advisory"]},{"url":"https://github.com/ninenines/cowlib","tags":["package"]},{"url":"https://github.com/ninenines/cowlib/releases/tag/2.16.1","tags":["web"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial"},"epss":0.00431,"epssPercentile":0.38016,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-7790","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-7790","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-7790","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-32p9-57cr-4x65","ok":true,"note":"GHSA-32p9-57cr-4x65"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-7790","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}