| Title | Zylon PrivateGPT up to 0.6.2 Allocation of Resources Without Limits (CWE-770) |
|---|
| Description | A vulnerability was found in Zylon PrivateGPT up to 0.6.2. It affects the ChunksBody model in private_gpt/server/chunks/chunks_router.py and ChunksService.retrieve_relevant in private_gpt/server/chunks/chunks_service.py (Chunks API, POST /v1/chunks). The arguments limit and prev_next_chunks have no upper bound (chunks_router.py lines 16-17). limit is passed directly as similarity_top_k to the vector store retriever (chunks_service.py line 111), and prev_next_chunks triggers that many sibling-node lookups for every returned chunk (lines 120-122), so values such as limit=2147483647 or prev_next_chunks=99999 cause allocation of resources without limits (denial of service). The attack can be launched remotely without authentication in the default configuration (auth disabled, server bound to x.x.x.x).
Affected file: private_gpt/server/chunks/chunks_router.py, private_gpt/server/chunks/chunks_service.py
Affected arguments: limit, prev_next_chunks
CWE: CWE-770
CVSS 3.1: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H (7.5)
Proof of concept:
curl -X POST http://localhost:8001/v1/chunks -H "Content-Type: application/json" -d '{"text":"query","limit":2147483647}'
curl -X POST http://localhost:8001/v1/chunks -H "Content-Type: application/json" -d '{"text":"q","limit":1000,"prev_next_chunks":99999}'
Both return HTTP 200.
Product: https://github.com/zylon-ai/private-gpt
The vendor was contacted by email on 2026-04-28 with multiple follow-ups between July and September 2026, and through GitHub private vulnerability reporting on 2026-08-24, but did not respond. |
|---|
| Source | ⚠️ https://builtbybrayden.github.io/blog/privategpt-062-unauthenticated-by-default/#pgpt-002-ask-for-two-billion-results |
|---|
| User | buildbybrayden (UID 102637) |
|---|
| Submission | 10/30/2026 05:28 (1 month ago) |
|---|
| Moderation | 11/29/2026 20:50 (1 month later) |
|---|
| Status | Accepted |
|---|
| VulDB entry | 445257 [Zylon PrivateGPT up to 0.6.2 Chunks API chunks_service.py retrieve_relevant limit/prev_next_chunks allocation of resources] |
|---|
| Points | 20 |
|---|