CVE-2025-24366: GO-2025-3458 - SFTPGo has insufficient sanitization of user provided rsync command in github.com/drakkan/sftpgo

CVE-2025-24366 · Severity: low · CVSS 3.1 · Published 2025-02-07

SFTPGo has insufficient sanitization of user provided rsync command in github.com/drakkan/sftpgo

Technologies: github.com/drakkan/sftpgo (Go), github.com/drakkan/sftpgo/v2 (Go). Vendors: Go.

Quick answers

Is CVE-2025-24366 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2025-24366 being exploited in the wild.
How severe is CVE-2025-24366?
Low severity, with a CVSS score of 3.1, published 7 February 2025.
Which products and versions are affected?
github.com/drakkan/sftpgo (Go) SEMVER:introduced=0, SEMVER:introduced=0,last_affected=1.2.2; github.com/drakkan/sftpgo/v2 (Go) SEMVER:introduced=0,fixed=2.6.5, SEMVER:introduced=0.9.5,fixed=2.6.5.
Is there a fix for CVE-2025-24366?
Yes. github.com/drakkan/sftpgo/v2 (Go): upgrade to 2.6.5 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
Am I affected by CVE-2025-24366?
Check whether you run github.com/drakkan/sftpgo (Go) or github.com/drakkan/sftpgo/v2 (Go) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • github.com/drakkan/sftpgo/v2 (Go): upgrade to 2.6.5 or later
    go get github.com/drakkan/sftpgo/v2@v2.6.5

Affected products

  • github.com/drakkan/sftpgo (Go) SEMVER:introduced=0, SEMVER:introduced=0,last_affected=1.2.2
  • github.com/drakkan/sftpgo/v2 (Go) SEMVER:introduced=0,fixed=2.6.5, SEMVER:introduced=0.9.5,fixed=2.6.5

Identifiers

  • CVE-2025-24366
  • GHSA-vj7w-3m8c-6vpx
  • GO-2025-3458

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.