sqlmapproject/sqlmap · error · ValueError

unsupported serialized tag

Error message

unsupported serialized tag '%s'

What it means

Dispatch guard in _serializeDecode(): the decoded structure carries a tag character that matches no known serializer tag, meaning the data was serialized by a newer/older sqlmap or corrupted in transit.

Solutions

  1. Flush the session/resume files with --flush-session so incompatible data is discarded
  2. Use the same sqlmap version across machines when transferring session files
  3. Retry the operation once to rule out truncated file reads
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at lib/core/convert.py:221 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/7a5cc4e06bcaf94f. Report an issue: GitHub.

Appendix: source

Thrown at lib/core/convert.py:221

            return set(_serializeDecode(_) for _ in struct["v"])
        elif tag == "m":
            return dict((_serializeDecode(k), _serializeDecode(v)) for (k, v) in struct["v"])
        elif tag == "dec":
            return decimal.Decimal(struct["v"])
        elif tag == "dt":
            return datetime.datetime(*struct["v"])
        elif tag == "date":
            return datetime.date(*struct["v"])
        elif tag == "time":
            return datetime.time(*struct["v"])
        elif tag == "td":
            return datetime.timedelta(struct["v"][0], struct["v"][1], struct["v"][2])
        elif tag == "o":
            return _serializeDecodeObject(struct)
        elif tag is None:  # defensive - a bare mapping should never occur
            return dict((_serializeDecode(k), _serializeDecode(v)) for (k, v) in struct.items())
        else:
            raise ValueError("unsupported serialized tag '%s'" % tag)

    raise ValueError("unsupported serialized structure of type '%s'" % type(struct))

def _serializeResolveClass(name):
    """
    Resolves an allowlisted class name to its class (nothing else may be reconstructed)
    """

    if name not in _SERIALIZE_CLASSES:
        raise ValueError("deserialization of class '%s' is forbidden" % name)

    if name == "lib.utils.har.RawPair":
        from lib.utils.har import RawPair
        return RawPair
    else:
        from lib.core.datatype import AttribDict, InjectionDict
        return InjectionDict if name.endswith("InjectionDict") else AttribDict

View on GitHub (pinned to 0a35b20e39)