Quick Take
- What: CVE-2026-125327, a resource exhaustion vulnerability in pgEdge RAG Server that allowed unauthenticated attackers to trigger unbounded database reads
- Who is affected: Any deployment of pgEdge RAG Server version 1.0.0 or earlier, including all alpha and beta pre-releases, with a query endpoint reachable by untrusted parties
- Severity: High (CVSS 7.5), with amplification factor growing with corpus size
- What to do: Upgrade to version 2.0.0 or later and review the default search.bm25_max_documents value of 10000 against your corpus size
- Workaround: Place the server behind an authenticating, rate-limiting reverse proxy, or set hybrid_enabled to false on each pipeline
In plain English
A flaw in pgEdge RAG Server, a tool for building AI search systems on PostgreSQL databases, let anyone who could reach its search endpoint overwhelm the server with simple requests. Each search query forced the server to read the entire database and rebuild an index from scratch, making it far more expensive for the server than for the attacker. The bigger the database, the worse the problem. The endpoint required no password and had no speed limits.
What you should do: If you use pgEdge RAG Server, you should upgrade immediately. If you don’t use this tool, you can ignore this issue.
What happened
The pgEdge RAG Server query endpoint contained a critical design flaw in its keyword-search implementation. According to the GitHub Security Advisory published on September 3, 2026, the keyword-search arm read the entire corpus on every request and rebuilt an in-memory BM25 index from scratch.
The cost of serving a query scaled with the size of the source table rather than with the size of the result set. This created a significant amplification factor: each request cost the server and the tenant’s database far more than it cost the caller to make. The amplification factor grew with corpus size, making the largest deployments the most exposed.
The vulnerability was present in the code at internal/database/search.go:130, which built the corpus query with no LIMIT clause. The FetchDocuments function accepted no limit parameter at all, meaning neither a caller nor the orchestrator had any way to bound the read.
Hybrid search was enabled by default (internal/config/loader.go:197 defaulted HybridEnabled to true) and configured per pipeline rather than per request. This meant a caller could not opt out of the keyword arm, and an operator could not leave it available to some requests but not others. The endpoint required no authentication and applied no rate limiting (internal/server/middleware.go:37 applied only logging, panic recovery and optional CORS).
The vulnerability received a CVSS score of 7.5 and was assigned CVE-2026-125327. It was classified under CWE-405 (Asymmetric Resource Consumption) and CWE-770 (Allocation of Resources Without Limits or Throttling).
What you should do
Upgrade to pgEdge RAG Server version 2.0.0 or later immediately. The fix was released on the same day as the advisory.
After upgrading, review the default search.bm25_max_documents value of 10000 against the size of your corpus. According to the advisory, a cap far below corpus size silently reduces keyword recall.
If you cannot upgrade immediately, place the server behind an authenticating, rate-limiting reverse proxy. Alternatively, set hybrid_enabled to false on each pipeline to remove the keyword arm and the unbounded read, though this comes at the cost of keyword recall. The advisory notes that neither workaround is a substitute for upgrading.
What it means
This vulnerability represents a classic denial-of-service amplification attack. The lack of authentication, rate limiting, and read bounds created a perfect storm for resource exhaustion attacks.
The fix in version 2.0.0 introduces several safeguards. Reads are now capped by a new per-pipeline search.bm25_max_documents setting, defaulting to 10000, which is plumbed through SearchBackend.FetchDocuments and applied as a parameterised LIMIT. There is deliberately no unlimited value: a non-positive setting is rejected at configuration load time rather than silently treated as unbounded.
Requests that reach the cap are logged, because keyword recall is partial at that point and an operator should not have to infer it. A new disable_hybrid request field lets a caller skip the expensive arm per query, and can only ever turn it off.
The vulnerability highlights the importance of implementing proper resource limits and authentication in API endpoints, especially those that perform database operations. The fact that the amplification factor grew with corpus size made this particularly dangerous for production deployments with large datasets.



