Remote File Inclusion Vulnerability in TinyAGI
TinyAGI version 0.0.20 contains a remote file inclusion vulnerability in the Message API Endpoint, which allows unauthenticated attackers to access arbitrary files on the system.
What's new
- 1. added coverage for TinyAGI (0.0.20) Aug 6, 09:22 via nvd
A remote file inclusion vulnerability has been identified in TinyAGI version 0.0.20, specifically within the collectFiles function of the packages/core/src/response.ts file. This component is part of the Message API Endpoint. The flaw, tracked as CVE-2026-19009, stems from improper validation of external inputs, which allows a remote, unauthenticated attacker to manipulate file paths and trigger file inclusion. This vulnerability is classified as CWE-73: External Control of File Name or Path. Publicly available exploit code exists, and the project maintainers have not yet provided a response or a patch as of the initial disclosure. Defenders should prioritize identifying instances of TinyAGI 0.0.20 in their environments and restrict network access to the affected Message API endpoint.
Attack Chain
- Attacker performs reconnaissance to identify public-facing instances of the TinyAGI Message API endpoint.
- Attacker interacts with the vulnerable
collectFilesfunction via HTTP requests directed at the Message API endpoint. - Attacker crafts a malicious request containing a manipulated file path or URI parameter that bypasses intended path validation.
- The
collectFilesfunction processes the malicious input and improperly resolves the path, leading to file inclusion. - The application reads or includes the content of a sensitive file from the host filesystem based on the attacker's input.
- The application returns the contents of the targeted file within the HTTP response, resulting in unauthorized information disclosure.
- Attacker potentially uses the recovered information (e.g., credentials or configuration files) to escalate access or conduct further exploitation.
Impact
Successful exploitation of CVE-2026-19009 allows an unauthenticated remote attacker to read arbitrary files from the filesystem of the server hosting TinyAGI. This can lead to the exposure of sensitive configuration data, environment variables, source code, or internal credentials, significantly compromising the confidentiality of the affected system. The existence of public exploit code increases the likelihood of opportunistic attacks targeting this vulnerability.
Recommendation
- Identify and inventory all instances of TinyAGI version 0.0.20 within the corporate environment.
- Restrict external access to the TinyAGI Message API endpoint using a Web Application Firewall (WAF) or network access control list (ACL) until a security patch is developed.
- Implement rigorous input validation on all API endpoints that accept file paths or URI parameters.
- Monitor web server logs for suspicious HTTP requests targeting the Message API endpoint containing path traversal sequences like '../' or attempts to access common system configuration files.
Immediate actions
Inventory instances of TinyAGI 0.0.20 and restrict access to the Message API endpoint via WAF.
Threat Hunt
Search logs for HTTP requests to /Message/ endpoints containing path traversal characters.
Data: webserver_logs
Detection coverage 1
Detect CVE-2026-19009 Exploitation - Path Traversal in Message API
highDetects potential attempts to exploit CVE-2026-19009 by monitoring for path traversal patterns in requests to the TinyAGI Message API.
Detection queries are available on the platform. Get full rules →