One chain hides a payload inside a nested message. One splits an escape across TCP segments. One keeps a transaction alive until the sensor runs out of memory. None needs a credential, and only one of them makes a sound.

Chain 1 — the nested message that inherits a lie

Precondition: Suricata 8.0.0–8.0.5 with SMTP MIME decoding enabled, which is the default.

  1. The attacker sends a multipart mail. One part is declared Content-Type: message/rfc822 and carries a filename, for example forwarded.eml.
  2. The outer part also carries a Content-Transfer-Encoding, or a Content-Type that the parser maps to Unknown.
  3. Inside the encapsulated message, the payload part has no Content-Type header. That is legal MIME; the default is text/plain.
  4. The parser enters the inner message without resetting content_type, filename, encoding or decoder. The inner part is now interpreted as Unknown, or as the outer encoding, and the outer filename is still set.
  5. The body loop skips URL extraction because the content type is not text, HTML or message — and skips it again because filename is not empty.
  6. Rules using url, file.name or file.data evaluate an empty or wrong model. The message is delivered. No alert is raised.

The attacker does not need to know the rule set: the bug removes entire buffer classes, so every rule that depends on them misses at once.

To the defender: an SMTP transaction in EVE, a file entry, a normal delivery. The absence of an alert is indistinguishable from the absence of an attack.

Chain 2 — the escape split across segments

Precondition: Suricata 7.0.13–7.0.16 with decode-quoted-printable: yes, which is the default.

Quoted-printable encodes a byte as =XX. The decoder keeps a small buffer for an escape that has not finished. The vulnerable path is:

if (state->bvr_len > 0 && state->bvremain[0] == '=') {
    if (state->bvr_len > 1) {
        h1 = state->bvremain[1];
        h2 = *(buf + offset);
    } else {
        h1 = *(buf + offset);
        h2 = *(buf + offset + 1);   // reads past the buffer when len == 1
    }
  1. The attacker encodes an attachment and chooses the TCP segmentation: one segment ends with =, the next carries a single byte, 4.
  2. The SMTP parser delivers the line to the MIME decoder in pieces. The decoder has bvr_len == 1 and remaining == 1.
  3. h2 = *(buf + 1) reads one byte past the heap allocation.
  4. Two outcomes. If the byte is mapped, the decoder produces a wrong value and the extracted file diverges from the real attachment. If it is not mapped, the process crashes.
  5. A crash restarts the sensor: a coverage gap. A desync produces corrupted file.data: a silent miss.

Segmentation is attacker-controlled, so the trigger is a choice, not a coincidence.

Chain 3 — the transaction that never ends

Precondition: Suricata 7.0.0–7.0.16 or 8.0.0–8.0.5 with MQTT parsing enabled.

MQTT's QoS 2 flow uses PUBREC and PUBREL messages tied to a packet identifier. Suricata looks up the transaction by that identifier and appends each new message to a vector:

if let Some(tx) = self.get_tx_by_pkt_id(v.message_id as u32) {
    tx.msg.push(msg);          // no limit before 8.0.6 / 7.0.17
}

A client can repeat PUBREC or PUBREL with the same identifier: each appends to the same transaction, and nothing frees it while the flow lives. Memory and CPU grow with the message count.

The outcome is slower parsing, memory pressure, then an OOM kill or watchdog restart. On a passive sensor that is a gap; inline it is an outage, or a fail-open decision that turns the IPS into a wire.

The composition

The three chains are stronger together than apart:

  • Chain 1 removes a detection without producing telemetry.
  • Chain 2 produces either a crash or corrupted evidence, and the attacker can choose the segmentation that decides which.
  • Chain 3 forces a restart or a slowdown, widening the window in which the first two are invisible.

An operator watching sensor health sees a restart and maybe a memory graph. An operator watching alerts sees nothing at all. The only reliable signal is a second, independent parser on the same traffic — which is architecture, not a signature.

What was not done

No live proof-of-concept was run. The chains are derived from the advisories, the upstream diffs and the quoted source, described at the level needed to understand the mechanism, not packaged as an exploit.

The patches in the download are upstream's, and they are verified against the release trees. Part 10 is the way out.

Next: Part 10 — the way out: upgrade, bound the parsers, and put a second witness on the wire.