CVE-2026-138393

BotSharp SQL endpoints omit conversation ownership checks

SciSharp · BotSharp

First documented disclosure · Review checkpoint

Summary

A logged-in user can invoke SQL-driver operations without establishing ownership of the supplied conversation.

Severity and exploitation evidence

Medium · 5.3/10 · CVSS 4.0. Severity source.

Exploitation not established: The reviewed public report and any maintainer confirmation describe research or a correction, not malicious exploitation or identified victims. No payload, model, package or proof of concept was executed in this review.

Exploitation evidence source

Technical severity is not a measure of observed attacks or of risk to your deployment. Attempts, demonstrations, and successful compromise retain the qualifications in the source.

How the weakness works

The execute and result routes require authentication but omit the admin-or-owner filter. Selecting an unknown conversation can create it, so a leaked valid conversation ID is not required for the reported route.

Conditions required

The SQL-driver plugin is enabled with a configured data source and the attacker has any authenticated application account.

Potential impact

Unauthorized SQL operations with the configured database connection’s permissions. The database account’s privileges bound the result.

Affected versions and configurations

CNA supplies no numeric affected version. The original report identifies the default branch as reviewed September 16.

Fix and mitigation status

PR1442 merged October 19 and includes source patch 576df239d810553b1b4f79eb470e4d6e694cc76d and adds the admin-or-owner check to both endpoints. No corrected packaged version was verified.

Practical next steps

Apply the source correction or a verified containing release, restrict the SQL plugin to intended users and use narrowly privileged database credentials.

Operating lesson

An AI application’s prompt instructions cannot replace endpoint-level authorization for a database tool.

Evidence and limits

The upstream patch report records a successful plugin build but no complete running-server end-to-end test. It does not prove malicious database access occurred. Issuing CNA publication was 2026-11-30, separate from the original public disclosure. Severity is VulDB CNA CVSS 4.0 Medium 5.3. CNA also supplies CVSS 3.1 Medium 6.3. Static review only; upstream tests were not repeated.

Sources