Skip to main content

Chat2DB CVE-2026-63307

| EUVDEUVD-2026-45212 HIGH
Authorization Bypass Through User-Controlled Key (CWE-639)
2026-07-17 VulnCheck GHSA-6h56-q7r6-j7xg
7.1
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Authenticate with low-privilege Chat2DB account
  2. Delivery
    Enumerate datasource IDs via API
  3. Exploit
    Request GET /api/connection/datasource/{id}
  4. Execution
    Read decrypted plaintext credentials
  5. Persist
    Connect to victim backend database
  6. Impact
    Exfiltrate data

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Object-level authorization, IDOR prevention
Exploitation Conditions

Requires a valid authenticated Chat2DB account (PR:L) reachable over the network to the REST API - no admin role, no user interaction, and no non-default feature toggle is needed, since the vulnerable code path is the standard GET /api/connection/datasource/{id} handler. Exploitation is limited to deployments where more than one user shares an instance and where victim datasources store credentials, because the leak only exposes OTHER users' records; a single-user local-first install (the documented default) has nothing for an attacker to enumerate. Practical exploitation also depends on datasource IDs being enumerable/guessable, which the description confirms ('enumerate datasource IDs').

Impact

The supplied CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N, base 7.1) is internally consistent with the description: network-reachable API, low complexity, one low-privilege authenticated account, high confidentiality impact and no integrity or availability impact. EPSS and KEV status were not provided in the input, so real-world exploitation frequency is unknown - do NOT assume active exploitation. There is no public exploit identified at time of analysis. Real-world priority is elevated by the nature of the leaked asset: plaintext database credentials enable lateral movement into the backend databases themselves, so a confidentiality-only CVSS understates downstream impact. The main limiting factor is that an attacker must already hold a valid (even unprivileged) Chat2DB account, making this most acute in shared/multi-user or hosted deployments rather than the documented single-user local-first install.

Exploit ScenarioDerived

A low-privileged user with a valid Chat2DB account scripts sequential requests to GET /api/connection/datasource/1, /2, /3 … and reads the decrypted password field returned for each datasource owned by other users. Using the harvested plaintext credentials, the attacker connects directly to those backend databases and exfiltrates data. No exploit code is publicly identified, but the attack requires only a standard authenticated session and a loop over integer IDs.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.2% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Jul 17, 2026

Insecure direct object reference in Chat2DB before 5.3.0 lets any authenticated non-admin user read the decrypted database credentials of datasources belonging to other users by enumerating IDs against GET /api/connection/datasource/{id}. Because the handler returns the plaintext password field and omits an ownership check, a single low-privileged account can harvest every other tenant's stored connection secrets. No public exploit has been identified at time of analysis, but exploitation is trivial and the EPSS/KEV signals were not supplied in the input.

RemediationAI

Vendor-released patch: upgrade to Chat2DB 5.3.0 or later (release https://github.com/OtterMind/Chat2DB/releases/tag/v5.3.0, or Docker image chat2db/chat2db:5.3.0); note that 5.3.0 is not an in-place upgrade from 0.3.x, so back up and migrate data before installing. If immediate patching is not possible in a multi-user deployment, restrict network access to the /api/connection/datasource/ endpoints to trusted administrators (for example via a reverse-proxy allow-list), limit accounts to a single trusted user since the local-first design assumes no multi-tenancy, and rotate any database credentials that were stored in shared instances because they may already have been readable by other users - the trade-off of the proxy restriction is that legitimate low-privilege users lose datasource read access via the API until the upgrade is applied.

Affected VersionsENISA

Chat2DB 0 <5.3.0

Affected Packages

euvd chat2db fix: 5.3.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Chat2DB is an AI-assisted database client and management tool (vendor 'ottermind', CPE cpe:2.3:a:ottermind:chat2db) that stores connection profiles ('datasources') including encrypted credentials for backend databases. The flaw is CWE-639 (Authorization Bypass Through User-Controlled Key): the REST endpoint GET /api/connection/datasource/{id} passes the caller-supplied {id} straight into dataSourceService.queryExistent(id, ...) with no check that the requesting user owns the record, and the response serializes the decrypted password field. Because datasource IDs are enumerable and the server itself decrypts the secret before returning it, at-rest encryption provides no protection against an authenticated API caller.

Know when Chat2db 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 (VulnCheck) PRIMARY 7.1 HIGH
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
vuln.today AI 6.5 MEDIUM

Network API reachable by any authenticated low-privilege user (PR:L, AV:N, AC:L, UI:N) with high confidentiality impact from leaked credentials and no integrity or availability impact.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

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

Lifecycle Timeline

2
Patch available
Jul 17, 2026 - 18:33 EUVD
CVE Published
Jul 17, 2026 - 16:13 cve.org
HIGH 7.1

DescriptionCVE.org

Chat2DB before 5.3.0 contains an insecure direct object reference vulnerability in the GET /api/connection/datasource/{id} endpoint. The handler calls dataSourceService.queryExistent(id, ...) without an ownership check and returns the decrypted password field, allowing any authenticated non-admin user to enumerate datasource IDs and read the plaintext database credentials of datasources owned by other users.

Executive ViewAI

Why It Matters

Chat2DB versions before 5.3.0 contain an insecure direct object reference vulnerability that allows users to retrieve plaintext database credentials belonging to other users' datasources. No public exploit identified at time of analysis. This directly compromises the security of all connected databases and enables unauthorized access. Organizations using Chat2DB face immediate risk of credential theft and potential breach of sensitive data.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) immediately restrict Chat2DB network access to authorized administrative personnel only; (2) monitor all database access logs for unauthorized connection attempts; (3) rotate all database credentials stored in Chat2DB immediately; (4) disable Chat2DB datasource features until vendor patch becomes available; (5) implement network segmentation to isolate Chat2DB from production database systems.

Threat Intelligence Overview

EPSS Score
0.2%
Top 86% exploitable
Prevalence
Medium
popular open-source AI database client, but multi-user exposure is not default
Data Quality
5 sources
Confidence: Medium

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 HIGH
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.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
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

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

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

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