CVE-2026–23842 — My First CVE: Exploiting Connection Pool Ex
ChatterBot's SQLAlchemy connection pool can be exhausted by concurrent calls to get_response, causing a TimeoutError and making the chatbot unresponsive. An attacker could trigger this remotely without authentication, causing a denial of service.
Published on systemweakness.com
Mine came from analyzing the concurrency behavior of a widely used Python chatbot framework: ChatterBot.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the framework does not limit concurrent calls or properly release database sessions, so the connection pool is exhausted under load.
Impact
The chatbot becomes unresponsive and requires a manual restart, causing a denial of service.
What the attacker needed
Network access to the chatbot; no authentication required
The fix
The maintainer released a fix in version 1.2.11.
How it was found
- Create a ChatBot instance.
- Define a function that calls get_response.
- Start 30 threads running that function.
- Wait for all threads to finish.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
A chatbot library uses a limited pool of database connections. When many requests arrive at once, the pool runs out and the app stops responding until restarted. An attacker can send many simultaneous requests to take the service down.
What is DoS?
A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.