CVE-2026-30915: SFTPGo improperly sanitizes placeholders in group home directories/key prefixes

Published Mar 13, 2026
·
Updated

Impact

SFTPGo versions before v2.7.1 contain an input validation issue in the handling of dynamic group paths, for example, home directories or key prefixes.

When a group is configured with a dynamic home directory or key prefix using placeholders like %username%, the value replacing the placeholder is not strictly sanitized against relative path components. Consequently, if a user is created with a specially crafted username the resulting path may resolve to a parent directory instead of the intended sub-directory.

Patches

This issue is fixed in version v2.7.1

Other sources

SFTPGo is an open source, event-driven file transfer solution. SFTPGo versions before v2.7.1 contain an input validation issue in the handling of dynamic group paths, for example, home directories or key prefixes. When a group is configured with a dynamic home directory or key prefix using placeholders like %username%, the value replacing the placeholder is not strictly sanitized against relative path components. Consequently, if a user is created with a specially crafted username the resulting path may resolve to a parent directory instead of the intended sub-directory. This issue is fixed in version v2.7.1

MITRE

Affected Software

2 affected componentsFixes available
go/github.com/drakkan/sftpgo/v2>=2.3.0<=2.7.0
2.7.1
Sftpgo Project Sftpgo>=2.3.0<2.7.1

Event History

Mar 13, 2026
Advisory Published
via GitHub·06:56 PM
Data Sourced
via GitHub·06:56 PM
DescriptionWeaknessAffected Software
CVE Published
via MITRE·07:04 PM
Data Sourced
via MITRE·07:04 PM
DescriptionWeakness
Data Sourced
via NVD·07:54 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·07:54 PM
Affected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-30915?

CVE-2026-30915 is considered a high severity vulnerability due to improper input validation of dynamic group paths.

2

How do I fix CVE-2026-30915?

To mitigate CVE-2026-30915, update SFTPGo to version 2.7.1 or later where the input validation issue has been addressed.

3

What are the affected versions for CVE-2026-30915?

CVE-2026-30915 affects SFTPGo versions from 2.3.0 to 2.7.0.

4

What kind of issue is CVE-2026-30915?

CVE-2026-30915 is an input validation issue related to the handling of dynamic group home directories.

5

Who is affected by CVE-2026-30915?

Any user or organization using vulnerable versions of SFTPGo for managing group directories is at risk from CVE-2026-30915.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203