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
Share

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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
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
Privileges Required
Low
User Interaction
None
Scope
X

Lifecycle Timeline

4
Patch available
Jul 17, 2026 - 18:33 EUVD
Source Code Evidence Fetched
Jul 17, 2026 - 16:48 vuln.today
Analysis Generated
Jul 17, 2026 - 16:48 vuln.today
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.

AnalysisAI

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.

Technical ContextAI

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.

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.

Share

CVE-2026-63307 vulnerability details – vuln.today

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