PraisonAI versions prior to 4.5.90 contain a second-order SQL injection vulnerability in the get_all_user_threads function. The vulnerability arises because thread IDs retrieved from the database are used unescaped in raw SQL queries constructed with f-strings. An attacker can inject malicious thread IDs via the update_thread function, which are later executed when loading the thread list, leading to full database compromise including data exfiltration and modification.