CVE-2026-125327: pgEdge RAG Server resource exhaustion via unbounded corpus read

A high-severity vulnerability in pgEdge RAG Server allowed unauthenticated attackers to exhaust database and server resources through ordinary requests that triggered unbounded corpus reads. The flaw affected all versions up to 1.0.0.

Christopher Ort
By i10X News Desk · Reviewed by Christopher Ort · 3 min read
Share
A server room with overloaded database servers showing warning lights and stressed IT staff monitoring resource usage on multiple screens
Image: AI-generated, i10X
On this page
  1. Quick Take
  2. In plain English
  3. What happened
  4. What you should do
  5. What it means
  6. Sources
i10X Quick Take

Quick Take

  1. What: CVE-2026-125327, a resource exhaustion vulnerability in pgEdge RAG Server that allowed unauthenticated attackers to trigger unbounded database reads
  2. 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
  3. Severity: High (CVSS 7.5), with amplification factor growing with corpus size
  4. 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
  5. 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.

Sources

Christopher Ort

Christopher Ort

Christopher Ort is the editor of i10X News at i10x.ai. He has worked hands-on with AI tools, models and agent workflows for years and leads i10X’s coverage of AI launches, funding and research. He is the author of “The Style Penalty”, an SSRN study on how frontier AI models judge AI-written CVs, covered by heise online and t3n.

Editor's picks

  1. Georgia Tech’s Academic AI Playbook: 20 Lessons From 67 Real Courses, Free to Reuse
  2. Arcfront’s $1B Run Rate: What the AI Data Startup Confirms and What It Doesn’t
  3. GPT-6.2 Astra Tops Blueprint-Bench 2, 70% Above May Leader GPT-5.5
  4. Deutsche Telekom Puts 100 Million Euros Into Mistral for Sovereign AI in Germany
  5. Inkling 2 Mini: Thinking Machines’ Looped Open Model Tops Qwen on Coding Tests