CVE-2020-5221 Directory Traversal (Chroot Escape) vulnerability in uftpd

Medium 6.5 Published Updated

Unauthenticated attackers can escape the chroot jail via directory traversal in uftpd to read and write arbitrary files on the server.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2020-5221?

CVE-2020-5221 is a medium-severity path traversal vulnerability in troglobit uftpd, published on 22 Jan 2020. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

In uftpd before 2.11, it is possible for an unauthenticated user to perform a directory traversal attack using multiple different FTP commands and read and write to arbitrary locations on the filesystem due to the lack of a well-written chroot jail in compose_abspath(). This has been fixed in version 2.11

Weakness: CWE-22

Which versions are affected by CVE-2020-5221?

It affects 1 product.

Products include Troglobit Uftpd.

How do I fix CVE-2020-5221?

No fix has been published for CVE-2020-5221 yet. Limit exposure of the affected software until one is available.

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

Is CVE-2020-5221 being exploited?

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

Sources

Also known as GHSA-f8pr-x4hc-3mhf, GHSA-wmx8-v7mx-6x9h.

Is CVE-2020-5221 in your software?

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

Check your SBOMs for free