CVE-2009-5012 Improper Access Control in pyftpdlib
Authenticated users can bypass access restrictions to list the root directory in pyftpdlib due to missing permission checks for the MLST command.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2009-5012?
CVE-2009-5012 is a medium-severity missing authorization vulnerability in n/a, published on 19 Oct 2010. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
ftpserver.py in pyftpdlib before 0.5.2 does not require the l permission for the MLST command, which allows remote authenticated users to bypass intended access restrictions and list the root directory via an FTP session.
Weakness: CWE-264
Which versions are affected by CVE-2009-5012?
3 open source packages ship an affected version, including pyftpdlib. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
pyftpdlib PyPI | All versions | 0.5.2 |
pyftpdlib PyPI | All versions | 0.5.2 |
pyftpdlib PyPI | All versions | 0.5.2 |
Products include G.rodola Pyftpdlib.
How do I fix CVE-2009-5012?
Upgrade pyftpdlib to 0.5.2 or later.
Upgrade, and check permissions on every request on the server, not only in the interface. More about Missing authorization.
Is CVE-2009-5012 being exploited?
There is no known exploitation of CVE-2009-5012 in the wild and no public exploit code.
Other vulnerabilities in n/a
Sources
Also known as DEBIAN-CVE-2009-5012, GHSA-h4g7-8m7r-87r9, PYSEC-2010-9.