Skip to content
Tech News
← Back to articles

Critical Langflow flaw exploited to steal OpenAI and AWS keys

read original more articles
Why This Matters

The exploitation of a critical vulnerability in Langflow highlights significant security risks in open-source AI development tools, potentially compromising sensitive credentials and cloud infrastructure for organizations and consumers. This incident underscores the importance of robust security measures and timely patching in AI frameworks to prevent malicious attacks. As AI adoption accelerates, ensuring the security of these platforms is vital to protect data integrity and privacy.

Key Takeaways

Threat actors are exploiting an unauthenticated remote code execution vulnerability (CVE-2026-0768) in Langflow, an open-source framework for building AI applications, to steal credentials, tokens, and keys.

The security issue received a critical severity rating and resides in the code validator of Langflow’s custom component editor.

Threat intelligence company VulnCheck detected the activity on its honeypots in the U.K. that were targeted in at least 50 exploitation attempts over the weekend, with attack traffic originating primarily from Russia.

VulnCheck lead security researcher Caitlin Condon said that the activity intensified and the total number of observed attacks increased to 360 as of today.

According to Condon, the attacker conducts reconnaissance and queries environment variables to harvest administrative credentials or superuser authentication keys for Langflow instances, AWS secrets, and OpenAI API keys.

“Among other things, attacker requests are querying environment variables (LANGFLOW_SUPERUSER, OPENAI_API*, AWS_ACCESS*, AWS_SECRET*), reading /root/.cache/langflow/secret_key, and checking .ssh access and .bash_history size,” Condon explained.

Langflow is an open-source, Python-based low-code platform for building AI applications, agents, chatbots, and retrieval-augmented generation (RAG) systems.

It lets users create workflows in a graphical interface by connecting components for language models, prompts, databases, APIs, and other tools.

The CVE-2026-0768 vulnerability was disclosed in January and affects Langflow versions 1.4.2 and earlier. It allows executing arbitrary code without authentication with root privileges.

"The specific flaw exists within the handling of the code parameter provided to the validate endpoint. The issue results from the lack of proper validation of a user-supplied string before using it to execute Python code," reads the vulnerability's description.

... continue reading