You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Emmanuel Lécharny (Jira)" <ji...@apache.org> on 2026/09/28 21:47:00 UTC

[jira] [Created] (DIRAPI-471) TLV.getSize() integer overflow bypasses parent length-containment check

Emmanuel Lécharny created DIRAPI-471:
----------------------------------------

             Summary: TLV.getSize() integer overflow bypasses parent length-containment check
                 Key: DIRAPI-471
                 URL: https://issues.apache.org/jira/browse/DIRAPI-471
             Project: Directory Client API
          Issue Type: Bug
    Affects Versions: 2.1.8
            Reporter: Emmanuel Lécharny
             Fix For: 2.1.9


With default unbounded _maxPDUSize_, a hostile peer sends a root *SEQUENCE* declaring length 16, then a child *TLV* declaring _0x7FFFFFFF_: _getSize()_ wraps to *-2147483643*, the containment check is bypassed, and the parent's _expectedLength_ is rewritten to an overflowed value — the decoder proceeds with a structurally impossible *TLV* tree instead of rejecting the *PDU*.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@directory.apache.org
For additional commands, e-mail: dev-help@directory.apache.org