CVE-2026-59248

Source
https://cve.org/CVERecord?id=CVE-2026-59248
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-59248.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-59248
Aliases
Downstream
Published
2026-07-28T09:54:19.579Z
Modified
2026-07-30T04:03:24.225673337Z
Severity
  • 8.7 (High) CVSS_V4 - 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 Calculator
Summary
Unbounded HPACK/QPACK prefixed-integer decoding in Cowlib causes memory-exhaustion DoS
Details

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 cowhpackcommon:decbigint/3 in src/cowhpackcommon.hrl (invoked from cowhpack:decode/2 in src/cowhpack.erl and from cowqpack:decodefieldsection/3 in src/cowqpack.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 maxframesize_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 before 2.19.0.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/59xxx/CVE-2026-59248.json",
    "unresolved_ranges": [
        {
            "extracted_events": [
                {
                    "introduced": "2.0.0-pre.1"
                },
                {
                    "fixed": "2.19.0"
                },
                {
                    "introduced": "5ddecbc121f812aec53d9df91829448d8e94e44c"
                },
                {
                    "fixed": "f582430498072a0c65ad338030321576dc13a343"
                }
            ],
            "source": "AFFECTED_FIELD"
        },
        {
            "extracted_events": [
                {
                    "introduced": "2.0.0-pre.1"
                },
                {
                    "fixed": "2.19.0"
                }
            ],
            "source": "CPE_FIELD"
        },
        {
            "extracted_events": [
                {
                    "introduced": "2.0.0"
                },
                {
                    "fixed": "2.19.0"
                }
            ],
            "source": "DESCRIPTION"
        }
    ],
    "cna_assigner": "EEF",
    "cwe_ids": [
        "CWE-770"
    ]
}
References

Affected packages

Git / github.com/ninenines/cowlib

Affected ranges

Type
GIT
Repo
https://github.com/ninenines/cowlib
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Database specific
{
    "source": "REFERENCES"
}

Affected versions

0.*
0.1.0
0.2.0
0.3.0
0.4.0
0.5.0
0.5.1
0.6.0
0.6.1
0.6.2
1.*
1.0.0
1.0.1
1.1.0
1.2.0
1.3.0
2.*
2.0.0
2.0.0-pre.1
2.0.0-rc.1
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.16.1
2.17.0
2.17.1
2.18.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

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-59248.json"