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/29 07:26:00 UTC

[jira] [Commented] (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:comment-tabpanel&focusedCommentId=18120633#comment-18120633 ] 

Emmanuel Lécharny commented on DIRAPI-442:
------------------------------------------

Found by Claude

> 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