Skip to main content

grepai CVE-2026-11481

| EUVDEUVD-2026-35012 LOW
Use of a Broken or Risky Cryptographic Algorithm (CWE-327)
2026-06-08 cna@vuldb.com GHSA-q76h-p6jh-9rw3
1.1
CVSS 4.0 · Vendor: vuldb
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Gain local access to shared grepai host
  2. Delivery
    Identify a content_hash predictable from public content (e.g., known OSS file)
  3. Exploit
    Invoke LookupByContentHash with crafted hash value
  4. Execution
    PostgreSQL returns victim project's cached embedding vector
  5. Impact
    Infer 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).

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
No patch listed yet 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

grepai 0.29
grepai 0.33
grepai 0.3
grepai 0.20
grepai 0.30
grepai 0.8
grepai 0.34
grepai 0.28
grepai 0.6
grepai 0.5
grepai 0.17
grepai 0.12
grepai 0.11
grepai 0.35.0
grepai 0.25
grepai 0.26
grepai 0.24
grepai 0.9
grepai 0.4
grepai 0.22
grepai 0.21
grepai 0.14
grepai 0.7
grepai 0.32
grepai 0.19
grepai 0.27
grepai 0.31
grepai 0.10
grepai 0.18
grepai 0.1
grepai 0.23
grepai 0.15
grepai 0.13
grepai 0.16
grepai 0.2

Affected Packages

go github.com/yoanbernabeu/grepai no fix
euvd grepai no fix

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

Vendor (vuldb) PRIMARY 1.1 LOW
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

Attack Vector
Local
Attack Complexity
High
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

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

EPSS Score
0.0%
Top 99% exploitable
Social Media
1
Sightings
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment CIRCL GitHub VulDB

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.

SignalValue
Severity LOW
CISA KEV No
Public POC No
EPSS 0.0%
Patch available No
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation
Poc
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Low
Technical Impact
Partial

Priority Score

6
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +6
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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 2
CVE-2025-1094 HIGH POC
8.1 Feb 13

PostgreSQL libpq functions PQescapeLiteral(), PQescapeIdentifier(), PQescapeString(), and PQescapeStringConn() improperl

CVE-2024-55964 CRITICAL POC
9.8 Mar 26

An issue was discovered in Appsmith before 1.52. Rated critical severity (CVSS 9.8), this vulnerability is remotely expl

CVE-2013-1899 MEDIUM POC
6.5 Apr 04

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

CVE-2026-20253 CRITICAL POC
9.8 Jun 10

Unauthenticated arbitrary file write in Splunk Enterprise (below 10.2.4 and 10.0.7) and Splunk Cloud Platform (below 10.

CVE-2026-9586 CRITICAL POC
9.3 Jul 17

Unauthenticated SQL injection in Sangoma Switchvox SMB Edition 8.3 (build 104997) lets remote attackers execute arbitrar

CVE-2017-7546 CRITICAL
9.8 Aug 16

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

CVE-2015-1352 MEDIUM POC
5.0 Mar 30

The build_tablename function in pgsql.c in the PostgreSQL (aka pgsql) extension in PHP through 5.6.7 does not validate t

CVE-2024-10553 CRITICAL POC
9.8 Mar 20

A vulnerability in the h2oai/h2o-3 REST API versions 3.46.0.4 allows unauthenticated remote attackers to execute arbitra

CVE-2019-9193 HIGH POC
7.2 Apr 01

In PostgreSQL 9.3 through 11.2, the "COPY TO/FROM PROGRAM" function allows superusers and users in the 'pg_execute_serve

CVE-2026-40887 CRITICAL POC
9.1 Apr 14

Unauthenticated SQL injection in Vendure Shop API allows remote attackers to execute arbitrary SQL commands against the

CVE-2022-24760 CRITICAL POC
10.0 Mar 12

Parse Server is an open source http web server backend. Rated critical severity (CVSS 10.0), this vulnerability is remot

CVE-2025-56157 CRITICAL POC
9.8 Dec 18

Hard-coded default PostgreSQL credentials shipped in the docker-compose.yaml of langgenius Dify through version 1.5.1 al

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy