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 made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of concept

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 Learn

Learn about Command Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-GOLANG-GITHUBCOMDRAKKANSFTPGOV2INTERNALSFTPD-8705412
  • published9 Feb 2025
  • disclosed7 Feb 2025
  • creditateamjkr

Introduced: 7 Feb 2025

NewCVE-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 Scores

version 4.0
version 3.1