{"answers":{"affected":"3 open source packages ship an affected version, including pyftpdlib. It affects 1 product.","exploited":"There is no known exploitation of CVE-2009-5012 in the wild and no public exploit code.","fix":"Upgrade pyftpdlib to 0.5.2 or later.","what":"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."},"fix_prompt":"Check this codebase for CVE-2009-5012 and fix it if it is affected.\n\nWhat it is: 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.\nExploitation: There is no known exploitation of CVE-2009-5012 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- pyftpdlib (PyPI): affected all versions; fixed in 0.5.2\n- pyftpdlib (PyPI): affected all versions; fixed in 0.5.2\n- pyftpdlib (PyPI): affected all versions; fixed in 0.5.2\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2009-5012/ (Markdown: https://insights.sbomify.com/CVE-2009-5012/index.md)","id":"CVE-2009-5012","markdown":"https://insights.sbomify.com/CVE-2009-5012/index.md","name":"CVE-2009-5012","record":{"aliases":["DEBIAN-CVE-2009-5012","GHSA-h4g7-8m7r-87r9","PYSEC-2010-9"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read","security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"Python FTP library","requires_auth":"low_privilege","summary":"Authenticated users can bypass access restrictions to list the root directory in pyftpdlib due to missing permission checks for the MLST command.","user_interaction":"not_required","vuln_class":"missing_authorization"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"pyftpdlib","vendor":"g.rodola"}],"cvss":{"score":4,"severity":"medium","source":"nvd","vector":"AV:N/AC:L/Au:S/C:P/I:N/A:N","version":"2.0"},"cwes":[{"id":"CWE-264","name":null}],"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.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Improper Access Control in pyftpdlib","id":"CVE-2009-5012","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"missing_authorization","year":"2009"},"n_packages":3,"n_references":4,"next":{"headline":"Uncontrolled Resource Consumption in pyftpdlib","id":"CVE-2009-5013"},"packages":[{"ecosystem":"PyPI","fixed":["0.5.2"],"introduced":["0"],"last_affected":[],"package":"pyftpdlib","purl":null,"source":"GHSA-h4g7-8m7r-87r9"},{"ecosystem":"PyPI","fixed":["0.5.2"],"introduced":["0"],"last_affected":[],"package":"pyftpdlib","purl":"pkg:pypi/pyftpdlib","source":"GHSA-h4g7-8m7r-87r9"},{"ecosystem":"PyPI","fixed":["0.5.2"],"introduced":["0"],"last_affected":[],"package":"pyftpdlib","purl":"pkg:pypi/pyftpdlib","source":"PYSEC-2010-9"}],"prev":{"headline":"Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition') in pyftpdlib","id":"CVE-2009-5011"},"products":["n/a"],"published":"2010-10-19","related":[{"cvss_score":7.5,"headline":"Improper Authentication in pyftpdlib","id":"CVE-2007-6737","kev_date_added":null,"published":"2010-10-19"},{"cvss_score":7.5,"headline":"Improper Authentication in pyftpdlib","id":"CVE-2008-7263","kev_date_added":null,"published":"2010-10-19"},{"cvss_score":6.5,"headline":"Directory Traversal in pyftpdlib","id":"CVE-2007-6736","kev_date_added":null,"published":"2010-10-19"},{"cvss_score":6.5,"headline":"Improper privilege management in pyftpdlib","id":"CVE-2007-6741","kev_date_added":null,"published":"2010-10-19"},{"cvss_score":6.5,"headline":"Directory traversal in pyftpdlib","id":"CVE-2008-7262","kev_date_added":null,"published":"2010-10-19"},{"cvss_score":5,"headline":"pyftpdlib Use of Insufficiently Random Values of port selection on PASV command","id":"CVE-2007-6738","kev_date_added":null,"published":"2010-10-19"},{"cvss_score":5,"headline":"Improper Input Validation in pyftpdlib","id":"CVE-2007-6739","kev_date_added":null,"published":"2010-10-19"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-09-17","vendors":["n/a"]},"summary":"Authenticated users can bypass access restrictions to list the root directory in pyftpdlib due to missing permission checks for the MLST command.","url":"https://insights.sbomify.com/CVE-2009-5012/"}