CVE-2026-25130: cai-framework Command Injection Vulnerability in find_file Function

cai-framework Updated 30 Jan 2026

Summary

30/01/2026
No i
Critical
9.6

CVE-2026-25130: CAI find_file Agent Tool has Command Injection Vulnerability Through Argument Injection. Affects cai-framework versions < 0.5.10. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

The cai-framework is a cybersecurity AI framework designed to assist in various reconnaissance tasks, including file system searches. It provides tools that allow users to execute commands for locating files and analyzing system behavior. However, the framework has a critical vulnerability in its find_file function, which can be exploited to execute arbitrary commands on the host system due to improper handling of user input.

Vulnerability Detail

The vulnerability arises from the find_file function in the cai-framework, where user-controlled input is directly passed to shell commands using subprocess.Popen() with shell=True. This lack of input sanitization allows attackers to inject malicious arguments, leading to command injection. The attacker can exploit this by hosting a webpage with malicious instructions, tricking the victim's CAI agent into executing arbitrary commands, thereby achieving Remote Code Execution (RCE). The vulnerability is classified under CWE-78, indicating a command injection flaw.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a temporary workaround, avoid using the find_file function with untrusted input. Instead, consider using alternative methods for file searching that do not involve executing shell commands directly.

Conclusion

The cai-framework has a critical command injection vulnerability in its find_file function, which can lead to Remote Code Execution. It is essential to update the package to the latest version to mitigate this risk. Users should also be cautious about using untrusted input with this function.

See every vulnerability recorded for cai-framework →

Share this vulnerability

FAQ

CVE-2026-25130 is a critical command injection vulnerability found in the find_file function of the cai-framework, allowing attackers to execute arbitrary commands.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

The CVSS score for this vulnerability is 9.6, indicating a critical level of severity.

If you cannot update the package, avoid using the find_file function with untrusted input as a temporary workaround.

More information about the cai-framework can be found on its GitHub repository and documentation pages.

Related vulnerabilities

Recent vulnerabilities recorded for cai-framework.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback