CVE-2026-51918 Details
Description
FinRobot 1.0.0 contains code injection in CodingUtils.create_file_with_code ().
A code injection vulnerability has been identified in FinRobot version 1.0.0, specifically within the 'CodingUtils.create_file_with_code' method. This vulnerability arises because the method accepts file paths from large language model (LLM) tool invocations without proper validation. When FinRobot's autogen session is accessible via HTTP or an interactive interface, an attacker can exploit prompt injection to manipulate the LLM into calling 'create_file_with_code' with paths that bypass the intended workspace restrictions. This oversight enables arbitrary file creation, potentially leading to the deployment of backdoors, web shells, or malicious scripts in system directories.
A path canonicalization and allowlist check should be implemented in the 'create_file_with_code' method before the file is opened. This fix should ensure that file paths are validated against a sandboxed working directory, rejecting any paths that attempt to escape the designated workspace.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Oct 2, 2026CISA-ADP
Assessed Oct 5, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/AI4Finance-Foundation/FinRobot/issues/102 | CISA-ADP | ExploitIssue TrackingTechnical DescriptionVendor |
| https://gist.github.com/Ro1ME/8180c78c3852f747638e9cf04b51dda1 | [email protected] | Broken LinkExploit |
| https://github.com/AI4Finance-Foundation/FinRobot/issues/102 | [email protected] | ExploitIssue TrackingTechnical DescriptionVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-94 | Improper Control of Generation of Code ('Code Injection') | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| AI4Finance-Foundation FinRobot | 1.0.0 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 5, 2026 | CVE Modified | CISA-ADP |
| Oct 2, 2026 | New CVE Received | [email protected] |
Volerion