CVE-2026-138393

SciSharp BotSharp SqlDriverController.cs ExecuteSqlQuery authorization

Published Nov 30, 2026 CVSS 4.0 · 5.3 Medium EPSS < 1% KEV · Not listed
Description
A vulnerability was determined in SciSharp BotSharp. This vulnerability affects the function ExecuteSqlQuery of the file src/Plugins/BotSharp.Plugin.SqlDriver/Controllers/SqlDriverController.cs. This manipulation of the argument conversationId causes missing authorization. Remote exploitation of the attack is possible. Patch name: 576df239d810553b1b4f79eb470e4d6e694cc76d. To fix this issue, it is recommended to deploy a patch.

Analysis

AI-generated

Technical impact

The ExecuteSqlQuery method in SqlDriverController.cs accepts a conversationId parameter that is used to identify a conversation context. An attacker can supply a crafted conversationId value to bypass the existing authorization logic, enabling the execution of arbitrary SQL queries against the BotSharp database. This allows the retrieval, modification, or deletion of stored data, potentially leading to data loss, confidentiality violations, or further compromise of the underlying system.

Affected Systems

All SciSharp BotSharp installations that have not incorporated the patch associated with commit 576df239d810553b1b4f79eb470e4d6e694cc76d are affected. The vulnerability exists in the BotSharp.Plugin.SqlDriver component and applies to any version running the unpatched source code.

Risk and Exploitability

The CVSS score of 5.3 indicates a moderate severity. EPSS data is not available, and the vulnerability is not listed in the CISA KEV catalog, suggesting no currently reported public exploitation. However, because the flaw allows unauthorized remote access via the public API endpoint used to invoke ExecuteSqlQuery, an attacker can remotely submit a forged conversationId and gain unauthorized database access. The likely attack vector is an unauthenticated API call to the SqlDriver endpoint, inferred from the description of missing authorization checks.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the patch from commit 576df239d810553b1b4f79eb470e4d6e694cc76d or upgrade to a BotSharp release that includes this fix.
  • Restart the BotSharp service to load the updated controller code and ensure that the new authorization checks are active.
  • If patch deployment is delayed, restrict the /SqlDriver endpoint to trusted networks or enforce API gateway authentication to prevent unauthenticated access.

Generated by OpenCVE AI on November 30, 2026 at 13:20 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
Description A vulnerability was determined in SciSharp BotSharp. This vulnerability affects the function ExecuteSqlQuery of the file src/Plugins/BotSharp.Plugin.SqlDriver/Controllers/SqlDriverController.cs. This manipulation of the argument conversationId causes missing authorization. Remote exploitation of the attack is possible. Patch name: 576df239d810553b1b4f79eb470e4d6e694cc76d. To fix this issue, it is recommended to deploy a patch.
Title SciSharp BotSharp SqlDriverController.cs ExecuteSqlQuery authorization
First Time appeared Scisharp
Scisharp botsharp
Weaknesses CWE-862
CWE-863
CPEs cpe:2.3:a:scisharp:botsharp:*:*:*:*:*:*:*:*
Vendors & Products Scisharp
Scisharp botsharp
References
Metrics cvssV2_0

{'score': 6.5, 'vector': 'AV:N/AC:L/Au:S/C:P/I:P/A:P/E:POC/RL:OF/RC:C'}

cvssV3_0

{'score': 6.3, 'vector': 'CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L/E:P/RL:O/RC:C'}

cvssV3_1

{'score': 6.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L/E:P/RL:O/RC:C'}

cvssV4_0

{'score': 5.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
VulDB
Published
Updated
Nov 30, 2026, 5:22 PM
Reserved
Nov 29, 2026, 3:02 PM
Status
Deferred
Published
Nov 30, 2026, 7:16 AM
Modified
Nov 30, 2026, 6:18 PM