{"record":{"id":"8adfc9b39b7c28c1","repo":"sqlmapproject/sqlmap","slug":"received-frame-exceeds-local-maximum-frame-size","errorCode":null,"errorMessage":"received frame exceeds local maximum frame size","messagePattern":"received frame exceeds local maximum frame size","errorType":"exception","errorClass":"H2ProtocolError","httpStatus":null,"severity":"error","filePath":"lib/request/http2.py","lineNumber":550,"sourceCode":"\ndef _recv_exact(sock, count):\n    if count < 0:\n        raise ValueError(\"negative receive size\")\n    chunks = []\n    received = 0\n    while received < count:\n        chunk = sock.recv(count - received)\n        if not chunk:\n            raise H2TransportError(\"connection closed by peer\")\n        chunks.append(chunk)\n        received += len(chunk)\n    return b\"\".join(chunks)\n\n\ndef _read_frame(sock, max_frame_size=DEFAULT_MAX_FRAME_SIZE):\n    length, ftype, flags, sid = decode_frame_header(_recv_exact(sock, 9))\n    if length > max_frame_size:\n        raise H2ProtocolError(\"received frame exceeds local maximum frame size\")\n    payload = _recv_exact(sock, length) if length else b\"\"\n    return ftype, flags, sid, payload\n\n\ndef _idna_host(host):\n    if isinstance(host, bytes):\n        try:\n            host = host.decode(\"ascii\")\n        except UnicodeDecodeError:\n            try:\n                host = host.decode(\"utf-8\")\n            except UnicodeDecodeError:\n                raise H2Error(\"hostname bytes are neither ASCII nor UTF-8\")\n    if not isinstance(host, text_type):\n        host = text_type(host)\n    if host.startswith(\"[\") and host.endswith(\"]\"):\n        host = host[1:-1]\n    if not host:","sourceCodeStart":532,"sourceCodeEnd":568,"githubUrl":"https://github.com/sqlmapproject/sqlmap/blob/0a35b20e3953d341be6c7ac75ccb0b3362540c8d/lib/request/http2.py#L532-L568","documentation":"_read_frame size guard: the 24-bit length in the received frame header exceeds the local maximum frame size, so the peer (or an attacker) is sending oversized frames and the connection is rejected rather than buffering them.","triggerScenarios":"Thrown at lib/request/http2.py:550 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Reset the connection (GOAWAY/STREAM_RESET)","Ensure the sender honors the negotiated max frame size"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"0a35b20e3953d341be6c7ac75ccb0b3362540c8d","analyzedAt":"2026-08-26T23:02:52.002Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}