CVE-2026-63307

Chat2DB < 5.3.0 Insecure Direct Object Reference via GET /api/connection/datasource

Published Jul 17, 2026 CVSS 4.0 · 7.1 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

Remediation

No solution or workaround provided in the CVE record.

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 available
History
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'}

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'}

Weaknesses
  • CWE-639

    Authorization Bypass Through User-Controlled Key

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 8, 2026, 2:07 PM
Reserved
Jul 16, 2026, 12:13 PM
Status
Deferred
Published
Jul 17, 2026, 5:17 PM
Modified
Oct 24, 2026, 8:10 PM