pgEdge pgedge-rag-server
pgEdge RAG Server unbounded corpus read allows resource exhaustion from unauthenticated requests
pgEdge RAG Server is an API server for retrieval-augmented generation over PostgreSQL content using pgvector. Prior to 2.0.0, the unauthenticated query endpoint uses FetchDocuments in internal/database/search.go to read the entire filtered corpus without a LIMIT and rebuild an in-memory BM25 index on every request. Because HybridEnabled is set by default in internal/config/loader.go and the endpoint has no rate limit, inexpensive remote queries can impose database and CPU work proportional to corpus size and exhaust service resources. This issue is fixed in version 2.0.0.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 2.0.0
Fixed in 2.0.0
Mitigation
Upgrade pgedge-rag-server to 2.0.0 or later.
References
- Vendor advisory github.com/pgEdge/pgedge-rag-server/security/a…
- Patch github.com/pgEdge/pgedge-rag-server/pull/44
- Patch github.com/pgEdge/pgedge-rag-server/commit/a09…
1 more
- Release notes github.com/pgEdge/pgedge-rag-server/releases/t…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.