An HPACK compression bomb uses HTTP/2 header compression to make a small request expand into a much larger in-memory object. The danger is not compression itself, but the gap between compact wire data and the server resources needed to decompress and process it.
How HPACK Compression Bombs Work
An HPACK compression bomb exploits the gap between compact HTTP/2 header bytes on the wire and the much larger header object a server must build in memory after decompression and validation. The attack does not depend on “breaking” compression, it depends on making the server do disproportionately expensive work for a very small input.
HPACK is designed to reduce repeated header overhead, but that efficiency can become a liability when a server must expand, decode, and normalise a header set that is crafted to maximise resource consumption. The practical issue is not payload size alone, but the server-side processing cost attached to that size amplification.
Why It Is Dangerous in HTTP/2 Stacks
The danger comes from resource exhaustion, especially memory pressure, CPU load, allocation churn, and connection handling delays. A single malicious stream may be enough to cause disproportionate work, but in practice the risk rises when the attacker can repeat the pattern across many connections or reuse the same reverse proxy, gateway, or application server path.
Because HTTP/2 is often deployed in front of shared infrastructure, a compression bomb can affect more than one application if the same front end or service mesh layer performs decompression on behalf of multiple services. That makes the issue a platform reliability problem as much as an application parsing problem.
How Organisations Check Exposure
Exposure depends on whether the organisation accepts HTTP/2 traffic, where HPACK decoding occurs, and which components enforce header limits. Teams should confirm the asset inventory for internet-facing services, edge proxies, load balancers, and application servers, then verify whether each component enforces practical limits on header size, header count, and decompression behaviour.
Vendor advisories and release notes matter because the exact exposure often depends on implementation details rather than the protocol alone. An environment can appear compliant with HTTP/2 while still being vulnerable if a specific server, proxy, or intermediary handles compressed headers inefficiently.
Mitigation and Detection When You Cannot Patch Immediately
When patching or upgrading is delayed, the most useful short-term controls are stricter header limits, tighter request rate controls, reduced exposure of HTTP/2 endpoints, and defensive proxy settings that reject abnormal header growth early. Capacity planning also matters, because this class of attack is often successful by consuming shared resources faster than the service can recover.
Detection should focus on sudden spikes in HTTP/2 header processing, repeated malformed or unusually large header patterns, proxy instability, and unexplained memory growth in the front end or application tier. If the attack has already succeeded, review whether the service crashed, timed out, or degraded in ways that could have hidden follow-on requests or partial session handling.
What It Means for Secure Engineering
HPACK compression bombs are a reminder that protocol efficiency can become a denial-of-service surface when parser cost, memory allocation, and enforcement limits are not aligned. Secure engineering for this issue is less about compression itself and more about bounding the work a server is willing to do for any one request.
For teams operating HTTP/2 at scale, the broader lesson is to treat protocol parsing and decompression as security-sensitive code paths. The safest designs fail closed on abnormal expansion, preserve clear telemetry around parser load, and assume that a compact input can still be an operationally expensive one.
Risk and Threat Considerations
HPACK compression bombs create a denial-of-service risk because the attacker only needs a small request to force a much larger in-memory expansion and processing burden. That makes the attack attractive on busy edge systems where a modest amount of crafted traffic can trigger disproportionate degradation.
Failure mechanism: The attacker sends HTTP/2 headers that are cheap to transmit but expensive to decode, normalise, and store, pushing the server into resource exhaustion before normal request handling can keep up.
Impact: The usual outcomes are elevated latency, dropped requests, connection instability, process crashes, or service-wide slowdown, especially when the same decoding component protects many applications.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
NIST SP 800-53 Rev 5, NIST CSF 2.0 and CIS Controls v8 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| NIST SP 800-53 Rev 5 | SC-5 — Denial of Service Protection | HPACK bombs are a denial-of-service condition against shared HTTP/2 services |
| SC-6 — Resource Availability | The attack aims to deplete memory and processing capacity in protocol handlers | |
| SI-10 — Information Input Validation | Mitigation depends on constraining malformed or unusually expansive header input | |
| Recommendation — Limit resource consumption and reject abusive request patterns before they exhaust the service. Preserve availability by bounding parser work and protecting shared decoding resources. Validate header size and structure early to prevent abusive expansion paths. | ||
| NIST CSF 2.0 | PR.DS-4 — Data is subject to data-at-rest, data-in-transit, and data-in-use protections | HTTP/2 header handling is a data-in-transit parsing surface that needs protective controls |
| Recommendation — Apply transport-layer safeguards and enforce protocol limits on incoming traffic. | ||
| CIS Controls v8 | CIS-8 — Audit Log Management | Detection relies on logs and telemetry from proxies and HTTP/2 parsers |
| Recommendation — Collect and retain parser, proxy, and error telemetry so abnormal header activity is observable. | ||
Practitioner Guidance
What to watch for: Treat unusual header-processing cost as a first-class operational signal, not just a protocol anomaly. If HTTP/2 is enabled, make header limits, proxy behaviour, and parser telemetry part of the service acceptance criteria.
Governance implication: Ownership should be clear across network, platform, and application teams, because the risky behaviour often sits in shared infrastructure rather than in the application code that ultimately receives the request.
Related resources from NHI Mgmt Group
Deepen Your Knowledge
Free weekly newsletter
Subscribe to the NHI & AI Identity Journal
The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.
Bonus 33% off our NHI Course when you subscribe.
Reviewed and updated by the NHIMG editorial team on November 18, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org