HIGH · CVSS 3.1 7.5 EPSS 0.6% · 45th percentile CWE-405CWE-770

CVE-2026-125327: pgEdge RAG Server unbounded corpus read allows resource exhaustion from unauthenticated requests

Published 2026-11-12 · Updated 2026-11-23 · Also known as GHSA-5qg5-rgp6-j5m5, GO-2026-6971

Summary

An unbounded corpus read vulnerability in the pgEdge RAG Server allows unauthenticated attackers to exhaust server and database resources via the query endpoint. All deployments using version 1.0.0 or earlier should update immediately.

Who is affected

Deployments of pgEdge RAG Server at version 1.0.0 or earlier are affected if their query endpoint is reachable by untrusted parties. The keyword-search arm reads the entire corpus on every request to rebuild an in-memory BM25 index without limits or authentication, causing resource exhaustion through high amplification factors.

Exploitability

The vulnerability has a CVSS base score of 7.5 (High) with a vector of CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H, indicating it can be exploited remotely over the network with low attack complexity and no privileges or user interaction required, resulting in high availability impact. The EPSS score is 0.004 (percentile 0.396) and it is not listed in the CISA Known Exploited Vulnerabilities catalog.

Remediation

How to check your project

Automated analysis of the published advisory data, generated 2026-11-23. Not human-reviewed; verify against the official advisory. How this works.

Affected packages

EcosystemPackageAffected versionsFixed inUpgrade
Go github.com/pgEdge/pgedge-rag-server >= 0, < 1.0.1-0.20260729020411-a09d4872356b 1.0.1-0.20260729020411-a09d4872356b go get github.com/pgEdge/[email protected]

CVSS 3.1 vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Attack vectorNetwork
Attack complexityLow
Privileges requiredNone
User interactionNone
ScopeUnchanged
ConfidentialityNone
IntegrityNone
AvailabilityHigh

FAQ

What causes the resource exhaustion?

The keyword-search arm reads the entire source table corpus on every query request to rebuild an in-memory BM25 index, meaning resource consumption scales with the size of the source table rather than the result set.

Does the endpoint require authentication?

No, the vulnerable query endpoint required no authentication and applied no rate limiting in affected versions.

How does upgrading resolve the vulnerability?

Upgrading to version 2.0.0 or later caps reads via a new per-pipeline search.bm25_max_documents setting that applies a parameterized LIMIT, and introduces a disable_hybrid request field.

Original advisory description
### 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.

References

Source records: GHSA-5qg5-rgp6-j5m5, GO-2026-6971 (OSV.dev) · EPSS by FIRST, 2026-11-26.