A flaw was found in the `/v2/ catalog` endpoint, which accepts a parameter to control the maximum number of records returned (query string: `n`). This vulnerability allows a malicious user to submit an unreasonably large value for `n`, causing the allocation of a massive string array, possibly causing a denial of service through excessive use of memory. The issue is related to unrestricted resource allocation and can be exploited by a remote attacker to cause a denial of service.