Skip to main content
COSMICBYTEZLABS
NewsSecurityHOWTOsToolsTraining
StudyProjectsNewsletterHire MeAbout
Subscribe

Press Enter to search or Esc to close

News
Security
HOWTOs
Tools
Training
Study
Projects
Newsletter
Hire Me
About
RSS Feed
Reading List
Subscribe

Stay in the Loop

Get the latest security alerts, tutorials, and tech insights delivered to your inbox.

Subscribe NowFree forever. No spam.
COSMICBYTEZLABS

Your trusted source for IT intelligence, cybersecurity insights, and hands-on technical guides.

2626+ Articles
162+ Guides

CONTENT

  • Latest News
  • Security Alerts
  • HOWTOs
  • Checklists
  • Projects
  • Exam Prep

RESOURCES

  • Search
  • Browse Tags
  • Newsletter Archive
  • Reading List
  • RSS Feed

COMPANY

  • About Us
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CosmicBytez Labs. All rights reserved.

System Status: Operational
  1. Home
  2. News
  3. Critical Langflow Flaw Exploited to Steal OpenAI and AWS Keys
Critical Langflow Flaw Exploited to Steal OpenAI and AWS Keys
NEWS

Critical Langflow Flaw Exploited to Steal OpenAI and AWS Keys

Attackers are exploiting unauthenticated RCE in Langflow (CVE-2026-0768) to harvest OpenAI and AWS credentials from exposed AI-agent servers.

Dylan H.

News Desk

September 1, 2026
4 min read

What Happened

Threat actors are actively exploiting a critical, unauthenticated remote code execution vulnerability in Langflow, the open-source platform for visually building AI agent workflows, to harvest cloud and AI-provider credentials from exposed servers. The flaw, tracked as CVE-2026-0768 (CVSS 9.8), was disclosed in January and affects Langflow versions 1.4.2 and earlier.

The bug lives in Langflow's custom component editor: a user-supplied string reaches Python's code-execution path without proper validation, letting an unauthenticated attacker run arbitrary code as root on the server.


Attackers Are Hunting for Credentials, Not Deploying Ransomware

Threat intelligence firm VulnCheck detected the activity on its honeypots in the United Kingdom, logging at least 50 exploitation attempts over a single weekend, with traffic concentrated from Russia. By the time VulnCheck published its findings, the observed attack volume had climbed to 360 attempts.

Rather than dropping ransomware or destructive payloads, the malicious requests are focused and targeted, querying for:

  • Environment variables including LANGFLOW_SUPERUSER, OPENAI_API*, AWS_ACCESS*, and AWS_SECRET*
  • The contents of /root/.cache/langflow/secret_key
  • .ssh access and .bash_history size, likely to gauge further lateral-movement potential

VulnCheck lead security researcher Caitlin Condon noted the activity reflects reconnaissance and credential harvesting rather than immediate destructive intent — attackers appear to be building an inventory of valuable access before deciding how to monetize it. Notably, there is no known public proof-of-concept for CVE-2026-0768, meaning the attackers exploiting it are working from non-public knowledge of the flaw.


Part of a Wider AI-Tooling Exploitation Wave

The Langflow campaign is running alongside exploitation of CVE-2026-66066 ("KindaRails2Shell", CVSS 9.5), a Ruby on Rails vulnerability that abuses a discrepancy between Active Storage and libvips to read arbitrary files and leak secrets such as secret_key_base, database passwords, and cloud storage credentials via a crafted image upload.

Langflow specifically has become an increasingly popular target in 2026. VulnCheck notes that prior to this year, only a single exploited Langflow vulnerability had been observed in the wild — but 11 new vulnerabilities are now being actively targeted, with more than 15,000 successful exploitation attempts recorded against flaws including CVE-2026-0769, CVE-2025-3248, and CVE-2026-5027. As many as 12 distinct Langflow vulnerabilities have been exploited since 2025.

A structural factor compounds the risk: Langflow is designed to be publicly accessible by default, meaning many production deployments are internet-facing without administrators necessarily realizing the exposure.


Recommendations

  • Identify all internet-exposed Langflow instances immediately — exposure is common given the platform's default configuration.
  • Upgrade to Langflow 1.11.6, which addresses CVE-2026-0768 alongside several other recently disclosed and exploited flaws.
  • Rotate any OpenAI and AWS credentials that were accessible to a vulnerable Langflow instance, treating exposure as compromise until proven otherwise.
  • Review environment variables and local secret files — including /root/.cache/langflow/secret_key — for signs of unauthorized access.
  • Restrict network access to Langflow management interfaces to trusted networks rather than relying on default deployment settings.

Why This Matters

Langflow sits at the center of a growing wave of AI-agent-building platforms being rushed into production without the network-exposure discipline applied to traditional infrastructure. A pre-auth RCE that hands attackers root access — combined with a platform that's internet-facing by default — is a near-ideal setup for silent, large-scale credential harvesting. Because the current campaign is reconnaissance-focused rather than destructive, many affected organizations may not realize their OpenAI and AWS keys have already been read until those credentials show up being abused elsewhere.


Sources

  • BleepingComputer — Critical Langflow flaw exploited to steal OpenAI and AWS keys
  • The Hacker News — Attackers Exploit Critical Langflow and Rails Flaws in Credential-Probing and C2 Activity
  • SecurityWeek — Hackers Start Exploiting Critical Langflow Vulnerability
#Langflow#CVE-2026-0768#AI Security#Credential Theft#AWS#OpenAI

Related Articles

Path Traversal Flaw in AI Dev Platform Langflow Exploited in Attacks

Attackers are actively exploiting CVE-2026-5027, a high-severity path traversal vulnerability in Langflow, to write arbitrary files on exposed servers....

6 min read

Unpatched Langflow Flaw CVE-2026-5027 Exploited for Unauthenticated RCE

A high-severity path traversal flaw (CVE-2026-5027, CVSS 8.8) in the AI application builder Langflow is being actively exploited with no patch available....

5 min read

CISA: New Langflow Flaw Actively Exploited to Hijack AI

CISA has added CVE-2026-33017, a critical unauthenticated remote code execution vulnerability in the Langflow AI framework, to its Known Exploited...

5 min read
Back to all News