high · 7.5 Patched

pgEdge RAG Server unbounded corpus read allows resource exhaustion from unauthenticated requests

CVE-2026-125327 · GHSA-5qg5-rgp6-j5m5 · GO-2026-6971 · published 12 Nov 2026

How serious is it

  • Severity: high, CVSS score 7.5 out of 10.
  • Exploit prediction (EPSS): 0.4% chance of exploitation in the next 30 days, higher than 39% of all vulnerabilities.
  • Not on the CISA list of exploited vulnerabilities.
  • No public exploit in Exploit-DB.

Is your app affected by CVE-2026-125327?

Paste this prompt into Claude Code, Cursor or any AI coding tool: it runs a free Shippable scan of your project and fixes what it finds. Built with Lovable, Bolt or v0? Scan your live app. Or upload your package file.

Who is affected

  • github.com/pgEdge/pgedge-rag-server (Go) < 1.0.1-0.20260729020411-a09d4872356b

How to check

  1. Run go list -m github.com/pgEdge/pgedge-rag-server in your project to see the installed version, including copies pulled in by other packages.
  2. Or paste your lockfile into the checker: it lists every package with a known vulnerability, this one included.

How to fix

Copies a prompt for Claude Code, Cursor or Codex: it checks your lockfiles for this and upgrades it.
  1. Upgrade github.com/pgEdge/pgedge-rag-server to 1.0.1-0.20260729020411-a09d4872356b or later, commit the lockfile and redeploy.
  2. If a vulnerable version was live, check your logs and rotate the secrets that server could read.

The advisory

### Impact An unauthenticated caller able to reach the query endpoint could exhaust database and server resources with ordinary, inexpensive requests. The keyword-search arm read the entire corpus on every request and rebuilt an in-memory BM25 index from it, so the cost of serving a query scaled with the size of the source table rather than with the size of the result set. Each request cost the server and the tenant's database far more than it cost the caller to make, which makes this a materially more effective denial-of-service lever than flooding the endpoint with ordinary requests. The amplification factor grows with corpus size, so the largest deployments are the most exposed. Hybrid search was enabled by default and configured per pipeline rather than per request, so a caller could not opt out of the keyword arm and an operator could not leave it available to some requests but not others. **Who is affected:** any deployment of pgEdge RAG Server at `1.0.0` or earlier, including all alpha and beta pre-releases, whose query endpoint is reachable by an untrusted party. The endpoint required no authentication and applied no rate limiting. In `1.0.0`, `internal/database/search.go:130` built the corpus query with no `LIMIT`: ```go query = fmt.Sprintf(` SELECT ... FROM %s%s`, tableIdent, filterClause) ``` `FetchDocuments` accepted no limit parameter at all, so neither a caller nor the orchestrator had any way to bound the read. `internal/config/loader.go:197` defaulted `HybridEnabled` to true, and `internal/server/middleware.go:37` applied only logging, panic recovery and optional CORS. ### Patches **Fixed in `2.0.0`. Upgrade to `2.0.0` or later.** Reads are capped by a new per-pipeline `search.bm25_max_documents`, defaulting to 10000, 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. **After upgrading, review the default `search.bm25_max_documents` value of 10000 against the size of your corpus.** A cap far below corpus size silently reduces keyword recall. ### Workarounds Place the server behind an authenticating, rate-limiting reverse proxy. Setting `hybrid_enabled: false` on each pipeline removes the keyword arm and with it the unbounded read, at the cost of keyword recall. This is the only mitigation available without a proxy. Neither is a substitute for upgrading.

Check your whole app

Dependencies are only half of it. Free and read-only: before you push, run npx shippable-dev scan localhost:3000 in your project folder, no account needed. For your live app, you prove it's yours with a one-line tag first.

References

Merged from GitHub Advisory Database, OSV, FIRST EPSS. Last updated 24 Nov 2026. All vulnerabilities · RSS · JSON