Description
In invoke-ai/invokeai version v5.0.2, the web API `POST /api/v1/images/delete` is vulnerable to Arbitrary File Deletion. This vulnerability allows unauthorized attackers to delete arbitrary files on the server, potentially including critical or sensitive system files such as SSH keys, SQLite databases, and configuration files. This can impact the integrity and availability of applications relying on these files.
EPSS Score:
0%
Comprehensive Technical Analysis of EUVD-2025-7073
1. Vulnerability Assessment and Severity Evaluation
The vulnerability EUVD-2025-7073 in invoke-ai/invokeai version v5.0.2 involves an Arbitrary File Deletion flaw in the web API endpoint POST /api/v1/images/delete. This vulnerability allows unauthorized attackers to delete arbitrary files on the server, which can have severe implications for system integrity and availability.
Severity Evaluation:
- Base Score: 9.1 (CVSS 3.0)
- Vector String: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
The high base score indicates a critical vulnerability due to the following factors:
- Attack Vector (AV:N): Network-based attack, meaning it can be exploited remotely.
- Attack Complexity (AC:L): Low complexity, suggesting that the attack does not require specialized conditions.
- Privileges Required (PR:N): No privileges are required, making it accessible to any attacker.
- User Interaction (UI:N): No user interaction is needed, allowing for automated exploitation.
- Scope (S:U): Unchanged, meaning the vulnerability does not affect other systems beyond the compromised one.
- Confidentiality (C:N): No direct impact on confidentiality.
- Integrity (I:H): High impact on integrity, as critical files can be deleted.
- Availability (A:H): High impact on availability, potentially leading to system downtime.
2. Potential Attack Vectors and Exploitation Methods
Attack Vectors:
- Remote Exploitation: An attacker can send a specially crafted HTTP POST request to the
/api/v1/images/deleteendpoint to delete arbitrary files on the server. - Automated Scripts: Attackers can use automated scripts to scan for vulnerable endpoints and exploit them en masse.
Exploitation Methods:
- Direct Deletion: By manipulating the file path in the POST request, an attacker can target specific files such as SSH keys, SQLite databases, and configuration files.
- Chained Attacks: Deleting critical files can be a precursor to more sophisticated attacks, such as gaining unauthorized access or disrupting services.
3. Affected Systems and Software Versions
Affected Software:
- invoke-ai/invokeai version v5.0.2
Affected Systems:
- Any server running the vulnerable version of invoke-ai/invokeai.
- Systems relying on the integrity and availability of files that can be deleted through this vulnerability.
4. Recommended Mitigation Strategies
Immediate Actions:
- Upgrade: Upgrade to a patched version of invoke-ai/invokeai (version 5.3.0 or later).
- Disable Endpoint: Temporarily disable the
/api/v1/images/deleteendpoint until a patch is applied. - Access Control: Implement strict access controls and authentication mechanisms for the API.
Long-Term Mitigations:
- Regular Audits: Conduct regular security audits and vulnerability assessments.
- Monitoring: Implement monitoring and logging to detect and respond to suspicious activities.
- Backup: Ensure regular backups of critical files and databases to mitigate the impact of file deletion.
5. Impact on European Cybersecurity Landscape
The vulnerability poses a significant risk to organizations within the European Union, particularly those relying on invoke-ai/invokeai for critical operations. The potential for unauthorized file deletion can lead to data loss, service disruptions, and compromised system integrity. This underscores the need for robust cybersecurity measures and compliance with regulations such as GDPR and NIS Directive.
6. Technical Details for Security Professionals
Vulnerability Details:
- Endpoint:
POST /api/v1/images/delete - Vulnerable Parameter: The file path parameter in the POST request.
- Exploit: An attacker can manipulate the file path to target any file on the server.
Detection and Response:
- Log Analysis: Monitor API logs for unusual POST requests to the
/api/v1/images/deleteendpoint. - Intrusion Detection: Implement intrusion detection systems (IDS) to detect and alert on suspicious activities.
- Incident Response: Develop an incident response plan to quickly address and mitigate any detected exploitation attempts.
References:
- NVD: CVE-2024-11042
- GitHub Commit: 5440c037674882b2ab7acd59087e9bb04b49657a
- Huntr Bounty: 635535a7-c804-4789-ac3a-48d951263987
- GitHub Repository: invoke-ai/InvokeAI
By addressing this vulnerability promptly and implementing robust security measures, organizations can significantly reduce the risk of exploitation and ensure the integrity and availability of their systems.