# GHSA-WWV9-G5X4-966Q: SFTPGo source-side file-pattern filter bypass during copy operations

- Database: GitHub
- Severity: medium (stated by ghsa, no CVSS score)
- Published: 2026-10-15
- Modified: 2026-10-19

## Tracked as

- [CVE-2026-103028](https://cve.now/CVE-2026-103028.md): SFTPGo source-side file-pattern filter bypass during copy operations

## Also published as

- [GO-2026-6802](https://cve.now/GO-2026-6802.md) (Go)

## Affected versions

- github.com/drakkan/sftpgo/v2 (Go): from 2.5.0, fixed in 2.7.6

## Description

### Summary

File pattern filters (`denied_patterns` / `allowed_patterns`) were evaluated on the destination of a copy only. A user holding the copy permission could copy a file denied by the filters to a permitted name and then read it. A recursive directory copy reproduced the contents of a restricted directory under a path where the filters do not deny them, and the hide policy was affected in the same way: a file reported as missing by stat and by directory listings could still be copied.

### Details

An authenticated user can read the contents of files that the file pattern filters are configured to deny them. Nothing else is bypassed: the home directory, the virtual folder layout and the per-directory permissions are all still enforced, and both ends of the copy are paths the account can already reach. No access to other accounts and no administrative capability.

## References

- https://github.com/drakkan/sftpgo/security/advisories/GHSA-wwv9-g5x4-966q
- https://nvd.nist.gov/vuln/detail/CVE-2026-103028
- https://github.com/drakkan/sftpgo/commit/dc8886bc079094b4ac2338df683f358b7676b5eb
- https://github.com/drakkan/sftpgo
- https://github.com/drakkan/sftpgo/releases/tag/v2.7.6

Page: https://cve.now/GHSA-WWV9-G5X4-966Q

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
