CVE-2026-7466: CWE-94: Improper Control of Generation of Code ('Code Injection') in berabuddies AgentFlow
AgentFlow contains an arbitrary code execution vulnerability that allows attackers to execute local Python pipeline files by supplying a user-controlled pipeline_path parameter to the POST /api/runs and POST /api/runs/validate endpoints. Attackers can induce requests to the local AgentFlow API to load and execute existing Python pipeline files on disk, resulting in code execution in the context of the user running AgentFlow.
AI Analysis
Technical Summary
CVE-2026-7466 is an arbitrary code execution vulnerability in berabuddies AgentFlow. The flaw arises from improper control over the generation of code, specifically allowing attackers to supply a pipeline_path parameter to the POST /api/runs and POST /api/runs/validate endpoints. This parameter is used to load and execute local Python pipeline files, enabling attackers to run arbitrary code in the context of the AgentFlow user. The vulnerability is classified under CWE-94 (Improper Control of Generation of Code). The CVSS 4.0 base score is 7.7, indicating a high severity with network attack vector, low attack complexity, and partial user interaction required.
Potential Impact
Successful exploitation allows an unauthenticated attacker to execute arbitrary Python code locally on the system running AgentFlow by invoking API endpoints with a crafted pipeline_path. This can lead to full compromise of the AgentFlow process privileges and potentially the underlying system depending on those privileges.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. No official fix or workaround is currently documented. Until a patch is available, restrict access to the affected API endpoints and limit exposure of the AgentFlow service to trusted users only.
CVE-2026-7466: CWE-94: Improper Control of Generation of Code ('Code Injection') in berabuddies AgentFlow
Description
AgentFlow contains an arbitrary code execution vulnerability that allows attackers to execute local Python pipeline files by supplying a user-controlled pipeline_path parameter to the POST /api/runs and POST /api/runs/validate endpoints. Attackers can induce requests to the local AgentFlow API to load and execute existing Python pipeline files on disk, resulting in code execution in the context of the user running AgentFlow.
CVSS v4.0
Score 7.7high
Affected software
pkg:github/berabuddies/agentflowRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-7466 is an arbitrary code execution vulnerability in berabuddies AgentFlow. The flaw arises from improper control over the generation of code, specifically allowing attackers to supply a pipeline_path parameter to the POST /api/runs and POST /api/runs/validate endpoints. This parameter is used to load and execute local Python pipeline files, enabling attackers to run arbitrary code in the context of the AgentFlow user. The vulnerability is classified under CWE-94 (Improper Control of Generation of Code). The CVSS 4.0 base score is 7.7, indicating a high severity with network attack vector, low attack complexity, and partial user interaction required.
Potential Impact
Successful exploitation allows an unauthenticated attacker to execute arbitrary Python code locally on the system running AgentFlow by invoking API endpoints with a crafted pipeline_path. This can lead to full compromise of the AgentFlow process privileges and potentially the underlying system depending on those privileges.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. No official fix or workaround is currently documented. Until a patch is available, restrict access to the affected API endpoints and limit exposure of the AgentFlow service to trusted users only.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-04-29T18:30:53.906Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69f256b0cbff5d86103eb496
Added to database: 04/29/2026, 19:06:24 UTC
Last enriched: 06/24/2026, 15:15:34 UTC
Last updated: 07/31/2026, 19:23:00 UTC
Views: 136
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.