
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:
- Class: 2 = success, 4 = transient failure, 5 = permanent failure.
- Subject: 1 = addressing, 4 = network, 7 = security, and so on.
- Detail: the specific condition — 1 is "address does not exist",
2 is "bad destination mailbox".
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:
- Consume the first number, the dot, the second number, the dot, the
third number. - Expect text. Look for the separator position — the point where the
trailing text begins. - There is no text. No separator exists; the input has ended.
- 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. - 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:
- RFC optionality. The optional component is optional. A parser
written against well-formed samples passes every test and fails on
the one input where the optional part is absent. Test suites are
written from examples; examples always include the text. - C string handling. "Scan forward for a delimiter" is only safe
with an explicit end pointer. Careful C is still C: the absence of
the bound is the bug. No language feature saved it, because the flaw
is a missing check, not a bad primitive. - The architecture is the mitigation. This is the third time this
series has said it, because it is the load-bearing fact: the same bug
in a monolithic MTA would be a remote outage. - The fix is trivial. One bounds check, shipped across three
branches simultaneously — the correct response for a one-line fix.
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.

Comments (0)