sqlmapproject/sqlmap · error · H2Error
compressed response header block exceeds configured limit
Error message
compressed response header block exceeds configured limit
What it means
Raised while reassembling a HEADERS/CONTINUATION sequence when the compressed (HPACK) block exceeds the configured maximum size. Protects the decoder from unbounded memory use on malicious or broken peers.
Solutions
- Raise the compressed header block limit if the peer legitimately uses large blocks
- Treat persistent occurrences as hostile and drop the peer
- Prefer END_HEADERS-compliant framing instead of long CONTINUATION chains
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at lib/request/http2.py:1158 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of sqlmapproject/sqlmap@0a35b20e39 (2026-08-26).
Data as JSON: /api/errors/5dc93590ec445e26.
Report an issue: GitHub.
Appendix: source
Thrown at lib/request/http2.py:1158
self._connection_error("frame interleaved inside a CONTINUATION sequence")
elif ftype == CONTINUATION:
self._connection_error("unexpected CONTINUATION frame")
state = states.get(sid)
if state is None:
self._connection_error("header frame for an unknown stream")
if state.complete:
self._connection_error("header frame received after END_STREAM")
if ftype == HEADERS:
if state.block is not None:
self._connection_error("new HEADERS before the prior field section completed")
state.block = bytearray()
state.block_end_stream = bool(flags & FLAG_END_STREAM)
state.block.extend(_extract_header_fragment(ftype, flags, payload))
if len(state.block) > MAX_HEADER_BLOCK_SIZE:
self.usable = False
raise H2Error("compressed response header block exceeds configured limit")
if flags & FLAG_END_HEADERS:
self._complete_header_block(state)
return None
return sid
def _process_data_frame(self, flags, sid, payload, states):
state = states.get(sid)
if state is None:
self._connection_error("DATA frame for an unknown stream")
if state.headers is None:
self._connection_error("DATA received before final response headers")
if state.complete:
self._connection_error("DATA received after END_STREAM")
flow_len = len(payload)
if flow_len > self.conn_recv_window:
self._connection_error("peer exceeded the connection receive window")
if flow_len > state.recv_window:View on GitHub (pinned to 0a35b20e39)