{"record":{"id":"78f7b53a5bee49b1","repo":"sqlmapproject/sqlmap","slug":"local-infile-is-not-supported","errorCode":null,"errorMessage":"LOCAL INFILE is not supported","messagePattern":"LOCAL INFILE is not supported","errorType":"exception","errorClass":"NotSupportedError","httpStatus":null,"severity":"error","filePath":"extra/dbwire/mysql.py","lineNumber":212,"sourceCode":"\n    def _query(self, query):\n        _send_packet(self._sock, 0, b\"\\x03\" + query.encode(\"utf-8\"))  # COM_QUERY\n        try:\n            return self._read_query_response()\n        except (struct.error, IndexError, ValueError) as ex:\n            raise InterfaceError(\"malformed server response: %s\" % ex)\n\n    def _read_query_response(self):\n        seq, payload = _read_packet(self._sock)\n        first = _u8(payload, 0)\n\n        if first == 0xff:  # ERR\n            raise ProgrammingError(\"(remote) %s\" % _err_message(payload))\n        if first == 0x00 or (first == 0xfe and len(payload) < 9):  # OK packet (no result set)\n            affected, _ = _lenc_int(payload, 1)\n            return None, [], (affected if affected is not None else -1)\n        if first == 0xfb:  # LOCAL INFILE request\n            raise NotSupportedError(\"LOCAL INFILE is not supported\")\n\n        column_count, _ = _lenc_int(payload, 0)\n        description, binary = [], []\n        for _ in range(column_count):\n            _, cpay = _read_packet(self._sock)\n            off = 0\n            for _ in range(4):  # catalog, schema, table, org_table\n                _, off = _lenc_str(cpay, off)\n            name, off = _lenc_str(cpay, off)          # name\n            _, off = _lenc_str(cpay, off)             # org_name\n            _, off = _lenc_int(cpay, off)             # length of the fixed-length block (0x0c)\n            charset = struct.unpack(\"<H\", cpay[off:off + 2])[0]\n            col_type = _u8(cpay, off + 6)             # fixed block: charset(2) column_length(4) type(1) flags(2) ...\n            description.append((name.decode(\"utf-8\", \"replace\"), col_type, None, None, None, None, None))\n            binary.append(charset == _BINARY_CHARSET and col_type in _BINARY_TYPES)\n\n        _read_packet(self._sock)  # EOF after the column definitions\n","sourceCodeStart":194,"sourceCodeEnd":230,"githubUrl":"https://github.com/sqlmapproject/sqlmap/blob/0a35b20e3953d341be6c7ac75ccb0b3362540c8d/extra/dbwire/mysql.py#L194-L230","documentation":"Error \"LOCAL INFILE is not supported\" thrown in sqlmapproject/sqlmap.","triggerScenarios":"Thrown at extra/dbwire/mysql.py:212 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"0a35b20e3953d341be6c7ac75ccb0b3362540c8d","analyzedAt":"2026-08-26T23:02:52.002Z","schemaVersion":2},"datasetVersion":"2026-08-27T03:17:27.898Z"}