Cyber Posture

CVE-2025-24366

High

Published: 07 February 2025

Published
07 February 2025
Modified
15 April 2026
KEV Added
Patch
CVSS Score 7.5 CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS Score 0.0131 79.9th percentile
Risk Priority 16 60% EPSS · 20% KEV · 20% CVSS

Description

Adversaries may abuse Unix shell commands and scripts for execution.

Security Summary

CVE-2025-24366 is a vulnerability in SFTPGo, an open-source, event-driven file transfer solution. The issue arises from missing sanitization of client-provided arguments in the optional `rsync` command, which can be activated alongside default SSH commands. This command is disabled by default and limited to the local filesystem, excluding cloud or remote storage backends. It has been classified under CWE-78 (Improper Neutralization of Special Elements used in an OS Command).

An authenticated remote user with low privileges can exploit this vulnerability over the network by supplying specially crafted `rsync` options via SSH. Successful exploitation allows the attacker to read or write arbitrary files on the local filesystem with the permissions of the SFTPGo server process, potentially leading to unauthorized data access or modification. The CVSS v3.1 base score of 7.5 reflects high impact on confidentiality, integrity, and availability, though it requires high attack complexity.

The SFTPGo security advisory and commit fixing the issue recommend upgrading to version v2.6.5, which addresses the flaw by validating client-provided `rsync` arguments. No workarounds are available. Relevant resources include the GitHub security advisory at GHSA-vj7w-3m8c-6vpx and the patch commit b347ab6051f6c501da205c09315fe99cd1fa3ba1.

Details

CWE(s)
CWE-78

MITRE ATT&CK Enterprise Techniques

T1190 Exploit Public-Facing Application Initial Access
Adversaries may attempt to exploit a weakness in an Internet-facing host or system to initially access a network.
T1059.004 Unix Shell Execution
Adversaries may abuse Unix shell commands and scripts for execution.
Why these techniques?

OS command injection (CWE-78) in public-facing SFTPGo SSH/rsync handler allows remote authenticated attackers to execute arbitrary commands and access files via crafted arguments.

Confidence: HIGH · MITRE ATT&CK Enterprise v19.0

References