Description
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.
Published: 2026-07-17
Score: 7.1 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability is an insecure direct object reference in the GET /api/connection/datasource/{id} endpoint of Chat2DB. The handler calls dataSourceService.queryExistent(id, …) without performing an ownership check and returns a decrypted password field. Consequently, any authenticated user who is not an administrator can enumerate datasource IDs and read the plaintext credentials of datasource records owned by other users. The weakness is identified as CWE-639, a type of unauthorized disclosure caused by insufficient access control over direct resource references.

Affected Systems

All versions of OtterMind Chat2DB earlier than 5.3.0 are affected. The flaw applies to deployments where users have authenticated accounts that do not hold administrative privileges. The issue resides solely within the application layer and does not depend on the underlying database or infrastructure.

Risk and Exploitability

The CVSS score of 7.1 signals a medium‑to‑high risk. The EPSS score of less than 1% indicates that, as of now, exploitation is unlikely, and the vulnerability is not listed in the CISA KEV catalog. Nonetheless, because the attack requires only legitimate, authenticated use of a standard API endpoint, attackers can enumerate datasource identifiers and harvest sensitive credentials, potentially compromising downstream database systems and enabling further attacks in multi‑tenant or shared environments.

Generated by OpenCVE AI on July 31, 2026 at 00:07 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade to Chat2DB 5.3.0 or later to apply the vendor patch that adds ownership validation to data source queries.
  • Configure role‑based access control so that only the owner or administrators can retrieve a datasource’s details and ensure that the endpoint does not expose decrypted passwords to non‑admin users.
  • If an upgrade cannot be performed immediately, restrict non‑admin users from accessing the /api/connection/datasource endpoint, or disable that endpoint for their accounts, thereby preventing credential enumeration.

Generated by OpenCVE AI on July 31, 2026 at 00:07 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 23 Jul 2026 21:45:00 +0000

Type Values Removed Values Added
First Time appeared Ottermind
Ottermind chat2db
Vendors & Products Ottermind
Ottermind chat2db
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Fri, 17 Jul 2026 16:30:00 +0000

Type Values Removed Values Added
Description 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.
Title Chat2DB < 5.3.0 Insecure Direct Object Reference via GET /api/connection/datasource
Weaknesses CWE-639
References
Metrics cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N'}

cvssV4_0

{'score': 7.1, 'vector': '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'}


Subscriptions

Ottermind Chat2db
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-07-23T19:23:46.047Z

Reserved: 2026-07-16T12:13:18.733Z

Link: CVE-2026-63307

cve-icon Vulnrichment

Updated: 2026-07-23T19:23:40.272Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-31T00:15:05Z

Weaknesses
  • CWE-639

    Authorization Bypass Through User-Controlled Key