Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-77375 Overview
CVE-2026-77375 is a denial-of-service vulnerability in SFTPGo, an open-source event-driven file transfer solution. An authenticated SSH user can send a malformed protocol message when opening a channel, triggering an unhandled error that terminates the server process. The termination disconnects all active users and halts file transfer operations until an administrator restarts the service. The flaw is tracked under CWE-129: Improper Validation of Array Index and is fixed in SFTPGo version 2.7.5. No confidentiality or integrity impact has been identified by the maintainers.
Critical Impact
Any authenticated SSH user can crash the SFTPGo daemon with a single malformed subsystem request, disrupting file transfer services for every connected client.
Affected Products
- SFTPGo versions prior to 2.7.5
- SFTPGo SSH/SFTP subsystem handler (internal/sftpd/server.go)
- Deployments exposing the SFTPGo SSH service to authenticated users
Discovery Timeline
- 2026-10-13 - CVE-2026-77375 published to the National Vulnerability Database
- 2026-10-13 - Last updated in NVD database
- SFTPGo 2.7.5 - Fix released via GitHub (Release v2.7.5)
Technical Details for CVE-2026-77375
Vulnerability Analysis
SFTPGo handles SSH channel requests inside its sftpd package. When a client issues a subsystem request, the server inspects the request payload to determine whether the client is requesting the sftp subsystem. The pre-patch implementation reads directly from req.Payload[4:] without validating that the payload is well-formed or large enough. A payload shorter than four bytes causes an out-of-bounds slice operation, which panics the goroutine and terminates the server process.
Because SFTPGo runs as a single process serving all SSH connections, the panic affects every connected client. Service is unavailable until an operator or supervisor restarts the daemon.
Root Cause
The root cause is improper validation of an array index in the SSH subsystem request handler. The handler assumed the payload layout defined by RFC 4254 without parsing the SSH wire format or checking message length, violating defensive parsing practices for untrusted protocol input.
Attack Vector
Exploitation requires valid SSH credentials. After authenticating, the attacker opens a session channel and sends a crafted subsystem request with a truncated or malformed payload. The resulting panic in the request handler propagates up and terminates the SFTPGo process.
// Fix in internal/sftpd/server.go: replace raw slice read with structured unmarshal
switch req.Type {
case "subsystem":
- if bytes.Equal(req.Payload[4:], []byte("sftp")) {
+ var msg sshSubsystemMsg
+ if err := ssh.Unmarshal(req.Payload, &msg); err == nil && msg.Name == "sftp" {
ok = true
sshConnection.UpdateLastActivity()
connection := &Connection{
Source: drakkan/sftpgo commit 4f75123
The patch introduces a dedicated sshSubsystemMsg struct and uses ssh.Unmarshal to parse the payload safely. Malformed messages now return an error instead of triggering an out-of-bounds read.
// New type added in internal/sftpd/sftpd.go
+type sshSubsystemMsg struct {
+ Name string
+}
Source: drakkan/sftpgo commit 4f75123
Detection Methods for CVE-2026-77375
Indicators of Compromise
- Unexpected SFTPGo process crashes or restarts recorded by systemd, Docker, or Kubernetes supervisors.
- SFTPGo logs showing panic stack traces originating in internal/sftpd/server.go within the subsystem request handler.
- Mass disconnection events in which all active SFTP sessions terminate simultaneously.
Detection Strategies
- Monitor SFTPGo stderr and journal output for Go runtime panic messages referencing req.Payload or slice bounds errors.
- Correlate authentication events with subsequent process termination to identify the originating SSH session and source IP.
- Alert on repeated short-lived SSH sessions from the same account that precede service restarts.
Monitoring Recommendations
- Track SFTPGo uptime and restart counts as service-level indicators; sudden drops in uptime warrant investigation.
- Forward SFTPGo logs to a centralized logging platform and build rules for panic signatures.
- Audit SFTPGo user accounts and remove or rotate credentials for inactive or shared SSH users.
How to Mitigate CVE-2026-77375
Immediate Actions Required
- Upgrade SFTPGo to version 2.7.5 or later using the official v2.7.5 release.
- Review authenticated SSH user accounts and revoke credentials that are no longer required.
- Configure a process supervisor to restart SFTPGo automatically if the service terminates unexpectedly.
Patch Information
The fix is delivered in SFTPGo 2.7.5 and committed in 4f751232d7025cf2f7360e01ee8dca81e74b48b0. The patch replaces an unchecked slice read with a structured ssh.Unmarshal call against a new sshSubsystemMsg type. See the GitHub Security Advisory GHSA-q7pc-356p-hggc for the maintainer disclosure.
Workarounds
- Restrict SSH access to SFTPGo by placing it behind a bastion host or network allowlist that limits exposure to trusted clients.
- Enforce strong authentication (SSH keys, MFA) and limit account provisioning to reduce the pool of users capable of triggering the panic.
- Deploy SFTPGo under a supervisor such as systemd with Restart=always to minimize outage duration until patching is complete.
# Example systemd override to auto-restart SFTPGo on crash
# /etc/systemd/system/sftpgo.service.d/override.conf
[Service]
Restart=always
RestartSec=5s
StartLimitBurst=0
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

