Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain local access to shared grepai host
-
DeliveryIdentify a content_hash predictable from public content (e.g., known OSS file)
-
ExploitInvoke LookupByContentHash with crafted hash value
-
ExecutionPostgreSQL returns victim project's cached embedding vector
-
ImpactInfer semantic properties of victim codebase from leaked vector
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A04:2025 - Cryptographic Failures
ASVS 5.0
V11 - Cryptography Approved algorithm selection
|
| Exploitation Conditions | Exploitation requires local access to a shared grepai deployment where multiple projects are indexed against the same PostgreSQL instance (AV:L per CVSS 4.0). The attacker must hold at least low-level authenticated access (PR:L per CVSS 4.0) sufficient to invoke the LookupByContentHash function, either directly via application code or through a grepai API surface. Critically, the attacker must know or correctly predict a content_hash value present in a victim project's chunks table - the high attack complexity rating (AC:H) reflects this prerequisite. The vulnerability does not apply to single-project deployments, where no cross-tenant boundary exists. Exploitation is strictly limited to confidentiality of embedding vectors (VC:L); no integrity or availability impact is possible. The attack does not apply to grepai deployments using non-PostgreSQL backends. |
| Impact | CVSS 4.0 score of 1.1 with AV:L/AC:H/PR:L/UI:N reflects a genuinely low-severity vulnerability. Local access is required (AV:L), complexity is rated high (AC:H), and only a low-confidentiality impact is possible (VC:L) - limited to cached embedding vectors, not raw source code. No EPSS score was included in the intelligence input, so exploitation probability cannot be quantified numerically. The vulnerability is absent from CISA KEV, confirming no known widespread active exploitation. Despite the public exploit disclosure (E:P in CVSS 4.0), the practical attack surface is constrained: it requires a shared PostgreSQL deployment across multiple grepai projects and attacker knowledge or prediction of a valid content_hash. The impact is semantic information disclosure - embedding vectors reveal conceptual similarity of code content but not verbatim source text. This is realistically a low-priority finding unless the indexed codebase is highly sensitive and embedding inversion is a concern. |
| Exploit ScenarioDerived | A local authenticated attacker with low-privileged access to a shared grepai deployment determines the content_hash of a publicly known file (e.g., a well-known open-source README or license file) also indexed by a victim project in the same PostgreSQL instance. The attacker invokes LookupByContentHash with that hash value and retrieves the victim project's cached embedding vector for that content, revealing semantic fingerprinting data about the victim codebase. A proof-of-concept has been publicly disclosed, and the integration test added in PR #250 demonstrates the exact exploit path (TestPostgresStoreLookupByContentHashIsProjectScoped). |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 08, 2026
Cross-project embedding cache leakage in grepai (versions up to 0.35.0) allows a local low-privileged authenticated user to retrieve cached PostgreSQL embedding vectors belonging to other projects by supplying a known or predicted content_hash value to the LookupByContentHash function. The underlying flaw is a missing project_id scope in the SQL query, meaning any project's embedding vectors can be retrieved by any other authenticated caller who can supply a matching hash. No public exploitation has been confirmed via CISA KEV, but proof-of-concept exploit code has been publicly disclosed per VulDB and GitHub issue #249, and a fix PR (#250) is pending acceptance.
RemediationAI
A fix is available as upstream PR #250 (https://github.com/yoanbernabeu/grepai/pull/250) but has not yet been accepted or released as a tagged version - an exact patched release version is not independently confirmed at time of analysis. The PR modifies the SQL query to scope lookups by both project_id and content_hash, preventing cross-project cache reads. Until the fix is merged and a patched release is available, operators running multi-project deployments can mitigate by isolating each project's data using PostgreSQL row-level security (RLS) policies on the chunks table, restricting each database role to only its own project_id rows; this requires PostgreSQL 9.5+ and additional DBA configuration effort. Alternatively, running a separate PostgreSQL instance or schema per grepai project achieves full isolation with no RLS overhead, at the cost of increased infrastructure complexity. Single-project deployments are not exposed to cross-tenant leakage and require no immediate action.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in go, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
grepai is an AI-assisted code search tool that uses PostgreSQL to cache text embedding vectors for indexed code chunks. The vulnerable component is PostgresStore.LookupByContentHash in store/postgres.go. The original SQL query was: SELECT vector FROM chunks WHERE content_hash = $1 AND vector IS NOT NULL LIMIT 1 - with no project_id filter. In a shared multi-project deployment, this means the content_hash alone acts as the only lookup key, creating an implicit authorization boundary based solely on hash value possession. CWE-327 (Use of a Broken or Risky Cryptographic Algorithm) is assigned by the reporter, characterizing the misuse of a hash as an authorization token without adequate scoping - if an attacker can supply or predict a valid content_hash from another project, they bypass the intended project isolation. The PR diff confirms the root cause: the fix adds project_id = $1 as the first filter parameter, scoping all vector lookups to the calling project's own data.
Know when PostgreSQL gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:L/AC:H/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:P
Primary rating from Vendor (vuldb) · only source for this CVE.
CVSS VectorVendor: vuldb
DescriptionCVE.org
A vulnerability was determined in yoanbernabeu grepai up to 0.35.0. The affected element is the function PostgresStore.LookupByContentHash of the file indexer/chunker.go of the component Postgres Embedding Cache. Executing a manipulation of the argument content_hash can lead to use of weak hash. The attack needs to be launched locally. The attack requires a high level of complexity. The exploitability is described as difficult. The exploit has been publicly disclosed and may be utilized. The pull request to fix this issue awaits acceptance.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Related Vulnerabilities in grepai Weak Cryptography in Storage Backends
View all 2More in PostgreSQL
View allPostgreSQL libpq functions PQescapeLiteral(), PQescapeIdentifier(), PQescapeString(), and PQescapeStringConn() improperl
An issue was discovered in Appsmith before 1.52. Rated critical severity (CVSS 9.8), this vulnerability is remotely expl
Argument injection vulnerability in PostgreSQL 9.2.x before 9.2.4, 9.1.x before 9.1.9, and 9.0.x before 9.0.13 allows re
Unauthenticated arbitrary file write in Splunk Enterprise (below 10.2.4 and 10.0.7) and Splunk Cloud Platform (below 10.
Unauthenticated SQL injection in Sangoma Switchvox SMB Edition 8.3 (build 104997) lets remote attackers execute arbitrar
PostgreSQL versions before 9.2.22, 9.3.18, 9.4.13, 9.5.8 and 9.6.4 are vulnerable to incorrect authentication flaw allow
The build_tablename function in pgsql.c in the PostgreSQL (aka pgsql) extension in PHP through 5.6.7 does not validate t
A vulnerability in the h2oai/h2o-3 REST API versions 3.46.0.4 allows unauthenticated remote attackers to execute arbitra
In PostgreSQL 9.3 through 11.2, the "COPY TO/FROM PROGRAM" function allows superusers and users in the 'pg_execute_serve
Unauthenticated SQL injection in Vendure Shop API allows remote attackers to execute arbitrary SQL commands against the
Parse Server is an open source http web server backend. Rated critical severity (CVSS 10.0), this vulnerability is remot
Hard-coded default PostgreSQL credentials shipped in the docker-compose.yaml of langgenius Dify through version 1.5.1 al
EUVD-2026-35012
GHSA-q76h-p6jh-9rw3
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB