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 12:52:00 UTC

[jira] [Resolved] (DIRAPI-442) Unbounded DSML filter nesting causes StackOverflowError during parse

     [ https://issues.apache.org/jira/browse/DIRAPI-442?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Emmanuel Lécharny resolved DIRAPI-442.
--------------------------------------
    Resolution: Fixed

Fixed with commit b98a21d2f758de50bf80fb0cae3edaf4569e0b58 

> Unbounded DSML filter nesting causes StackOverflowError during parse
> --------------------------------------------------------------------
>
>                 Key: DIRAPI-442
>                 URL: https://issues.apache.org/jira/browse/DIRAPI-442
>             Project: Directory Client API
>          Issue Type: Bug
>    Affects Versions: 2.1.8
>            Reporter: Emmanuel Lécharny
>            Priority: Major
>             Fix For: 2.1.9
>
>
> An attacker sends a *DSML* batchRequest whose _searchRequest_ filter is *100,000* nested *<not>* elements; during _Dsmlv2Parser.getNextRequest()_ the recursive transform overflows the stack, the response is truncated, and repeated requests degrade or wedge the gateway's thread pool.



--
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