The Small Failures First: Enhanced Status Codes

Site Admin · 29 Nov 2026 · Data & Messaging

Enhanced status codes — the three-part dotted codes (5.1.1, 4.4.1) mail servers append to almost every reply. RFC 3463 defines them; the RFC makes the trailing text optional; and the parser that walks them was written as if it were required. That one mismatch is the entire bug.

Before the CVE, the syntax: enhanced status codes — the three-part
dotted codes (5.1.1, 4.2.2) that mail servers append to almost every
reply. RFC 3463 defines them; the RFC makes the trailing text optional;
and the parser that walks them was written as if it were required. That
one mismatch — one comparison against the end-of-string pointer missing
— is the entire bug.

The three-part code

Plain SMTP replies are two-digit-and-text: 250, 550, 452. Enhanced
status codes add precision: class.subject.detail — 5.1.1,
4.7.1, 2.1.5 — defined by RFC 3463:

The full form is the code optionally followed by human-readable text:

5.1.1 User unknown
4.4.1 No answer from host

The codes appear in SMTP replies, in DSN parameters, and inside bounce
and delivery-status messages — the three places Part 5 mapped.

The optional text

Here is the detail that matters for the whole disclosure: RFC 3463
makes the text optional.
The grammar is code-with-optional-text. A
well-formed enhanced status code is permitted to be just the numbers:

5.1.1
4.4.1

An SMTP client or server that emits the bare code is behaving
correctly. And the parser that reads these codes must therefore be able
to handle the case where the code ends the line — where there is no
text, no separator, nothing after the third number.

The corpus names the bug class precisely:

This is the classic "assume the optional component is present" bug.
RFC 3463 makes the text optional; the code treated it as required.

How the parser walks

Follow the walk the parser performs on input like 5.1.1 with nothing
after it:

  1. Consume the first number, the dot, the second number, the dot, the
    third number.
  2. Expect text. Look for the separator position — the point where the
    trailing text begins.
  3. There is no text. No separator exists; the input has ended.
  4. The code does not find a terminator — the bounds check that should
    stop it at the end of the buffer is missing — and continues scanning
    past the end.
  5. The over-read walks into adjacent memory. Two outcomes:
    - it hits an unmapped page → SIGSEGV; the process dies;
    - it hits a nearby NUL → the parser returns a garbage string,
    which may itself cause a downstream failure.

The missing check is one comparison against the end-of-string pointer.
One bounds check. That is the entire flaw — the difference between
"stop at the end" and "keep reading into whatever is past the end".

Why small failures ship

The corpus's section 5 — "why the design allowed it" — is a short list,
and every item is a lesson:

The shape of the bug, in one sentence: the parser treated an optional
component as required, and the missing boundary check turned malformed
input into a crash.

Next: Part 7 — the first and most fundamental flaw: CVE-2026-43964
itself.