# CVE-2026-59248: Unbounded HPACK/QPACK prefixed-integer decoding in Cowlib causes memory-exhaustion DoS

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.7
- **CVSS:** 8.7 (v4.0, CNA) `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`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Attack requirements: None; Privileges required: None; User interaction: None; Confidentiality impact: None; Integrity impact: None; Availability impact: High; Confidentiality impact on other systems: None; Integrity impact on other systems: None; Availability impact on other systems: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.52% (percentile 38, 2026-11-26)
- **CWE:** CWE-770
- **Published:** 2026-07-28T09:54:19.579Z
- **Modified:** 2026-11-24T06:17:09.213Z

## Who should check

- Anyone running ninenines cowlib \>= 2.0.0-pre.1, \< 2.19.0
- Anyone running ninenines cowlib \>= 5ddecbc121f812aec53d9df91829448d8e94e44c, \< f582430498072a0c65ad338030321576dc13a343

## Description

Allocation of resources without limits vulnerability in ninenines cowlib allows an unauthenticated remote HTTP/2 or HTTP/3 peer to exhaust memory on the vulnerable server (or client) and cause a denial of service.

The HPACK and QPACK prefixed-integer decoder cow\_hpack\_common:dec\_big\_int/3 in src/cow\_hpack\_common.hrl (invoked from cow\_hpack:decode/2 in src/cow\_hpack.erl and from cow\_qpack:decode\_field\_section/3 in src/cow\_qpack.erl) reads continuation octets until it sees one whose high bit is clear, evaluating Int + (Value bsl M) at each step with the shift M growing by seven per octet. No limit is enforced on the number of continuation octets, on the resulting bit width, or on the value; the decoder consumes whatever encoded length the peer supplies.

Because Erlang integers are immutable, each intermediate Value bsl M and each accumulator update allocates a fresh bignum whose digit width grows linearly with the number of octets processed so far. Summed across the whole decode, the transient bignum digit materialization is on the order of the square of the encoded length. A single maximal HPACK indexed representation carried inside one HTTP/2 HEADERS plus one CONTINUATION frame at Cowboy's default max\_frame\_size\_received can force hundreds of megabytes of transient allocation and garbage-collection churn before the resulting header-table index is rejected as invalid. Repeated or concurrent connections multiply the pressure and can drive the Erlang VM to memory exhaustion.

Cowlib is the HTTP parser used by Cowboy, RabbitMQ's management plugin, and other Erlang and Elixir HTTP/2 and HTTP/3 servers and clients, so any exposed endpoint that accepts HPACK or QPACK from an untrusted peer is reachable.

This issue affects cowlib: from 2.0.0-pre.1 before 2.19.0.

## Affected and fixed versions

- ninenines cowlib: \>= 2.0.0-pre.1, \< 2.19.0 (cvelist)
- ninenines cowlib: \>= 5ddecbc121f812aec53d9df91829448d8e94e44c, \< f582430498072a0c65ad338030321576dc13a343 (cvelist)

## Mitigation

- Upgrade cowlib to 2.19.0 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-59248. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-59248.md
Affected: ninenines cowlib >= 2.0.0-pre.1, < 2.19.0; ninenines cowlib >= 5ddecbc121f812aec53d9df91829448d8e94e44c, < f582430498072a0c65ad338030321576dc13a343
Fixed in: ninenines cowlib 2.19.0

Steps:
1. Search this machine and project for ninenines cowlib: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-59248 being exploited?

There is no confirmed exploitation: CVE-2026-59248 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.52% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-59248?

High: CVSS 8.7 (v4.0, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2026-59248?

ninenines cowlib \>= 2.0.0-pre.1, \< 2.19.0; ninenines cowlib \>= 5ddecbc121f812aec53d9df91829448d8e94e44c, \< f582430498072a0c65ad338030321576dc13a343.

### Is there a fix for CVE-2026-59248?

Yes. Fixed in ninenines cowlib 2.19.0. Upgrade cowlib to 2.19.0 or later.

### How do I check if I'm affected by CVE-2026-59248?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://github.com/ninenines/cowlib/commit/5ddecbc121f812aec53d9df91829448d8e94e44c>
- patch: <https://github.com/ninenines/cowlib/commit/f582430498072a0c65ad338030321576dc13a343>
- other: <https://cna.erlef.org/cves/CVE-2026-59248.html>
- other: <https://osv.dev/vulnerability/EEF-CVE-2026-59248>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-59248>

HTML: <https://flawdb.com/CVE-2026-59248> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-59248>
