AnythingLLM Logo Endpoint Path Traversal File Read/Delete (CVE-2024-3025)
Detects CVE-2024-3025 (CWE-23, CVSS CRITICAL): mintplex-labs/anything-llm before 1.0.0 fails to validate the user-supplied logo filename on the /api/system/upload-logo and /api/system/logo endpoints.
path traversal · pattern · confidence: high
- Severity
- critical
- Lanes
- alert · huntmarks and reports a match
- Maturity
- testnot yet settled
- Scan target
- both
- Status
- experimental
Framework mappings
- OWASP Agentic Top 10
- ASI04:2026
- OWASP LLM Top 10
- LLM03:2025
ATR wrote these mappings. The framework owners have not reviewed or endorsed them.
Description
Detects CVE-2024-3025 (CWE-23, CVSS CRITICAL): mintplex-labs/anything-llm before 1.0.0 fails to validate the user-supplied logo filename on the /api/system/upload-logo and /api/system/logo endpoints. An authenticated attacker passes path-traversal sequences (../../../) in the logo filename to read or delete arbitrary files outside the assets directory, with the SQLite database storage/anythingllm.db as a high-value target. The fix added a normalizePath() guard. This rule keys on the specific logo endpoint paths combined with ../ traversal (raw or %2e%2e%2f-encoded) into storage/anythingllm.db.
Detection conditions
Combinator: any- 01AnythingLLM logo endpoint hit with multi-level ../ traversal (raw or URL-encoded) reaching storage/anythingllm.dbfield: contentop: regex
- 02Logo filename/logo query param carrying multi-level path-traversal sequences on the logo endpointfield: contentop: regex
- 03explicit CVE framingfield: contentop: regex
Attacks it catches
GET /api/system/logo?filename=../../../storage/anythingllm.db HTTP/1.1
POST /api/system/upload-logo with logo=../../../../storage/anythingllm.db to delete the database
Exploiting CVE-2024-3025: /api/system/logo path traversal to read anythingllm.db
Attack examples the rule must catch, many based on reported attacks and some written to match their shape. They are versioned with the rule as regression tests. If a later revision stops catching one, it shows.
Benign inputs it leaves alone
- Normal logo fetch with theme param, no traversal sequence
GET /api/system/logo?theme=default HTTP/1.1 returns the configured workspace logo
- Legitimate logo upload with a clean filename
POST /api/system/upload-logo uploading company-logo.png as the new appearance logo
- Generic mention of the endpoint with no exploit token or traversal
The /api/system/logo endpoint serves the branding image configured in Appearance settings.
Known false positives
- ▸Legitimate logo upload/fetch hitting /api/system/upload-logo or /api/system/logo with a normal filename like my-logo.png and no ../ sequence.
- ▸Documentation or changelog mentioning the logo endpoints without a traversal payload.
Full YAML
Edit on GitHubtitle: "AnythingLLM Logo Endpoint Path Traversal File Read/Delete (CVE-2024-3025)"
id: ATR-2026-01973
rule_version: 1
status: experimental
description: >
Detects CVE-2024-3025 (CWE-23, CVSS CRITICAL): mintplex-labs/anything-llm
before 1.0.0 fails to validate the user-supplied logo filename on the
/api/system/upload-logo and /api/system/logo endpoints. An authenticated
attacker passes path-traversal sequences (../../../) in the logo filename to
read or delete arbitrary files outside the assets directory, with the SQLite
database storage/anythingllm.db as a high-value target. The fix added a
normalizePath() guard. This rule keys on the specific logo endpoint paths
combined with ../ traversal (raw or %2e%2e%2f-encoded) into storage/anythingllm.db.
author: "ATR Community"
date: "2026/06/29"
schema_version: "0.1"
detection_tier: pattern
maturity: test
severity: critical
references:
owasp_llm: ["LLM03:2025"]
owasp_agentic: ["ASI04:2026"]
mitre_atlas: ["AML.T0049 - Exploit Public-Facing Application"]
mitre_attack: ["T1190 - Exploit Public-Facing Application"]
cve: ["CVE-2024-3025"]
metadata_provenance: { mitre_atlas: human-reviewed, owasp_llm: human-reviewed, owasp_agentic: human-reviewed }
compliance:
eu_ai_act:
- article: "15"
context: "Article 15 (accuracy, robustness, cybersecurity) — runtime detection of this technique is a cybersecurity control for high-risk AI systems. Technique: AnythingLLM Logo Endpoint Path Traversal File Read/Delete (CVE-2024-3025)."
strength: primary
- article: "9"
context: "Article 9 (risk management system) requires identified risks to be addressed by appropriate measures; this rule is a runtime risk-treatment control. Technique: AnythingLLM Logo Endpoint Path Traversal File Read/Delete (CVE-2024-3025)."
strength: secondary
nist_ai_rmf:
- subcategory: "MP.5.1"
context: "NIST AI RMF MAP 5.1 — likelihood and impact of the identified attack are characterised; this rule detects the adversarial input at runtime. Technique: AnythingLLM Logo Endpoint Path Traversal File Read/Delete (CVE-2024-3025)."
strength: primary
- subcategory: "MG.3.2"
context: "NIST AI RMF MANAGE 3.2 — runtime monitoring/maintenance control that surfaces this attack class. Technique: AnythingLLM Logo Endpoint Path Traversal File Read/Delete (CVE-2024-3025)."Show all (54 more lines)Show less
strength: secondary
iso_42001:
- clause: "8.1"
context: "ISO/IEC 42001 Clause 8.1 (operational planning and control) — detection of this payload is an operational control. Technique: AnythingLLM Logo Endpoint Path Traversal File Read/Delete (CVE-2024-3025)."
strength: primary
- clause: "8.3"
context: "ISO/IEC 42001 Clause 8.3 (AI risk treatment) — this rule implements runtime detection as a treatment control. Technique: AnythingLLM Logo Endpoint Path Traversal File Read/Delete (CVE-2024-3025)."
strength: secondary
tags: { category: tool-poisoning, subcategory: path-traversal, scan_target: both, confidence: high, source: cve-disclosure, vendor_sources: anythingllm-cve-2024-3025 }
agent_source: { type: llm_io, framework: [any], provider: [any] }
detection:
condition: any
false_positives:
- "Legitimate logo upload/fetch hitting /api/system/upload-logo or /api/system/logo with a normal filename like my-logo.png and no ../ sequence."
- "Documentation or changelog mentioning the logo endpoints without a traversal payload."
conditions:
- field: content
operator: regex
value: '(?i)/api/system/(?:upload-)?logo[\s\S]{0,200}(?:\.\./|\.\.%2f|%2e%2e%2f|%2e%2e/){2,}[\s\S]{0,120}(?:storage[/\\])?anythingllm\.db'
description: "AnythingLLM logo endpoint hit with multi-level ../ traversal (raw or URL-encoded) reaching storage/anythingllm.db"
- field: content
operator: regex
value: '(?i)/api/system/(?:upload-)?logo[\s\S]{0,200}(?:filename|logo)=[\s\S]{0,40}(?:\.\./|%2e%2e%2f|\.\.%2f){2,}'
description: "Logo filename/logo query param carrying multi-level path-traversal sequences on the logo endpoint"
- field: content
operator: regex
value: '(?i)CVE-2024-3025[\s\S]{0,200}(?:path\s*traversal|logo|anythingllm\.db|/api/system/(?:upload-)?logo)'
description: "explicit CVE framing"
response:
actions: [alert, block_input]
message_template: >
[ATR-2026-01973] CRITICAL: AnythingLLM logo endpoint path traversal (CVE-2024-3025) reads/deletes arbitrary files such as storage/anythingllm.db. Block and patch.
confidence: 80
test_cases:
true_positives:
- input: "GET /api/system/logo?filename=../../../storage/anythingllm.db HTTP/1.1"
expected: triggered
description: "Logo fetch endpoint with ../ traversal to the SQLite database file"
- input: "POST /api/system/upload-logo with logo=../../../../storage/anythingllm.db to delete the database"
expected: triggered
description: "Upload-logo endpoint abused with traversal into storage/anythingllm.db"
- input: "Exploiting CVE-2024-3025: /api/system/logo path traversal to read anythingllm.db"
expected: triggered
description: "Explicit CVE-2024-3025 framing with the logo endpoint and traversal target"
true_negatives:
- input: "GET /api/system/logo?theme=default HTTP/1.1 returns the configured workspace logo"
expected: not_triggered
description: "Normal logo fetch with theme param, no traversal sequence"
- input: "POST /api/system/upload-logo uploading company-logo.png as the new appearance logo"
expected: not_triggered
description: "Legitimate logo upload with a clean filename"
- input: "The /api/system/logo endpoint serves the branding image configured in Appearance settings."
expected: not_triggered
description: "Generic mention of the endpoint with no exploit token or traversal"