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

Enforce client metadata limit of 512 on non-internal clients

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 7.0.0-rc0
    • None
    • None
    • None
    • Fully Compatible
    • ALL
    • Security 2023-04-17

    Description

      The documented limit for client metadata is 512 bytes. Due to SERVER-26109, this is only enforced on the mongos. Due to SERVER-26109, the limit was raised to 1024 on mongod. The lower limit of 512 bytes should be enforce on mongod for non-internal clients. The length can be verified after parsing is done in ClientMetadata::tryFinalize.

      Attachments

        Activity

          People

            mark.benvenuto@mongodb.com Mark Benvenuto
            mark.benvenuto@mongodb.com Mark Benvenuto
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: