CVE-2021-33497: Path Traversal in Dutchcoders transfer.sh
Summary
CVE-2021-33497: Path Traversal in Dutchcoders transfer.sh. Affects github.com/dutchcoders/transfer.sh versions < 1.2.4. Fixed in 1.2.4. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
Dutchcoders transfer.sh is a Go package that provides a simple file sharing service. It allows users to upload and share files through a web interface. The package is widely used and popular among developers for its ease of use and simplicity. However, a vulnerability has been discovered in versions prior to 1.2.4 that allows for Directory Traversal, potentially leading to unauthorized access and deletion of files.
Vulnerability Detail
The vulnerability, identified as CVE-2021-33497, originates from a lack of proper input validation in the file deletion functionality of Dutchcoders transfer.sh. An attacker can exploit this vulnerability by manipulating the file path parameter to traverse directories and delete files outside the intended scope. This can result in the unauthorized deletion of sensitive files, leading to data loss or a compromise of the system's integrity. The severity of this vulnerability is rated as CRITICAL with a CVSS score of 9.1.
How To Fix
Latest published version: v1.6.1 as of 23 Oct 2026
go get github.com/dutchcoders/transfer.sh@v1.6.1
Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.
If you need the minimum change
1.2.4
This is the first release that contains the fix.
go get github.com/dutchcoders/transfer.sh@v1.2.4
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
If updating to the latest version is not immediately feasible, a temporary workaround can be implemented by adding additional input validation checks to the file deletion functionality. Specifically, the application should verify that the requested file path is within the expected directory structure and does not allow traversal outside of it. Here is an example of how this can be achieved in Go:
func deleteFile(filePath string) error {
// Check if filePath is within the expected directory structure
if !strings.HasPrefix(filePath, "/path/to/expected/directory") {
return errors.New("Invalid file path")
}
// Proceed with file deletion
// ...
}
Conclusion
In conclusion, Dutchcoders transfer.sh versions prior to 1.2.4 are vulnerable to a Directory Traversal issue that allows for unauthorized access and deletion of files. It is crucial to update to the latest version or apply the provided workaround to mitigate the risk. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for github.com/dutchcoders/transfer.sh →
FAQ
Dutchcoders transfer.sh is a Go package that provides a file sharing service, allowing users to upload and share files through a web interface.
The vulnerability allows for Directory Traversal, enabling unauthorized access and deletion of files outside the intended scope. This can lead to data loss or a compromise of the system's integrity.
To fix this vulnerability, update Dutchcoders transfer.sh to version 1.2.4 or later. This version includes a fix for the Directory Traversal vulnerability.
If updating to the latest version is not immediately feasible, a temporary workaround can be implemented by adding additional input validation checks to the file deletion functionality.
The severity of this vulnerability is rated as CRITICAL with a CVSS score of 9.1.
References
Related vulnerabilities
Recent vulnerabilities recorded for github.com/dutchcoders/transfer.sh.