CVE-2021-33497: Path Traversal in Dutchcoders transfer.sh

Summary

29/06/2021
Yes i
Critical
9.1

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 ↓

Free scan

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.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

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 →

Share this vulnerability

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.

Related vulnerabilities

Recent vulnerabilities recorded for github.com/dutchcoders/transfer.sh.

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 →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback