CVE-2026-125327

CVE-2026-125327 is a high-severity allocation of resources without limits or throttling vulnerability in github.com/pgEdge/pgedge-rag-server (go), affecting versions < 1.0.1-0.20260729020411-a09d4872356b. It is fixed in 1.0.1-0.20260729020411-a09d4872356b.

Does this CVE actually affect you?

Kodem shows which CVEs are reachable and running in your applications, so you fix what's exploitable, not just what's listed.

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.

Runtime intelligence, not another scanner.

Summary

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

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.

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:

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.

The application allocates resources such as memory, threads, or file descriptors based on untrusted input without enforcing a cap. Typical impact: resource exhaustion leading to denial of service.

CVE-2026-125327 has a CVSS score of 7.5 (High). The vector is network-reachable, no privileges required, and no user interaction. A CVSS score reflects the worst-case severity of the vulnerability, not your specific exposure. Whether this affects your application depends on whether the vulnerable code is present and reachable in your environment. A fixed version is available (1.0.1-0.20260729020411-a09d4872356b); upgrading removes the vulnerable code path.

Affected versions

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

Security releases

github.com/pgEdge/pgedge-rag-server → 1.0.1-0.20260729020411-a09d4872356b (go)

Kodem intelligence

Severity tells you how bad this could be in the worst case. It does not tell you whether you are exposed. Exploitability and impact are functions of runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A vulnerable package can sit in your dependency tree and never run.

Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter. Kodem's runtime-powered SCA identifies whether this CVE is reachable in your applications.

Already deployed Kodem?

See it in your environmentNew to Kodem? Get a demo →

Remediation advice

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.

Frequently Asked Questions

  1. What is CVE-2026-125327? CVE-2026-125327 is a high-severity allocation of resources without limits or throttling vulnerability in github.com/pgEdge/pgedge-rag-server (go), affecting versions < 1.0.1-0.20260729020411-a09d4872356b. It is fixed in 1.0.1-0.20260729020411-a09d4872356b. The application allocates resources such as memory, threads, or file descriptors based on untrusted input without enforcing a cap.
  2. How severe is CVE-2026-125327? CVE-2026-125327 has a CVSS score of 7.5 (High). This score reflects the worst-case severity of the vulnerability, not your specific exposure. Whether it represents real risk in your environment depends on whether the vulnerable code is present and reachable.
  3. Which versions of github.com/pgEdge/pgedge-rag-server are affected by CVE-2026-125327? github.com/pgEdge/pgedge-rag-server (go) versions < 1.0.1-0.20260729020411-a09d4872356b is affected.
  4. Is there a fix for CVE-2026-125327? Yes. CVE-2026-125327 is fixed in 1.0.1-0.20260729020411-a09d4872356b. Upgrade to this version or later.
  5. Is CVE-2026-125327 exploitable, and should I be worried? Whether CVE-2026-125327 is exploitable in your environment depends on whether the vulnerable code is present and reachable. A CVSS score is a worst-case rating; it does not account for your specific deployment, configuration, or usage patterns. Kodem, an Intelligent Application Security platform, uses runtime intelligence to show which vulnerabilities actually execute in production, so you can focus on the ones that represent real risk. Get a demo
  6. What actually determines whether CVE-2026-125327 is exploitable, and how bad it is? Exploitability and impact are not fixed properties of a CVE. They depend on runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A high CVSS score on a dependency that never runs is not the same as real risk. Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter.
  7. How do I fix CVE-2026-125327? Upgrade github.com/pgEdge/pgedge-rag-server to 1.0.1-0.20260729020411-a09d4872356b or later.

Other vulnerabilities in github.com/pgEdge/pgedge-rag-server

Stop the waste.
Protect your environment with Kodem.