{"id":"CVE-2026-23842","aliases":["CVE-2026-23842","GHSA-v4w8-49pv-mf72","PYSEC-2026-1244"],"related":[],"kind":"vulnerability","state":"published","title":"ChatterBot has Denial of Service via Database Connection Pool Exhaustion","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Summary\nChatterBot 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.\n\n### Details\nChatterBot relies on SQLAlchemy for database access and uses a connection pool with default limits. The get_response() method does not enforce concurrency limits, rate limiting, or explicit session lifecycle controls.\n\nWhen multiple threads concurrently invoke get_response(), database connections are rapidly consumed and not released in a timely manner. This leads to exhaustion of the SQLAlchemy QueuePool, causing subsequent requests to block and eventually fail with a TimeoutError.\n\nThis issue can be triggered without authentication in deployments where ChatterBot is exposed as a chatbot service, making it exploitable by remote attackers to cause denial of service.\n\nPoC Video: \nhttps://github.com/user-attachments/assets/4ee845c4-b847-4854-84ec-4b2fb2f7090f\n\n### PoC\n1. Install ChatterBot version 1.2.10.\n2. Use the default database configuration (SQLite / SQLAlchemy).\n3. Run the following Python script to invoke concurrent requests:\n\nfrom chatterbot import ChatBot\nimport threading\n\nbot = ChatBot(\"dos-test\")\n\ndef attack():\n    bot.get_response(\"hello\")\n\nthreads = []\nfor _ in range(30):\n    t = threading.Thread(target=attack)\n    t.start()\n    threads.append(t)\n\nfor t in threads:\n    t.join()\n\n4. Observe that the application becomes unresponsive and raises SQLAlchemy TimeoutError exceptions indicating exhaustion of the connection pool.\n\n### Impact\nThis vulnerability allows an attacker to trigger a denial-of-service condition by exhausting the database connection pool. Once triggered, the chatbot becomes unresponsive to legitimate users and requires a manual restart to restore functionality.\n\nAll deployments of ChatterBot version 1.2.10 or earlier that allow concurrent access to the get_response() method are impacted.","format":"markdown","source":"ghsa"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2026-01-19T18:39:37.059Z","modified":"2026-07-07T17:56:29.902Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"}],"cwes":["CWE-400"],"affected":[{"ranges":[{"version":"< 1.2.11","status":"affected"}],"vendor":"gunthercox","product":"ChatterBot","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.2.11"}],"ecosystem":"PyPI","package":"chatterbot","purl":"pkg:pypi/chatterbot","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.2.11"}],"vendor":"chatterbot","product":"chatterbot","cpe":"cpe:2.3:a:chatterbot:chatterbot:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.2.11"}],"ecosystem":"PyPI","package":"chatterbot","purl":"pkg:pypi/chatterbot","source":"pysec"}],"references":[{"url":"https://github.com/gunthercox/ChatterBot/security/advisories/GHSA-v4w8-49pv-mf72","tags":["exploit","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/gunthercox/ChatterBot/pull/2432","tags":["issue-tracking","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/gunthercox/ChatterBot/commit/de89fe648139f8eeacc998ad4524fab291a378cf","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/gunthercox/ChatterBot/releases/tag/1.2.11","tags":["product","release-notes","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/user-attachments/assets/4ee845c4-b847-4854-84ec-4b2fb2f7090f","tags":["exploit","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-23842","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/gunthercox/ChatterBot","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/chatterbot","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-v4w8-49pv-mf72","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-01-20T20:04:06.342Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-23842","url":"https://www.cve.org/CVERecord?id=CVE-2026-23842","licence":"CVE Terms of Use","modified":"2026-01-20T20:05:48.462Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-v4w8-49pv-mf72","url":"https://github.com/advisories/GHSA-v4w8-49pv-mf72","licence":"CC-BY-4.0","modified":"2026-07-07T17:56:29.902Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-23842","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-23842","licence":"Public domain","modified":"2026-06-17T10:22:11.350Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-1244","url":"https://osv.dev/vulnerability/PYSEC-2026-1244","licence":"CC-BY-4.0","modified":"2026-07-07T17:47:27.106Z"}],"updatedAt":"2026-11-25T22:59:12.949Z","epss":{"score":0.00541,"percentile":0.46924,"date":"2026-12-01T12:00:22.000Z"}}