MEDIUM6.5
PYSEC-2010-20
Quick fix
PYSEC-2010-20 — pyftpdlib: upgrade to the fixed version with the command below.
pip install --upgrade 'pyftpdlib>=0.2.0'Details
Multiple directory traversal vulnerabilities in FTPServer.py in pyftpdlib before 0.2.0 allow remote authenticated users to access arbitrary files and directories via a .. (dot dot) in a (1) LIST, (2) STOR, or (3) RETR command.
Are you affected?
Enter the version of the package you're using.
Affected packages
References
- http://code.google.com/p/pyftpdlib/source/browse/trunk/HISTORY[WEB]
- http://code.google.com/p/pyftpdlib/issues/detail?id=9[WEB]
- http://code.google.com/p/pyftpdlib/source/detail?r=16[WEB]
- http://code.google.com/p/pyftpdlib/source/diff?spec=svn16&r=16&format=side&path=/trunk/pyftpdlib/FTPServer.py[WEB]
- https://github.com/advisories/GHSA-f8wg-36r9-7f4q[ADVISORY]
Check it before you install it
One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.
curl -s https://vdb.ai.kr/v1/ai/check-packages \
-H 'Content-Type: application/json' \
-d '{"packages":["pkg:pypi/pyftpdlib"]}'