Command Injection Affecting github.com/drakkan/sftpgo/v2/internal/sftpd package, versions >=0.9.5 <2.6.5


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.73% (51st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-GOLANG-GITHUBCOMDRAKKANSFTPGOV2INTERNALSFTPD-8705412
  • published9 Feb 2025
  • disclosed7 Feb 2025
  • creditateamjkr

Introduced: 7 Feb 2025

CVE-2025-24366  (opens in a new tab)
CWE-78  (opens in a new tab)

How to fix?

Upgrade github.com/drakkan/sftpgo/v2/internal/sftpd to version 2.6.5 or higher.

Overview

Affected versions of this package are vulnerable to Command Injection due to insufficient sanitization of user-provided rsync command. An attacker can execute arbitrary commands by injecting malicious inputs into the rsync parameters.

References

CVSS Base Scores

version 4.0
version 3.1