Vulnerability  ·  2026-11-11

pgEdge RAG Server unauthenticated query endpoint can rebuild the entire BM25 index on a large corpus (resource exhaustion) (CVE-2026-125327)

VulnerabilityMedium impactGlobalCVE-2026-125327
The retrieval endpoint reads the whole filtered corpus and rebuilds a BM25 index on each request, with no LIMIT or concurrency control, so a single request against a large corpus can exhaust resources. CVSS 7.5.
RAG servers are exposed to agents and, increasingly, to attacker-controlled prompts that drive repeated expensive queries. An unauthenticated endpoint with no LIMIT is a cheap way to knock out the retrieval layer a production RAG/agent pipeline depends on.
The unauthenticated query endpoint uses FetchDocuments in internal/database/search.go to read the entire filtered corpus with no LIMIT and rebuild an in-memory BM25 index over it, exhausting memory/CPU and denying service.
pgEdge RAG Server < 2.0.0
Upgrade pgEdge RAG Server to 2.0.0 (commit a09d4872356b510c81f11591845445c33ff45a84).
NVD detailFix commit
See this in the live feed Explore related AI security and governance findings — updated every morning.
Open the feed →