CVE-2021-32061 S3Scanner allows Directory Traversal

Medium 5.3 Published Updated

An attacker can exploit a crafted bucket response to perform directory traversal, potentially reading unauthorized files from the system.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2021-32061?

CVE-2021-32061 is a medium-severity path traversal vulnerability in n/a, published on 29 Nov 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

S3Scanner before 2.0.2 allows Directory Traversal via a crafted bucket, as demonstrated by a <Key>../ substring in a ListBucketResult element.

Weakness: CWE-22

Which versions are affected by CVE-2021-32061?

3 open source packages ship an affected version, including s3scanner. It affects 1 product.

PackageAffectedFixed in
s3scanner PyPIAll versions2.0.2
s3scanner PyPIAll versions2.0.2
s3scanner PyPIAll versions2.0.2

Products include S3scanner Project S3scanner.

How do I fix CVE-2021-32061?

Upgrade s3scanner to 2.0.2 or later.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2021-32061 being exploited?

There is no known exploitation of CVE-2021-32061 in the wild and no public exploit code.

Sources

Also known as GHSA-qppg-v75c-r5ff, PYSEC-2021-433.

Is CVE-2021-32061 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free