Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-79161

Deeply nested queries can segfault expression parser

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • Query Optimization
    • ALL
    • QO 2023-08-07
    • 45

    Description

      Details in dev-only comment below.

      The depth limit for a query appears to be implicit in BSON, rather than enforced on the server side. We could add an explicit limit, or fix the expression parsing code (and other code that may crash later on in the system for this query) to not crash.

      This recursive parsing code has been around for a while so this isn't a 7.0 specific bug.

      Attachments

        Activity

          People

            backlog-query-optimization Backlog - Query Optimization
            matt.boros@mongodb.com Matt Boros
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: